Beating CountSketch for Heavy Hitters in Insertion Streams
Abstract
Given a stream of items from a universe , which, without loss of generality we identify with the set of integers , we consider the problem of returning all -heavy hitters, i.e., those items for which , where is the number of occurrences of item in the stream, and . Such a guarantee is considerably stronger than the -guarantee, which finds those for which . In 2002, Charikar, Chen, and Farach-Colton suggested the {\sf CountSketch} data structure, which finds all such using bits of space (for constant ). The only known lower bound is bits of space, which comes from the need to specify the identities of the items found. In this paper we show it is possible to achieve bits of space for this problem. Our techniques, based on Gaussian processes, lead to a number of other new results for data streams, including (1) The first algorithm for estimating simultaneously at all points in a stream using only bits of space, improving a natural union bound and the algorithm of Huang, Tai, and Yi (2014). (2) A way to estimate the norm of a stream up to additive error with bits of space, resolving Open Question 3 from the IITK 2006 list for insertion only streams.
Cite
@article{arxiv.1511.00661,
title = {Beating CountSketch for Heavy Hitters in Insertion Streams},
author = {Vladimir Braverman and Stephen R. Chestnut and Nikita Ivkin and David P. Woodruff},
journal= {arXiv preprint arXiv:1511.00661},
year = {2015}
}