arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.12034cs.DScs.PF
收藏

带保守更新的计数-最小概型(Count-Min Sketch with Conservative Updates, CMS-CU):最坏情况分析

Count-Min Sketch with Conservative Updates: Worst-Case Analysis

Younes Ben Mazziane, Othmane Marfoq

AI总结:

该研究针对带保守更新的计数-最小概型(CMS-CU)开展最坏情况分析,证明单次出现流场景下误差最大,推导了含参数g的平均估计误差上下界,验证了小g值下界的高精度。

摘要:

带保守更新的计数-最小概型(Count-Min Sketch with Conservative Updates,简称CMS-CU)是一种内存高效的基于哈希的数据结构,用于估计数据流中数据项的出现次数。CMS-CU存储$m$个计数器,并使用$d$个哈希函数将数据项映射到这些计数器上。我们首先论证,当流中每个数据项至多出现一次时,CMS-CU的估计误差达到最大。接下来,我们在此设定下研究CMS-CU。在$d=m-1$的情况下,我们证明平均估计误差和平均计数器速率几乎必然收敛于$\frac{1}{2}$,这与普通计数-最小概型(vanilla Count-Min Sketch)形成对比,后者的平均计数器速率等于$\frac{m-1}{m}$。对于任意给定的$m$和$d$,我们证明了平均估计误差的新下界与上界,推导中引入了一个正整数参数$g$。该参数取值越大,界的精度越高。此外,每个界的计算都需要分析一个遍历马尔可夫过程,其状态空间大小为$\binom{m+g-d}{g}$,且转移概率矩阵为稀疏矩阵,包含$\binom{m+g-d}{g}$的$\binom{m+g-d}{g}$个非零项。当$d=m-1$、$g=1$且$m\to \infty$时,我们证明下界与上界重合。总体而言,数值计算结果表明,对于较小的$g$值,我们的界具有很高的精度。例如,当$m=50$、$d=4$、$g=5$时,下界与上界的差值小于$10^{-4}$。

英文摘要:

Count-Min Sketch with Conservative Updates (CMS-CU) is a memory-efficient hash-based data structure used to estimate the occurrences of items within a data stream. CMS-CU stores $m$ counters and employs $d$ hash functions to map items to these counters. We first argue that the estimation error in CMS-CU is maximal when each item appears at most once in the stream. Next, we study CMS-CU in this setting. In the case where $d=m-1$, we prove that the average estimation error and the average counter rate converge almost surely to $\frac{1}{2}$, contrasting with the vanilla Count-Min Sketch, where the average counter rate is equal to $\frac{m-1}{m}$. For any given $m$ and $d$, we prove novel lower and upper bounds on the average estimation error, incorporating a positive integer parameter $g$. Larger values of this parameter improve the accuracy of the bounds. Moreover, the computation of each bound involves examining an ergodic Markov process with a state space of size $\binom{m+g-d}{g}$ and a sparse transition probabilities matrix containing $\mathcal{O}(m\binom{m+g-d}{g})$ non-zero entries. For $d=m-1$, $g=1$, and as $m\to \infty$, we show that the lower and upper bounds coincide. In general, our bounds exhibit high accuracy for small values of $g$, as shown by numerical computation. For example, for $m=50$, $d=4$, and $g=5$, the difference between the lower and upper bounds is smaller than $10^{-4}$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑