HyperLogLogLog:多一个对数的基数估计
HyperLogLogLog: Cardinality Estimation With One Log More
摘要:
我们提出了HyperLogLogLog,一个实用的压缩HyperLogLog草图,压缩草图从$O(m\log\log n)$位到$m \log_2\log_2\log_2 m + O(m+\log\log n)$位估计不同元素的数量~ $n$使用$m$ ~寄存器。该算法作为一个简单的替代,保留了HyperLogLog草图的所有估计属性,可以在压缩和未压缩表示之间来回转换,并且压缩草图在压缩域中保持可合并性。假设$n$比$m$大得多,则可以在分摊常数时间内更新压缩草图。我们提供了一个C++实现的草图,并通过实验评估对著名的实现谷歌和Apache,我们的实现提供了小草图,同时保持竞争力的更新和合并时间。具体地说,我们观察到草图大小减少了大约40%。此外,我们得到一个推论的理论算法,压缩草图到$m\log_2\log_2\log_2\log_2 m+O(m\log\log\log m/\log\log m+\log\log n)$位。
英文摘要:
We present HyperLogLogLog, a practical compression of the HyperLogLog sketch that compresses the sketch from $O(m\log\log n)$ bits down to $m \log_2\log_2\log_2 m + O(m+\log\log n)$ bits for estimating the number of distinct elements~$n$ using $m$~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 $n$ is sufficiently larger than $m$. 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 $m\log_2\log_2\log_2\log_2 m+O(m\log\log\log m/\log\log m+\log\log n)$ bits.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。