arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0702151cs.DS
收藏

流上的简洁采样

Succinct Sampling on Streams

Vladimir Braverman, Rafail Ostrovsky, Carlo Zaniolo

摘要:

流模型是数据项在长时间段内到达的模型,一次一项或以突发方式到达。典型的任务包括在某个固定时间范围的滑动窗口上计算各种统计数据。流模型的有趣之处在于,随着时间的推移,旧的项目到期,新的项目到达。在这个模型中,最简单和最重要的任务之一就是采样。也就是说,当旧项目到期和新项目到达时,从当前时间窗口维护最多$k$均匀分布的项目的任务。如果采样算法使用可证明最优(直到常数因子)的{\bf worst-case}内存来维护$k$项(有或没有替换),我们称之为{ \bf简洁}。我们强调,在许多应用程序中,随着时间的推移,具有{ \em expected}简洁表示的结构是不够的,因为小概率事件最终以概率1发生。因此,在本文中,我们提出了以下问题:是流(或$S^3$ -算法)可能的简洁采样,如果是这样的模型?也许有点令人惊讶的是,我们表明,$S^3$算法是可能的{ \em所有}上述问题的变种,即既有和没有更换,都在一个时间和突发到达模型。最后,我们使用$S^3$算法来解决滑动窗口模型中的各种问题,包括频率矩、三角形计数、熵和密度估计。对于这些问题,我们提出了\emph{first}解决方案与可证明的最坏情况的内存保证。

英文摘要:

A streaming model is one where data items arrive over long period of time, either one item at a time or in bursts. Typical tasks include computing various statistics over a sliding window of some fixed time-horizon. What makes the streaming model interesting is that as the time progresses, old items expire and new ones arrive. One of the simplest and central tasks in this model is sampling. That is, the task of maintaining up to $k$ uniformly distributed items from a current time-window as old items expire and new ones arrive. We call sampling algorithms {\bf succinct} if they use provably optimal (up to constant factors) {\bf worst-case} memory to maintain $k$ items (either with or without replacement). We stress that in many applications structures that have {\em expected} succinct representation as the time progresses are not sufficient, as small probability events eventually happen with probability 1. Thus, in this paper we ask the following question: are Succinct Sampling on Streams (or $S^3$-algorithms)possible, and if so for what models? Perhaps somewhat surprisingly, we show that $S^3$-algorithms are possible for {\em all} variants of the problem mentioned above, i.e. both with and without replacement and both for one-at-a-time and bursty arrival models. Finally, we use $S^3$ algorithms to solve various problems in sliding windows model, including frequency moments, counting triangles, entropy and density estimations. For these problems we present \emph{first} solutions with provable worst-case memory guarantees.

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

↑