Streaming Quantiles Algorithms with Small Space and Update Time

Nikita Ivkin, Edo Liberty, Kevin Lang, Zohar Karnin, Vladimir Braverman
6/29/2019
cs.DScs.DBcs.LG

Official code: apache/datasketches-java (960 stars, Java, Apache-2.0, last commit 2026-11-12).

Abstract

Approximating quantiles and distributions over streaming data has been studied for roughly two decades now. Recently, Karnin, Lang, and Liberty proposed the first asymptotically optimal algorithm for doing so.

Show full abstract

This manuscript complements their theoretical result by providing a practical variants of their algorithm with improved constants. For a given sketch size, our techniques provably reduce the upper bound on the sketch error by a factor of two. These improvements are verified experimentally. Our modified quantile sketch improves the latency as well by reducing the worst case update time from $O(1/\varepsilon)$ down to $O(\log (1/\varepsilon))$. We also suggest two algorithms for weighted item streams which offer improved asymptotic update times compared to naïve extensions. Finally, we provide a specialized data structure for these sketches which reduces both their memory footprints and update times.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A software library of stochastic streaming algorithms, a.k.a. sketches.

960228Java, ShellJun 30, 20152 weeks agoApache-2.0
datasketches

Similar Papers

Cite this paper

@article{ivkin2019streaming,
  title  = {Streaming Quantiles Algorithms with Small Space and Update Time},
  author = {Nikita Ivkin and Edo Liberty and Kevin Lang and Zohar Karnin and Vladimir Braverman},
  year   = {2019},
  eprint = {1907.00236},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.00236}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1907.00236.svg)](https://codeofpaper.com/paper/1907.00236)

Discussion