Lune

KDD2022Top-tier venue

HyperLogLogLog: Cardinality Estimation With One Log More

Matti Karppa, Rasmus Pagh

2022Year
24Citations
4Top-tier citations

Abstract

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.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

Cited by top-tier papers4

Ask how each one uses it

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines