News for hackers. Stuff that matters.
Re:Proving that Android’s, Java’s and Python’s sorting algor... by geophile on Tuesday February 24, 2015 @09:49AM (#9100778)
Many years ago, I ran into an intermittent performance problem that was caused by a self-propagating worst case in our quicksort implementation. If you sorted a sequence with one item out of place in an otherwise sorted array, you would get an n-1/1 split, and the pattern would repeat itself on the larger side of the split.

We fixed this by picking a pseudo-random pivot, I think.

There are no comments on this comment yet.