HyperLogLogLog: Cardinality Estimation With One Log More
Matti Karppa, Rasmus Pagh
摘要
We present HyperLogLogLog, a practical compression of the Hy-perLogLog sketch that compresses the sketch from 𝑂 (𝑚 log log 𝑛) bits down to 𝑚 log 2 log 2 log 2 𝑚 + 𝑂 (𝑚 + log log 𝑛) bits for estimating the number of distinct elements 𝑛 using 𝑚 registers. The algorithm works as a drop-in replacement that preserves all estimation properties of the HyperLogLog sketch, it is possible to convert back and forth between the compressed and uncompressed representations, and the compressed sketch maintains mergeability in the compressed domain. The compressed sketch can be updated in amortized constant time, assuming 𝑛 is sufficiently larger than 𝑚. We provide a C++ implementation of the sketch, and show by experimental evaluation against well-known implementations by Google and Apache that our implementation provides small sketches while maintaining competitive update and merge times. Concretely, we observed approximately a 40% reduction in the sketch size. Furthermore, we obtain as a corollary a theoretical algorithm that compresses the sketch down to 𝑚 log 2 log 2 log 2 log 2 𝑚 + 𝑂 (𝑚 log log log 𝑚/log log 𝑚 + log log 𝑛) bits. CCS CONCEPTS • Information systems → Data management systems; • Theory of computation → Design and analysis of algorithms.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper4
- UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct CountingOtmar ErtlVLDB 2024 · 被引用 12 次
- QSketch: An Efficient Sketch for Weighted Cardinality Estimation in StreamsYiyan Qi, Rundong Li, Pinghui Wang, Yufang Sun 等KDD 2024 · 被引用 3 次
- Efficient and Accurate Differentially Private Cardinality Continual ReleasesDongdong Xie, Pinghui Wang, Quanqing Xu, Chuanhui Yang 等SIGMOD 2025 · 被引用 1 次
- Sublime: Sublinear Error & Space for Unbounded Skewed StreamsNavid Eslami, Ioana O. Bercea, Rasmus Pagh, Niv DayanSIGMOD 2026
相关 Paper
- A Better Cardinality Estimator with Fewer Bits, Constant Update Time, and MergeabilityYang Du, He Huang, Yu-e Sun, Kejian Li 等INFOCOM 2023 · 被引用 6 次
- SetSketch: Filling the Gap between MinHash and HyperLogLogOtmar ErtlVLDB 2021 · 被引用 17 次
- Unmasking Vulnerabilities: Cardinality Sketches under Adaptive InputsSara Ahmadian, Edith CohenICML 2024 · 被引用 7 次
- Information theoretic limits of cardinality estimation: Fisher meets ShannonSeth Pettie, Dingyu WangSTOC 2021 · 被引用 12 次
- Efficient framework for operating on data sketchesJakub LemieszVLDB 2023 · 被引用 6 次
