Medians and Order Statistics
The selection problem (assume distinct elements)
Set A of n numbers and integer i such that 1
A such that x is larger than i-1 elements of A (x is the ith smallest element).
This is O(nlgn).