English

Estimating Size of the Union of Sets in Streaming Model

Data Structures and Algorithms 2026-07-29 v1 Computational Geometry

Abstract

We study estimating the size of the union of sets S1,,SMS_1,\dots,S_M, where each SiΩS_i\subseteq\Omega 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 (ε,δ)(\varepsilon,\delta)-approximation of the cardinality of the union of Delphic sets in the streaming setting. It has space complexity O(RlogΩ)O(R\log|\Omega|) and update time O(RlogRlog(M/δ)logΩ)O(R\log R\cdot\log(M/\delta)\cdot\log|\Omega|), where R=O(log(M/δ)ε2)R=O(\log(M/\delta)\cdot\varepsilon^{-2}). For the streaming Klee's measure problem, this gives the first algorithm whose update time depends linearly on the dimension dd for d>1d>1, 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 PNP\mathrm{P}^{\mathrm{NP}}, 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)

Keywords

Cite

@article{arxiv.2607.26997,
  title  = {Estimating Size of the Union of Sets in Streaming Model},
  author = {Kuldeep S. Meel and N. V. Vinodchandran and Sourav Chakraborty},
  journal= {arXiv preprint arXiv:2607.26997},
  year   = {2026}
}

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