English

No Repetition: Fast Streaming with Highly Concentrated Hashing

Data Structures and Algorithms 2020-04-03 v1

Abstract

To get estimators that work within a certain error bound with high probability, a common strategy is to design one that works with constant probability, and then boost the probability using independent repetitions. Important examples of this approach are small space algorithms for estimating the number of distinct elements in a stream, or estimating the set similarity between large sets. Using standard strongly universal hashing to process each element, we get a sketch based estimator where the probability of a too large error is, say, 1/4. By performing rr independent repetitions and taking the median of the estimators, the error probability falls exponentially in rr. However, running rr independent experiments increases the processing time by a factor rr. Here we make the point that if we have a hash function with strong concentration bounds, then we get the same high probability bounds without any need for repetitions. Instead of rr independent sketches, we have a single sketch that is rr times bigger, so the total space is the same. However, we only apply a single hash function, so we save a factor rr in time, and the overall algorithms just get simpler. Fast practical hash functions with strong concentration bounds were recently proposed by Aamand em et al. (to appear in STOC 2020). Using their hashing schemes, the algorithms thus become very fast and practical, suitable for online processing of high volume data streams.

Keywords

Cite

@article{arxiv.2004.01156,
  title  = {No Repetition: Fast Streaming with Highly Concentrated Hashing},
  author = {Anders Aamand and Debarati Das and Evangelos Kipouridis and Jakob B. T. Knudsen and Peter M. R. Rasmussen and Mikkel Thorup},
  journal= {arXiv preprint arXiv:2004.01156},
  year   = {2020}
}

Comments

10 pages