Multiselection by balanced rank partitioning
ID: multiselection-by-balanced-rank-partitioning
To find the order statistics at ranks when is a power of two, partition into equal lower and upper rank halves and recurse, stopping at blocks of size . Return each leaf block's maximum. Half boundaries are multiples of , so these leaf maxima are exactly the requested ranks. Linear-time selection gives total partition work per internal level and leaf work, hence overall. The shorter displayed bound applies when .
New to topics? Read the docs here!