QuickSort, due to Hoare, is one of the best comparison-based sorting algorithms around. There are a number of variations, but the vanilla QuickSort does a great job… most of the times.
Indeed, there are occasions where QuickSort leaves its expected run-time to reach
run-time, its worst case. But what does it take to push QuickSort into its worst behaviour?

Posted by Steven Pigeon