Affiliation:
1. John A. Paulson School of Engineering and Applied Sciences, Harvard University, Cambridge, MA, USA
Abstract
The distinct elements problem is one of the fundamental problems in streaming algorithms—given a stream of integers in the range { 1,… ,
n
}, we wish to provide a (1+ε) approximation to the number of distinct elements in the input. After a long line of research an optimal solution for this problem with constant probability of success, using
O
(1/ε
2
+lg
n
) bits of space, was given by Kane, Nelson, and Woodruff in 2010.
The standard approach used to achieve low failure probability δ is to take the median of lg δ
−1
parallel repetitions of the original algorithm. We show that such a multiplicative space blow-up is unnecessary: We provide an optimal algorithm using
O
(lg δ
−1
/ε
2
+ lg
n
) bits of space—matching known lower bounds for this problem. That is, the lg δ
−1
; factor does not multiply the lg
n
term. This settles completely the space complexity of the distinct elements problem with respect to all standard parameters.
We consider also the
strong tracking
(or
continuous monitoring
) variant of the distinct elements problem, where we want an algorithm that provides an approximation of the number of distinct elements seen so far, at all times of the stream. We show that this variant can be solved using
O
(lg lg
n
+ lg δ
−1
/ε
2
+ lg
n
) bits of space, which we show to be optimal.
Publisher
Association for Computing Machinery (ACM)
Subject
Mathematics (miscellaneous)
Reference26 articles.
1. The space complexity of approximating the frequency moments
2. A Multi-Round Communication Lower Bound for Gap Hamming and Some Consequences
3. Jarosław Błasiok Jian Ding and Jelani Nelson. 2017. Continuous monitoring of ℓp norms in data streams in approximation randomization and combinatorial optimization. Algorithms and Techniques (APPROX/RANDOM'17). DOI:https://doi.org/10.4230/LIPIcs.APPROX-RANDOM.2017.32 Jarosław Błasiok Jian Ding and Jelani Nelson. 2017. Continuous monitoring of ℓ p norms in data streams in approximation randomization and combinatorial optimization. Algorithms and Techniques (APPROX/RANDOM'17). DOI:https://doi.org/10.4230/LIPIcs.APPROX-RANDOM.2017.32
Cited by
6 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. GSearch: ultra-fast and scalable genome search by combining K-mer hashing with hierarchical navigable small world graphs;Nucleic Acids Research;2024-07-16
2. Better Cardinality Estimators for HyperLogLog, PCSA, and Beyond;Proceedings of the 42nd ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2023-06-18
3. HyperLogLogLog;Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining;2022-08-14
4. Universal Streaming of Subset Norms;THEOR COMPUT;2022
5. Tight Bounds for Adversarially Robust Streams and Sliding Windows via Difference Estimators;2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS);2022-02