Why it matters
Quickselect is production selection. Understanding shapes implementation.
Advertisement
The architecture
Choose pivot (random).
Partition around it.
Recurse on side with k-th.
Advertisement
How it works end to end
Hoare partition faster than Lomuto.
Random pivot: expected O(n).
Median-of-3 pivot in practice.