A technique introduced by Indyk and Woodruff [STOC 2005] has inspired several recent advances in data-stream algorithms. We show that a number of these results follow easily from the application of a single probabilistic method called Precision Sampling. Using this method, we obtain simple data-stream algorithms that maintain a randomized sketch of an input vector $x=(x_1,...x_n)$, which is useful for the following applications. 1) Estimating the $F_k$-moment of $x$, for $k>2$. 2) Estimating the $\ell_p$-norm of $x$, for $p\in[1,2]$, with small update time. 3) Estimating cascaded norms $\ell_p(\ell_q)$ for all $p,q>0$. 4) $\ell_1$ sampling, where the goal is to produce an element $i$ with probability (approximately) $|x_i|/\|x\|_1$. It extends to similarly defined $\ell_p$-sampling, for $p\in [1,2]$.
For all these applications the algorithm is essentially the same: scale the vector x entry-wise by a well-chosen random vector, and run a heavy-hitter estimation algorithm on the resulting vector. Our sketch is a linear function of x, thereby allowing general updates to the vector x.
Precision Sampling itself addresses the problem of estimating a sum $\sum_{i=1}^n a_i$ from weak estimates of each real $a_i\in[0,1]$. More precisely, the estimator first chooses a desired precision $u_i\in(0,1]$ for each $i\in[n]$, and then it receives an estimate of every $a_i$ within additive $u_i$. Its goal is to provide a good approximation to $\sum a_i$ while keeping a tab on the "approximation cost" $\sum_i (1/u_i)$. Here we refine previous work [Andoni, Krauthgamer, and Onak, FOCS 2010] which shows that as long as $\sum a_i=Ω(1)$, a good multiplicative approximation can be achieved using total precision of only $O(n\log n)$.
The Expiration Streaming Model: Diameter, $k$-Center, Counting, Sampling, and Friends
University of Bonn(波恩大学);University of Ljubljana(卢布尔雅那大学);Institute of Mathematics, Physics and Mechanics(数学、物理和力学研究所);University of Maryland, College Park(马里兰大学帕克分校);Weizmann Institute of Science(魏茨曼科学研究所);Microsoft Research(微软研究院);Université Côte d’Azur(蔚蓝海岸大学)
Streaming Lower Bounds and Asymmetric Set-Disjointness
数据流的频率估计是流算法中的经典问题之一。经过大量的研究,现在有几乎匹配的上限和下限之间的权衡所需的样本的数量和算法的空间复杂度,当数据流是敌对的。然而,在数据流以随机顺序给出或随机的情况下,仅存在较弱的下限。在这项工作中,我们关闭这个差距,对数因子。为了做到这一点,我们考虑了针问题,这是在(Andoni et al. 2008,Crouch et al. 2016)中研究的频率估计的自然难题。这里,目标是区分具有$t$样本的数据流上的两个分布。第一个是在足够大的域上一致的。第二种是种植模型;一个秘密的“针"是均匀选择的,然后流中的每个元素都以概率$p$等于针,否则从域中均匀选择。设计使用空间$s \approx 1/(p^2 t)$区分分布的流算法是简单的。目前还不清楚这是否是严格的,因为现有的下限较弱。我们关闭这个差距,并表明,权衡是接近最佳的,对数因子。我们的证明建立并扩展了流算法和通信复杂性之间的经典联系,具体地说,多方唯一集不相交性。我们引入两个新的成分,使我们能够证明尖锐的界限。第一个是多方唯一集不相交性的非对称版本的下界,其中玩家接收不同大小的输入集,并且每个玩家的通信相对于其输入长度归一化。第二种是组合技术,允许通过第一个采样间隔在种植模型中对针叶进行采样,然后在每个间隔中对均匀的针叶进行采样。