arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.05306cs.DScs.CCcs.SI
收藏

有限值动态数组的最优剖分算法

Optimal Algorithm for Profiling Dynamic Arrays with Finite Values

Dingcheng Yang, Wenjian Yu, Junhui Deng, Shenghua Liu

摘要:

在一个拥有数十亿用户的系统中,如果有一个很大的日志流,如何能够在任何时候快速地回答最热门的对象?这相当于在日志流对应的动态数组中查找mode和top-frequent元素。然而,现有的大多数工作要么将动态数组限制在滑动窗口内,要么没有利用日志流中只能添加或删除一个元素的优点。因此,本文提出了一种动态数组的性能分析算法S-Profile,该算法对动态数组的每次更新具有$O(1)$时间复杂度,并且在计算复杂性方面是最优的。使用分析结果,回答关于动态数组统计信息的查询变得简单而快速。通过对动态数组的各种设置的实验,我们的精确S-Profile算法的性能优于已知的方法,比基于堆的方法至少有2倍的加速比,比基于平衡树的方法有13倍甚至更高的加速比。

英文摘要:

How can one quickly answer the most and top popular objects at any time, given a large log stream in a system of billions of users? It is equivalent to find the mode and top-frequent elements in a dynamic array corresponding to the log stream. However, most existing work either restrain the dynamic array within a sliding window, or do not take advantages of only one element can be added or removed in a log stream. Therefore, we propose a profiling algorithm, named S-Profile, which is of $O(1)$ time complexity for every updating of the dynamic array, and optimal in terms of computational complexity. With the profiling results, answering the queries on the statistics of dynamic array becomes trivial and fast. With the experiments of various settings of dynamic arrays, our accurate S-Profile algorithm outperforms the well-known methods, showing at least 2X speedup to the heap based approach and 13X or larger speedup to the balanced tree based approach.

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

↑