English

On the amortized complexity of approximate counting

Data Structures and Algorithms 2022-11-09 v1 Computational Complexity

Abstract

Naively storing a counter up to value nn would require Ω(logn)\Omega(\log n) bits of memory. Nelson and Yu [NY22], following work of [Morris78], showed that if the query answers need only be (1+ϵ)(1+\epsilon)-approximate with probability at least 1δ1 - \delta, then O(loglogn+loglog(1/δ)+log(1/ϵ))O(\log\log n + \log\log(1/\delta) + \log(1/\epsilon)) bits suffice, and in fact this bound is tight. Morris' original motivation for studying this problem though, as well as modern applications, require not only maintaining one counter, but rather kk counters for kk large. This motivates the following question: for kk large, can kk counters be simultaneously maintained using asymptotically less memory than kk times the cost of an individual counter? That is to say, does this problem benefit from an improved {\it amortized} space complexity bound? We answer this question in the negative. Specifically, we prove a lower bound for nearly the full range of parameters showing that, in terms of memory usage, there is no asymptotic benefit possible via amortization when storing multiple counters. Our main proof utilizes a certain notion of "information cost" recently introduced by Braverman, Garg and Woodruff in FOCS 2020 to prove lower bounds for streaming algorithms.

Keywords

Cite

@article{arxiv.2211.03917,
  title  = {On the amortized complexity of approximate counting},
  author = {Ishaq Aden-Ali and Yanjun Han and Jelani Nelson and Huacheng Yu},
  journal= {arXiv preprint arXiv:2211.03917},
  year   = {2022}
}
R2 v1 2026-06-28T05:22:53.072Z