Expected-Case Recurrence

Because we select the pivot at random, we are equally likely to get each possible split.

We can express the expected running time as:

k is the number of ``lows.''


next up previous
Next: Good and Bad Splits Up: RANDOMIZED QUICKSORT Previous: Code