Optimal bounds for approximate counting

10/05/2020
by   Jelani Nelson, et al.
0

Storing a counter incremented N times would naively consume O(log N) bits of memory. In 1978 Morris described the very first streaming algorithm: the "Morris Counter" [Morris78]. His algorithm has been shown to use O(loglog N + log(1/ε) + log(1/δ)) bits of memory to provide a (1+ε)-approximation with probability 1-δ to the counter's value. We provide a new simple algorithm with a simple analysis showing that O(loglog N + log(1/ε) + loglog(1/δ)) bits suffice for the same task, i.e. an exponentially improved dependence on the inverse failure probability. We then provide a more technical analysis showing that the original Morris Counter itself, after a minor but necessary tweak, actually also enjoys this same improved upper bound. Lastly, we prove a new lower bound for this task showing optimality of our upper bound. We thus completely resolve the asymptotic space complexity of approximate counting.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/08/2022

On the amortized complexity of approximate counting

Naively storing a counter up to value n would require Ω(log n) bits of m...
research
09/12/2022

Space Optimal Vertex Cover in Dynamic Streams

We optimally resolve the space complexity for the problem of finding an ...
research
07/17/2022

Streaming Algorithms with Large Approximation Factors

We initiate a broad study of classical problems in the streaming model w...
research
03/28/2023

Lower Bounds for Pseudo-Deterministic Counting in a Stream

Many streaming algorithms provide only a high-probability relative appro...
research
06/13/2019

The Communication Complexity of Optimization

We consider the communication complexity of a number of distributed opti...
research
07/21/2020

Improved lower and upper bounds on the tile complexity of uniquely self-assembling a thin rectangle non-cooperatively in 3D

We investigate a fundamental question regarding a benchmark class of sha...
research
05/11/2018

Peres-Style Recursive Algorithms

Peres algorithm applies the famous von Neumann trick recursively to prod...

Please sign up or login with your details

Forgot password? Click here to reset