Quicksort (also known as "partition-exchange sort") is a comparison sort and, in
Visualization of the quicksort algorithm. The horizontal lines are pivot values. | |
Class | Sorting algorithm |
---|---|
Worst case performance | O(n2) |
Best case performance | O(n log n) |
Average case performance | O(n log n) |
Worst case space complexity | O(n) (naive) O(log n) (Sedgewick 1978) |
Walang komento:
Mag-post ng isang Komento