Quicksort asymptotics
Abstract
The number of comparisons Xn used by Quicksort to sort an array of n distinct numbers has mean mun of order n log n and standard deviation of order n. Using different methods, Regnier and Roesler each showed that the normalized variate Yn := (Xn - mun) / n converges in distribution, say to Y; the distribution of Y can be characterized as the unique fixed point with zero mean of a certain distributional transformation. We provide the first rates of convergence for the distribution of Yn to that of Y, using various metrics. In particular, we establish the bound 2 n- 1 / 2 in the d2-metric, and the rate O(nepsilon - (1 / 2)) for Kolmogorov-Smirnov distance, for any positive epsilon.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.