Analyzing Quicksort: Average Case
So partition generates splits (0:n-1, 1:n-2, 2:n-3, … , n-2:1, n-1:0) each with probability 1/n
If T(n) is the expected running time,
What is each term under the summation for?
What is the ?(n) term for?
Back to first slide
View graphic version