Skip to content

Randomized selection revisited

Krzysztof C. Kiwiel

cs.DSarXiv:cs/0204033

Abstract

We show that several versions of Floyd and Rivest's algorithm Select for finding the kth smallest of n elements require at most n+\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.

Create a lesson