使用自学习位图进行不同计数
Distinct counting with a self-learning bitmap
摘要:
计算数据集中不同元素的数量(基数)是数据库管理中的一个基本问题。近年来,由于其许多现代应用,人们对解决数据流设置中的不同计数问题产生了极大的兴趣,其中每个传入数据只能看到一次,并且不能长时间存储。在计算机科学文献中已经提出了许多基于采样或草图的概率方法,这些方法只需要有限的计算和存储资源。然而,这些方法的性能不是尺度不变的,在这个意义上,它们的相对均方根估计误差(RRMSE)取决于未知的基数。这在许多应用中是不希望的,其中基数可能非常动态或不均匀,并且需要估计许多基数。在本文中,我们开发了一种新的方法,称为自学习位图(S-位图),是规模不变的基数在指定范围内。S-bitmap使用二进制向量,其条目通过自适应采样过程从0更新到1以推断未知基数,其中随着越来越多的条目从0变为1,采样率依次降低。我们严格证明了S-位图估计不仅是无偏的,但尺度不变。我们证明,要实现一个小的RRMSE值$ε$或更少,我们的方法需要显着更少的内存和消耗类似或更少的操作比国家的最先进的方法,许多常见的做法基数规模。模拟和实验研究报告。
英文摘要:
Counting the number of distinct elements (cardinality) in a dataset is a fundamental problem in database management. In recent years, due to many of its modern applications, there has been significant interest to address the distinct counting problem in a data stream setting, where each incoming data can be seen only once and cannot be stored for long periods of time. Many probabilistic approaches based on either sampling or sketching have been proposed in the computer science literature, that only require limited computing and memory resources. However, the performances of these methods are not scale-invariant, in the sense that their relative root mean square estimation errors (RRMSE) depend on the unknown cardinalities. This is not desirable in many applications where cardinalities can be very dynamic or inhomogeneous and many cardinalities need to be estimated. In this paper, we develop a novel approach, called self-learning bitmap (S-bitmap) that is scale-invariant for cardinalities in a specified range. S-bitmap uses a binary vector whose entries are updated from 0 to 1 by an adaptive sampling process for inferring the unknown cardinality, where the sampling rates are reduced sequentially as more and more entries change from 0 to 1. We prove rigorously that the S-bitmap estimate is not only unbiased but scale-invariant. We demonstrate that to achieve a small RRMSE value of $ε$ or less, our approach requires significantly less memory and consumes similar or less operations than state-of-the-art methods for many common practice cardinality scales. Both simulation and experimental studies are reported.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。