一种有效的热元素确定性搜索算法
Efficient Algorithm for Deterministic Search of Hot Elements
摘要:
当面对非常大的数据流时,通常希望在短时间内在线提取最重要的统计信息并使用小内存。例如,人们可能希望快速找到在线生成帖子的最有影响力的用户,或者检查流是否包含许多相同的元素。在本文中,我们研究流包含插入和删除的元素从一个可能的大集合$N$的大小$|N| = n$,正在处理的在线确定性算法。在流中的任何点,可以查询算法以输出已经处理的流中的特定频率的元素。更准确地说,是迄今为止流中最常见的元素。如果返回的元素包含频率大于给定参数$φ$的所有元素,并且没有频率小于$φ-ε$的元素,则输出被认为是正确的。我们提出了一个有效的在线确定性算法来解决这个问题,使用$O(\min(n, \frac{polylog(n)}ε))$内存和$O(polylog(n))$每次处理和输出一个元素的时间。这是第一个这样的算法,因为先前的算法或者是随机化的,或者在相当大的时间$Ω(\min(n, \frac{\log n}ε))$中处理元素,或者仅处理插入并且需要在流上通过两次(即,并不是真正的在线)。我们的解决方案几乎是最佳的可扩展性(只有一个多对数开销),不需要随机性或扫描两次通过流。我们补充的算法分析与所需内存的下限$Ω(\min(n, \frac{1}ε))$。
英文摘要:
When facing a very large stream of data, it is often desirable to extract most important statistics online in a short time and using small memory. For example, one may want to quickly find the most influential users generating posts online or check if the stream contains many identical elements. In this paper, we study streams containing insertions and deletions of elements from a possibly large set $N$ of size $|N| = n$, that are being processed by online deterministic algorithms. At any point in the stream the algorithm may be queried to output elements of certain frequency in the already processed stream. More precisely, the most frequent elements in the stream so far. The output is considered correct if the returned elements it contains all elements with frequency greater than a given parameter $φ$ and no element with frequency smaller than $φ-ε$. We present an efficient online deterministic algorithm for solving this problem using $O(\min(n, \frac{polylog(n)}ε))$ memory and $O(polylog(n))$ time per processing and outputting an element. It is the first such algorithm as the previous algorithms were either randomized, or processed elements in substantially larger time $Ω(\min(n, \frac{\log n}ε))$, or handled only insertions and required two passes over the stream (i.e., were not truly online). Our solution is almost-optimally scalable (with only a polylogarithmic overhead) and does not require randomness or scanning twice through the stream. We complement the algorithm analysis with a lower bound $Ω(\min(n, \frac{1}ε))$ on required memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。