English

Tight Streaming Lower Bounds for Deterministic Approximate Counting

Data Structures and Algorithms 2024-06-19 v1 Computational Complexity

Abstract

We study the streaming complexity of kk-counter approximate counting. In the kk-counter approximate counting problem, we are given an input string in [k]n[k]^n, and we are required to approximate the number of each jj's (j[k]j\in[k]) in the string. Typically we require an additive error n3(k1)\leq\frac{n}{3(k-1)} for each j[k]j\in[k] respectively, and we are mostly interested in the regime nkn\gg k. We prove a lower bound result that the deterministic and worst-case kk-counter approximate counting problem requires Ω(klog(n/k))\Omega(k\log(n/k)) bits of space in the streaming model, while no non-trivial lower bounds were known before. In contrast, trivially counting the number of each j[k]j\in[k] uses O(klogn)O(k\log n) bits of space. Our main proof technique is analyzing a novel potential function. Our lower bound for kk-counter approximate counting also implies the optimality of some other streaming algorithms. For example, we show that the celebrated Misra-Gries algorithm for heavy hitters [MG82] has achieved optimal space usage.

Keywords

Cite

@article{arxiv.2406.12149,
  title  = {Tight Streaming Lower Bounds for Deterministic Approximate Counting},
  author = {Yichuan Wang},
  journal= {arXiv preprint arXiv:2406.12149},
  year   = {2024}
}
R2 v1 2026-06-28T17:09:38.781Z