arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.07286cs.DS
收藏

在数据流中最优检测均匀分布的ℓ₂重 hitters

Optimally detecting uniformly-distributed $\ell_2$ heavy hitters in data streams

University of Waterloo(滑铁卢大学);Princeton University(普林斯顿大学)

Santhoshini Velusamy, Huacheng Yu

AI总结:

本文提出在部分随机顺序流中通过额外假设实现最优空间界限的算法,用于检测均匀分布的ℓ₂重 hitters。

摘要:

给定一个来自大小为poly(n)的宇宙U的流x₁,x₂,…,xₙ,以及参数ε>0,如果一个项目i∈U在流中的频率fᵢ至少为√(εF₂),其中F₂=∑_{i∈U}fᵢ²,则该项目被称为ℓ₂重 hitters。高效检测此类重 hitters是数据流中的基本问题,并在理论和实践中都有多种应用。Charikar、Chen和Farach-Colton [2004] 提出的CountSketch算法是第一个使用O(log²n/ε)位空间来检测ℓ₂重 hitters的算法,且其算法在有删除操作的流中是最佳的。Braverman、Chestnut、Ivkin、Nelson、Wang和Woodruff [2017] 提出的BPTree算法在仅插入的流中使用仅O(log(1/ε)/ε log n)的空间来检测ℓ₂重 hitters。需要注意的是,任何算法至少需要Ω(1/ε log n)的空间来输出O(1/ε)个重 hitters。虽然BPTree在常数ε的情况下实现了最优空间界限,但其界限对于ε=o(1)可能不够优。对于随机顺序流,其中流元素可以是对抗性的,但它们的到达顺序是均匀随机的,Braverman、Garg和Woodruff [2020] 显示,对于ε=Ω(1/2^{√log n}),可以实现最优空间界限。在本工作中,我们将其结果推广到部分随机顺序流,其中只有重 hitters需要在流中均匀分布。我们证明,可以实现相同的空间界限,但需要额外假设算法在提前获得F₂的常数近似值。

英文摘要:

Given a stream $x_1,x_2,\dots,x_n$ of items from a Universe $U$ of size poly$(n)$, and a parameter $ε>0$, an item $i\in U$ is said to be an $\ell_2$ heavy hitter if its frequency $f_i$ in the stream is at least $\sqrt{εF_2}$, where $F_2={\sum_{i\in U} f_i^2}$. Efficiently detecting such heavy hitters is a fundamental problem in data streams and has several applications in both theory and in practice. The classical $\mathsf{CountSketch}$ algorithm due to Charikar, Chen, and Farach-Colton [2004], was the first algorithm to detect $\ell_2$ heavy hitters using $O\left(\frac{\log^2 n}ε\right)$ bits of space, and their algorithm is optimal for streams with deletions. A work due to Braverman, Chestnut, Ivkin, Nelson, Wang, and Woodruff [2017] gave the $\mathsf{BPTree}$ algorithm which detects $\ell_2$ heavy hitters in insertion-only streams using only $O\left(\frac{\log(1/ε)}ε\log n \right)$ space. Note that any algorithm requires at least $Ω\left(\frac{1}ε \log n\right)$ space to output $O(1/ε)$ heavy hitters in the worst case. While $\mathsf{BPTree}$ achieves optimal space bound for constant $ε$, their bound could be sub-optimal for $ε=o(1)$. For $\textit{random order}$ streams, where the stream elements can be adversarial but their order of arrival is uniformly random, Braverman, Garg, and Woodruff [2020] showed that it is possible to achieve the optimal space bound of $O\left(\frac{1}ε \log n\right)$ for every $ε= Ω\left(\frac{1}{2^{\sqrt{\log n}}}\right)$. In this work, we generalize their result to $\textit{partially random order}$ streams where only the heavy hitters are required to be uniformly distributed in the stream. We show that it is possible to achieve the same space bound, but with an additional assumption that the algorithm is given a constant approximation to $F_2$ in advance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑