English

Selection Algorithms with Small Groups

Data Structures and Algorithms 2019-04-09 v3 Combinatorics

Abstract

We revisit the selection problem, namely that of computing the iith order statistic of nn given elements, in particular the classic deterministic algorithm by grouping and partition due to Blum, Floyd, Pratt, Rivest, and Tarjan (1973). Whereas the original algorithm uses groups of odd size at least 55 and runs in linear time, it has been perpetuated in the literature that using smaller group sizes will force the worst-case running time to become superlinear, namely Ω(nlogn)\Omega(n \log{n}). We first point out that the usual arguments found in the literature justifying the superlinear worst-case running time fall short of proving this claim. We further prove that it is possible to use group size smaller than 55 while maintaining the worst case linear running time. To this end we introduce three simple variants of the classic algorithm, the repeated step algorithm, the shifting target algorithm, and the hyperpair algorithm, all running in linear time.

Keywords

Cite

@article{arxiv.1409.3600,
  title  = {Selection Algorithms with Small Groups},
  author = {Ke Chen and Adrian Dumitrescu},
  journal= {arXiv preprint arXiv:1409.3600},
  year   = {2019}
}

Comments

13 pages, 5 figures, 1 table

R2 v1 2026-06-22T05:54:56.860Z