Error!
Success!

How to break quicksort

0
kicks

How to break quicksort  (Unpublished)

Quicksort usually runs in O(N log N) time, but in special cases, it takes much longer: O(N^2). It is surprisingly easy to force any quicksort implementation to degrade into the quadratic-time behavior. This trick even works against a randomized quicksort! The article demonstrates how the trick works by applying it against the BCL Array.Sort() routine.


Kicked By:
Drop Kicked By: