arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0204033cs.DS
收藏

重新访问随机选择

Randomized selection revisited

Krzysztof C. Kiwiel

摘要:

我们发现,几个版本的Floyd和Rivest的算法选择寻找$k$次最小的$n$元素需要最多$n+\min\{k,n-k\}+o(n)$比较平均和高概率。这纠正了Floyd和Rivest的分析,并将其扩展到非独特元素的情况。我们的计算结果证实,选择可能是最好的算法在实践中。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑