English

Truly Perfect Samplers for Data Streams and Sliding Windows

Data Structures and Algorithms 2021-08-30 v1

Abstract

In the GG-sampling problem, the goal is to output an index ii of a vector fRnf \in\mathbb{R}^n, such that for all coordinates j[n]j \in [n], Pr[i=j]=(1±ϵ)G(fj)k[n]G(fk)+γ,\textbf{Pr}[i=j] = (1 \pm \epsilon) \frac{G(f_j)}{\sum_{k\in[n]} G(f_k)} + \gamma, where G:RR0G:\mathbb{R} \to \mathbb{R}_{\geq 0} is some non-negative function. If ϵ=0\epsilon = 0 and γ=1/poly(n)\gamma = 1/\text{poly}(n), the sampler is called perfect. In the data stream model, ff is defined implicitly by a sequence of updates to its coordinates, and the goal is to design such a sampler in small space. Jayaram and Woodruff (FOCS 2018) gave the first perfect LpL_p samplers in turnstile streams, where G(x)=xpG(x)=|x|^p, using polylog(n)\text{polylog}(n) space for p(0,2]p\in(0,2]. However, to date all known sampling algorithms are not truly perfect, since their output distribution is only point-wise γ=1/poly(n)\gamma = 1/\text{poly}(n) close to the true distribution. This small error can be significant when samplers are run many times on successive portions of a stream, and leak potentially sensitive information about the data stream. In this work, we initiate the study of truly perfect samplers, with ϵ=γ=0\epsilon = \gamma = 0, and comprehensively investigate their complexity in the data stream and sliding window models. Abstract truncated due to arXiv limits; please see paper for full abstract.

Keywords

Cite

@article{arxiv.2108.12017,
  title  = {Truly Perfect Samplers for Data Streams and Sliding Windows},
  author = {Rajesh Jayaram and David P. Woodruff and Samson Zhou},
  journal= {arXiv preprint arXiv:2108.12017},
  year   = {2021}
}
R2 v1 2026-06-24T05:27:17.897Z