AlgorithmsSortingEdit on GitHubEdit history
Quickselect
Hoare's selection, Find1961
A selection algorithm that applies quicksort's partitioning recursively to only one side, finding the kth element in linear average time.
Origin
Lineage
Parent algorithms
Structural analysisPublished together by the same author in the same issue (CACM 4(7)) as Algorithms 63, 64, and 65, which share the partition procedure
Derived algorithms
Reference workReplacing pivot selection with the median of medians improves the worst case from O(n²) to O(n) (CLRS §9.3)
Structural analysisLike quickselect it narrows the range by partitioning, but it improves the partition with bounds taken from a sample.
Author statementMusser presents introspective selection, which combines quickselect with a switch to an algorithm that guarantees worst-case time. — doi:10.1002/(sici)1097-024x(199708)27:8<983::aid-spe117>3.0.co;2-#
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…