Better Cardinality Estimators for HyperLogLog, PCSA, and Beyond
Better Cardinality Estimators for HyperLogLog, PCSA, and Beyond
复制标题
DOI:
10.1145/3584372.3588680
复制
发表时间:
2023-06
期刊:
影响因子:
--
通讯作者:
Dingyu Wang;Seth Pettie
中科院分区:
文献类型:
--
作者:
Dingyu Wang;Seth Pettie
Cardinality Estimation (aka Distinct Elements) is a classic problem in sketching with many applications in databases, networking, and security. Although sketching algorithms are fairly simple, analyzing the cardinality estimators is notoriously difficult, and even today the analyses of state-of-the-art sketches like HyperLogLog and ¶CSA are not very accessible. In this paper we introduce a new class of estimators called τ-Generalized-Remaining-Area estimators, as well as a dramatically simpler approach to analyzing estimators. The estimators of Durand and Flajolet, Flajolet et al., and Lang can be seen as τ-GRA estimators for integer values of τ. By using fractional values of τ we derive improved estimators for HyperLogLog and ¶CSA whose variance comes very close to the Cramé r-Rao lower bounds. We also derive τ-GRA-based estimators for the class of Curtain sketches introduced by Pettie, Wang, and Yin, which can be seen as a hybrid of HyperLogLog and ¶CSA with a more attractive simplicity-accuracy tradeoff than both.