[Pitch] Selection: Linear-Time Order-Statistics

I also find the term index is quite confusing because it implied the result is an array, instead of the k-th value. For example, your heap based implemantion doesn't return such an array. Also, index is 0-based, but k in select algorithms is 1-based. You were aware of that (see the part I highlighed) but it was confusing when I read it.

3 Likes