English

Convergence of the QuickVal Residual

Probability 2026-01-14 v2 Data Structures and Algorithms

Abstract

QuickSelect (aka Find), introduced by Hoare (1961), is a randomized algorithm for selecting a specified order statistic from an input sequence of nn objects, or rather their identifying labels usually known as keys. The keys can be numeric or symbol strings, or indeed any labels drawn from a given linearly ordered set. We discuss various ways in which the cost of comparing two keys can be measured, and we can measure the efficiency of the algorithm by the total cost of such comparisons. We define and discuss a closely related algorithm known as QuickVal and a natural probabilistic model for the input to this algorithm; QuickVal searches (almost surely unsuccessfully) for a specified population quantile α[0,1]\alpha \in [0, 1] in an input sample of size nn. Call the total cost of comparisons for this algorithm SnS_n. We discuss a natural way to define the random variables S1,S2,S_1, S_2, \ldots on a common probability space. For a general class of cost functions, Fill and Nakama (2013) proved under mild assumptions that the scaled cost Sn/nS_n / n of QuickVal converges in LpL^p and almost surely to a limit random variable SS. For a general cost function, we consider what we term the QuickVal residual: ρn:=SnnS.\rho_n := \frac{S_n}n - S. The residual is of natural interest, especially in light of the previous analogous work on the sorting algorithm QuickSort. In the case α=0\alpha = 0 of QuickMin with unit cost per key-comparison, we are able to calculate -- \`a la Bindjeme and Fill (2012) for QuickSort -- the exact (and asymptotic) L2L^2-norm of the residual. We take the result as motivation for the scaling factor n\sqrt{n} for the QuickVal residual for general population quantiles and for general cost. We then prove in general (under mild conditions on the cost function) that nρn\sqrt{n}\,\rho_n converges in law to a scale-mixture of centered Gaussians, and we also prove convergence of moments.

Keywords

Cite

@article{arxiv.2412.12599,
  title  = {Convergence of the QuickVal Residual},
  author = {James Allen Fill and Jason Matterer},
  journal= {arXiv preprint arXiv:2412.12599},
  year   = {2026}
}

Comments

24 pages; this revision adds the final paragraph of Section 1 and includes a simplified proof of what is now Lemma 3.4, and there are other small corrections and improvements