vix.ing · top · new · best · stats · spec

Optimal quantile estimation: beyond the comparison model

2024/04/05 by Meghal Gupta, Gupta, Meghal, Mihir Singhal +3 · 1 citation
Engineering · #Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences #Reservoir Engineering and Simulation Methods

paper · pdf · doi:10.48550/arxiv.2404.03847

openalex publication_date 2024/04/05 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Estimating quantiles is one of the foundational problems of data sketching. Given n elements x1, x2, …, xn from some universe of size U arriving in a data stream, a quantile sketch estimates the rank of any element with additive error at most ε n. A low-space algorithm solving this task has applications in database systems, network measurement, load balancing, and many other practical scenarios. Current quantile estimation algorithms described as optimal include the GK sketch (Greenwald and Khanna 2001) using O(ε-1 log n) words (deterministic) and the KLL sketch (Karnin, Lang, and Liberty 2016) using O(ε-1 loglog(1/δ)) words (randomized, with failure probability δ). However, both algorithms are only optimal in the comparison-based model, whereas most typical applications involve streams of integers that the sketch can use aside from making comparisons. If we go beyond the comparison-based model, the deterministic q-digest sketch (Shrivastava, Buragohain, Agrawal, and Suri 2004) achieves a space complexity of O(ε-1log U) words, which is incomparable to the previously-mentioned sketches. It has long been asked whether there is a quantile sketch using O(ε-1) words of space (which is optimal as long as n ≤ poly(U)). In this work, we present a deterministic algorithm using O(ε-1) words, resolving this line of work.

Cited by

Related