arXiv · cs/0312055
Randomized selection with quintary partitions
Abstract
We show that several versions of Floyd and Rivest's algorithm Select for finding the $k$th smallest of $n$ elements require at most $n+\min\{k,n-k\}+o(n)$ comparisons on average and with high probability. This rectifies the analysis of Floyd and Rivest, and extends it to the case of nondistinct elements. Our computational results confirm that Select may be the best algorithm in practice.
Explore related subjects
Keep this discovery
Krzysztof C. Kiwiel. 2003-12-23. Randomized selection with quintary partitions. https://arxiv.org/abs/cs/0312055
Cite the original work for its findings. Save a collection to share your selection of sources.