AlgorithmsSortingEdit on GitHubEdit history
Median of Medians
BFPRT1973
An algorithm that solves the selection problem in worst-case linear time by using the median of the medians of groups of five as the pivot.
Origin
Manuel Blum, Robert W. Floyd, Vaughan R. Pratt, Ronald L. Rivest, Robert E. Tarjan (1973). Time Bounds for Selection. Journal of Computer and System Sciences 7(4).doi:10.1016/S0022-0000(73)80033-9 — checked against Crossref, 2026-11-08
Lineage
Algorithms 3 · Relations 2
Parent algorithms
Where it came from
Quickselect1961
Reference workReplacing pivot selection with the median of medians improves the worst case from O(n²) to O(n) (CLRS §9.3)
Notable implementations
No implementations registered yet. Try a repo scan to find some. Repo scan
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…