Randomized selection revisited
Krzysztof C. Kiwiel
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
Related papers
Finding Hypercliques Faster Than Brute Force
Josh Alman, Baitian Li, Neha Pant et al.
Semi-Streaming Reachability and Shortest Paths in n1/3+o(1) Passes
Gary Hoppenworth, George Z. Li, Sepideh Mahabadi et al.
The Power of Interaction in Locally Edge-Private Subgraph Counting
Xian Chen, Pan Peng
Matchings under One-Sided Preferences with Soft Quotas
Santhini K A, Raghu Raman Ravi, Meghana Nasre
Nearly-Linear Query Algorithm for Submodular Maximization subject to a Matroid Constraint
Tatsuya Terao
Faster Planar Diameter using Pseudoline Envelopes
Da Wei Zheng, Daniel Prigan