Strong concentration for Quicksort

Colin McDiarmid, Ryan Hayward · Symposium on Discrete Algorithms · 1992

Let Qn be the random number of comparisons made by quicksort in sorting n distinct keys, when we assume that all n! possible orderings are equally likely. Known results concerning moments for Qn do not show how rare it is for Qn to make large deviations from its mean. Here we give a good approximation to the probability of such a large deviation, and find that this probability is quite small. As well as the basic quicksort we consider the variant in which the partitioning key is chosen as the median of (2t+1) keys.

Read the paper · More papers on PaperTik