Optimally detecting uniformly-distributed $\ell_2$ heavy hitters in data streams
Abstract
Given a stream of items from a Universe of size poly, and a parameter , an item is said to be an heavy hitter if its frequency in the stream is at least , where . Efficiently detecting such heavy hitters is a fundamental problem in data streams and has several applications in both theory and in practice. The classical algorithm due to Charikar, Chen, and Farach-Colton [2004], was the first algorithm to detect heavy hitters using bits of space, and their algorithm is optimal for streams with deletions. A work due to Braverman, Chestnut, Ivkin, Nelson, Wang, and Woodruff [2017] gave the algorithm which detects heavy hitters in insertion-only streams using only space. Note that any algorithm requires at least space to output heavy hitters in the worst case. While achieves optimal space bound for constant , their bound could be sub-optimal for . For streams, where the stream elements can be adversarial but their order of arrival is uniformly random, Braverman, Garg, and Woodruff [2020] showed that it is possible to achieve the optimal space bound of for every . In this work, we generalize their result to streams where only the heavy hitters are required to be uniformly distributed in the stream. We show that it is possible to achieve the same space bound, but with an additional assumption that the algorithm is given a constant approximation to in advance.
Keywords
Cite
@article{arxiv.2509.07286,
title = {Optimally detecting uniformly-distributed $\ell_2$ heavy hitters in data streams},
author = {Santhoshini Velusamy and Huacheng Yu},
journal= {arXiv preprint arXiv:2509.07286},
year = {2026}
}
Comments
In this version, we remove our previous result for random-order streams after becoming aware that it had already appeared in prior work by Braverman, Garg, and Woodruff [2020]. We now properly cite their result and present only our new contribution concerning partially random-order streams