diptangsu / diptangsu/Sorting-Algorithms

Optimised QuickSort

Open
#137 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
171
Forks
165
PR merge metrics
No merged PRs in 30d

Description

The **two way partition Quick Sort** have a worst case complexity of O(n^2) when there is duplicates element in the list. This can be optimised by **_3 way partition._** In this all the element left of pivot element is small while the centered elements are equal to pivot element and right portion of list contain greater than pivot element.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.