arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1603.00213cs.DScs.DB
收藏

插入流中l1-Heavy命中器的优化算法及相关问题

An Optimal Algorithm for l1-Heavy Hitters in Insertion Streams and Related Problems

Arnab Bhattacharyya, Palash Dey, David P. Woodruff

摘要:

我们给出了第一个最优的边界返回的$\ell_1$ -沉重的击球手在数据流中的插入,连同他们的近似频率,关闭一个长的工作线上这个问题。对于$\{1, 2, \dots, n\}$中的$m$项流和参数$0 < ε< ϕ\leq 1$,令$f_i$表示项$i$的频率,即,项目$i$在流中出现的次数。对于任意大的恒定概率,我们的算法返回$f_i \geq ϕm$的所有项目$i$,不返回$f_j \leq (ϕ-ε)m$的项目$j$,并返回近似值$\tilde{f}_i$和它返回的每个项目$i$的$|\tilde{f}_i - f_i| \leq εm$。我们的算法使用$O(ε^{-1} \logϕ^{-1} + ϕ^{-1} \log n + \log \log m)$位的空间,处理每个流更新在$O(1)$最坏情况的时间,并可以报告其输出的时间线性的输出大小。我们还证明了一个下界,这意味着我们的算法是最佳的一个常数因子在其空间复杂度。我们的算法的一个修改可以用来估计最大频率高达一个附加的$εm$错误在上述量的空间,解决问题3在IITK 2006年研讨会上的算法数据流的情况下,$\ell_1$ -沉重的打击者。我们还介绍了几个变种的重量级选手和最大频率的问题,启发等级聚合和投票计划,并显示我们的技术可以应用在这样的设置。与传统的重打击者问题不同,这些变体中的一些变体查看项目之间的比较,而不是数值来确定项目的频率。

英文摘要:

We give the first optimal bounds for returning the $\ell_1$-heavy hitters in a data stream of insertions, together with their approximate frequencies, closing a long line of work on this problem. For a stream of $m$ items in $\{1, 2, \dots, n\}$ and parameters $0 < ε< ϕ\leq 1$, let $f_i$ denote the frequency of item $i$, i.e., the number of times item $i$ occurs in the stream. With arbitrarily large constant probability, our algorithm returns all items $i$ for which $f_i \geq ϕm$, returns no items $j$ for which $f_j \leq (ϕ-ε)m$, and returns approximations $\tilde{f}_i$ with $|\tilde{f}_i - f_i| \leq εm$ for each item $i$ that it returns. Our algorithm uses $O(ε^{-1} \logϕ^{-1} + ϕ^{-1} \log n + \log \log m)$ bits of space, processes each stream update in $O(1)$ worst-case time, and can report its output in time linear in the output size. We also prove a lower bound, which implies that our algorithm is optimal up to a constant factor in its space complexity. A modification of our algorithm can be used to estimate the maximum frequency up to an additive $εm$ error in the above amount of space, resolving Question 3 in the IITK 2006 Workshop on Algorithms for Data Streams for the case of $\ell_1$-heavy hitters. We also introduce several variants of the heavy hitters and maximum frequency problems, inspired by rank aggregation and voting schemes, and show how our techniques can be applied in such settings. Unlike the traditional heavy hitters problem, some of these variants look at comparisons between items rather than numerical values to determine the frequency of an item.

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

↑