English

Tight Bounds for Heavy-Hitters and Moment Estimation in the Sliding Window Model

Data Structures and Algorithms 2025-05-01 v1

Abstract

We consider the heavy-hitters and FpF_p moment estimation problems in the sliding window model. For FpF_p moment estimation with 1<p21<p\leq 2, we show that it is possible to give a (1±ϵ)(1\pm \epsilon) multiplicative approximation to the FpF_p moment with 2/32/3 probability on any given window of size nn using O~(1ϵplog2n+1ϵ2logn)\tilde{O}(\frac{1}{\epsilon^p}\log^2 n + \frac{1}{\epsilon^2}\log n) bits of space. We complement this result with a lower bound showing that our algorithm gives tight bounds up to factors of loglogn\log\log n and log1ϵ.\log\frac{1}{\epsilon}. As a consequence of our F2F_2 moment estimation algorithm, we show that the heavy-hitters problem can be solved on an arbitrary window using O(1ϵ2log2n)O(\frac{1}{\epsilon^2}\log^2 n) space which is tight.

Keywords

Cite

@article{arxiv.2504.21175,
  title  = {Tight Bounds for Heavy-Hitters and Moment Estimation in the Sliding Window Model},
  author = {Shiyuan Feng and William Swartworth and David P. Woodruff},
  journal= {arXiv preprint arXiv:2504.21175},
  year   = {2025}
}