English

Key Compression Limits for $k$-Minimum Value Sketches

Data Structures and Algorithms 2024-09-05 v1 Information Theory math.IT

Abstract

The kk-Minimum Values (\kmv) data sketch algorithm stores the kk least hash keys generated by hashing the items in a dataset. We show that compression based on ordering the keys and encoding successive differences can offer O(logn)O(\log n) bits per key in expected storage savings, where nn is the number of unique values in the data set. We also show that O(logn)O(\log n) expected bits saved per key is optimal for any form of compression for the kk least of nn random values -- that the encoding method is near-optimal among all methods to encode a \kmv sketch. We present a practical method to perform that compression, show that it is computationally efficient, and demonstrate that its average savings in practice is within about five percent of the theoretical minimum based on entropy. We verify that our method outperforms off-the-shelf compression methods, and we demonstrate that it is practical, using real and synthetic data.

Keywords

Cite

@article{arxiv.2409.02852,
  title  = {Key Compression Limits for $k$-Minimum Value Sketches},
  author = {Charlie Dickens and Eric Bax and Alexander Saydakov},
  journal= {arXiv preprint arXiv:2409.02852},
  year   = {2024}
}
R2 v1 2026-06-28T18:34:16.494Z