Count-Min Sketch with Conservative Updates: Worst-Case Analysis
Abstract
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 counters and employs 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 , we prove that the average estimation error and the average counter rate converge almost surely to , contrasting with the vanilla Count-Min Sketch, where the average counter rate is equal to . For any given and , we prove novel lower and upper bounds on the average estimation error, incorporating a positive integer parameter . 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 and a sparse transition probabilities matrix containing non-zero entries. For , , and as , we show that the lower and upper bounds coincide. In general, our bounds exhibit high accuracy for small values of , as shown by numerical computation. For example, for , , and , the difference between the lower and upper bounds is smaller than .
Cite
@article{arxiv.2405.12034,
title = {Count-Min Sketch with Conservative Updates: Worst-Case Analysis},
author = {Younes Ben Mazziane and Othmane Marfoq},
journal= {arXiv preprint arXiv:2405.12034},
year = {2024}
}