Searcharxiv⌕ Search

arXiv subjects

Orson R. L. Peters

Publications and source records attributed to Orson R. L. Peters.

1 recordsLinked to original sources

Pattern-defeating Quicksort

A new solution for the Dutch national flag problem is proposed, requiring no three-way comparisons, which gives quicksort a proper worst-case runtime of $O(nk)$ for inputs with $k$ distinct elements. This is used together with other known and novel techniques to construct a hybrid sort that is never significantly slower than regular quicksort while speeding up drastically for many input distributions.

cs.DS↗