Analysis of Algorithms
University of South Carolina
September 28, 2010
Order Statistics and Selection
Selection in Expected Linear Time
Selection in Deterministic Linear Time
The ith order statistic is the ith smallest element of a set of n
The minimum is the first order statistic (i = 1).
The maximum is the nth
order statistic (i = n).
A median is the "halfway point" of the set.
When n is odd, the median is unique, at i = n+1