Why it matters
Selection is fundamental. Understanding shapes algorithm choice.
Advertisement
The architecture
Quickselect: partition + recurse one side.
MoM: guaranteed pivot quality.
Heap: O(n log k).
Advertisement
How it works end to end
Quickselect: partition on pivot; recurse on side with k-th.
Randomized pivot key.
Introselect: fallback to MoM.