English

Revisiting Frequency Moment Estimation in Random Order Streams

Data Structures and Algorithms 2018-03-07 v1

Abstract

We revisit one of the classic problems in the data stream literature, namely, that of estimating the frequency moments FpF_p for 0<p<20 < p < 2 of an underlying nn-dimensional vector presented as a sequence of additive updates in a stream. It is well-known that using pp-stable distributions one can approximate any of these moments up to a multiplicative (1+ϵ)(1+\epsilon)-factor using O(ϵ2logn)O(\epsilon^{-2} \log n) bits of space, and this space bound is optimal up to a constant factor in the turnstile streaming model. We show that surprisingly, if one instead considers the popular random-order model of insertion-only streams, in which the updates to the underlying vector arrive in a random order, then one can beat this space bound and achieve O~(ϵ2+logn)\tilde{O}(\epsilon^{-2} + \log n) bits of space, where the O~\tilde{O} hides poly(log(1/ϵ)+loglogn)(\log(1/\epsilon) + \log \log n) factors. If ϵ2logn\epsilon^{-2} \approx \log n, this represents a roughly quadratic improvement in the space achievable in turnstile streams. Our algorithm is in fact deterministic, and we show our space bound is optimal up to poly(log(1/ϵ)+loglogn)(\log(1/\epsilon) + \log \log n) factors for deterministic algorithms in the random order model. We also obtain a similar improvement in space for p=2p = 2 whenever F2lognF1F_2 \gtrsim \log n\cdot F_1.

Keywords

Cite

@article{arxiv.1803.02270,
  title  = {Revisiting Frequency Moment Estimation in Random Order Streams},
  author = {Vladimir Braverman and Emanuele Viola and David Woodruff and Lin F. Yang},
  journal= {arXiv preprint arXiv:1803.02270},
  year   = {2018}
}

Comments

36 pages

R2 v1 2026-06-23T00:44:02.342Z