Live data from Hacker News

Exploring the Worst Case Complexity of Quicksort (2015)

tyler-davis.com

1–7 of 7 posts

Re: Exploring the Worst Case Complexity of Quicksort (2015)

#7

The textbook solution is to use this pivot selection algorithm: https://en.wikipedia.org/wiki/Median_of_medians In practice it is not really worth it.

No matter how clever you are with an algorithm, somebody wrote a paper on it in the 70s.