Optimal quantile estimation: beyond the comparison model
Abstract
Estimating quantiles is one of the foundational problems of data sketching. Given elements from some universe of size arriving in a data stream, a quantile sketch estimates the rank of any element with additive error at most . 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 words (deterministic) and the KLL sketch (Karnin, Lang, and Liberty 2016) using 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 words, which is incomparable to the previously-mentioned sketches. It has long been asked whether there is a quantile sketch using words of space (which is optimal as long as ). In this work, we present a deterministic algorithm using words, resolving this line of work.
Keywords
Cite
@article{arxiv.2404.03847,
title = {Optimal quantile estimation: beyond the comparison model},
author = {Meghal Gupta and Mihir Singhal and Hongxun Wu},
journal= {arXiv preprint arXiv:2404.03847},
year = {2024}
}