Estimating Size of the Union of Sets in Streaming Model
Abstract
We study estimating the size of the union of sets , where each is presented implicitly and arrives in a stream. We introduce Delphic sets, a class of streaming problems in which membership, sampling, and counting queries to each set are efficient, and show that this notion captures three well-known problems: Klee's measure problem (discrete version), test coverage estimation in combinatorial testing, and model counting of DNF formulas. Our primary contribution is a simple and efficient sampling-based algorithm that outputs an -approximation of the cardinality of the union of Delphic sets in the streaming setting. It has space complexity and update time , where . For the streaming Klee's measure problem, this gives the first algorithm whose update time depends linearly on the dimension for , settling an open problem of Tirthapura and Woodruff (PODS 2012), and it directly yields efficient streaming algorithms for coverage estimation and DNF model counting. We further show that the space for coverage estimation can be made near-optimal at the cost of an update procedure in , revealing a time-space trade-off. A key strength of our approach is the simplicity of both the algorithm and its analysis, which makes it amenable to practical implementation. In this revised version, the algorithm and its correctness analysis have additionally been formalized and machine-checked in Lean 4. (Shortened for Arxiv)
Create a lesson
Metadata
- Categories
- cs.DS, cs.CG
- Comments
- This is a significantly revised version of the paper that appeared in the proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS-21). The main claims of the paper remain unchanged; however, we have fixed several typos and bugs in the proofs. The proofs and theorem statements have also been formalized in Lean
Related papers
Constant-Factor Matching-Size Estimation in Random-Order Streams
Shared title terminologycs.DSAlireza Farhadi, Mohammad Hajiaghayi, Morteza Monemizadeh
Tight Bounds for Rank Estimation in Turnstile Streams
Shared title terminologycs.DSYang S. Hu, Cheng Jiang, Yinchen Liu et al.
On Euclidean Diameter in Dynamic Streams
Shared title terminologycs.DSJeff Giliberti, MohammadTaghi Hajiaghayi
Frequency Estimation from the Internal State of the Boyer-Moore Majority Vote Algorithm
Shared title terminologycs.DSSaeed Momeni, Mohsen Hooshmand
Linear-Size Spectral Sparsification by Sign Descent
Shared title terminologycs.DSTrevor Vaughn
Revisiting Generalized Median Estimators: Exact Bitwise Computation and Gray Code Acceleration
Shared title terminologycs.DSRobin Nunkesser