English

Probabilistic analysis of optimal multi-pivot QuickSort

Probability 2026-05-01 v2

Abstract

We consider a multi-pivot QuickSort algorithm using KNK\in\mathbb{N} pivot elements to partition a nonsorted list into K+1K+1 sublists in order to proceed recursively on these sublists. For the partitioning stage, various strategies are in use. We focus on the strategy that minimizes the expected number of key comparisons in the standard random model, where the list is given as a uniformly permuted list of distinct elements. We derive asymptotic expansions for the expectation and variance of the number of key comparisons as well as a limit law for all KNK\in\mathbb{N}, where the convergence holds for all (exponential) moments. For K4K\le 4 we also bound the rate of convergence within the Wasserstein and Kolmogorov--Smirnov distance. Our analysis of the expectation is based on classical results for random mm-ary search trees. For the remaining results, combinatorial considerations are used to make the contraction method applicable.

Keywords

Cite

@article{arxiv.2503.22334,
  title  = {Probabilistic analysis of optimal multi-pivot QuickSort},
  author = {Cecilia Holmgren and Jasper Ischebeck and Daniel Krenn and Florian Lesny and Ralph Neininger},
  journal= {arXiv preprint arXiv:2503.22334},
  year   = {2026}
}
R2 v1 2026-06-28T22:37:54.587Z