Randomized Select

If r is not between i and j, there's no point in sorting...

algorithm138

Show that the expected running time is O(n).


next up previous
Next: Illustration Up: ORDER STATISTICS Previous: Relation To Sorting