An integrated efficient solution for computing frequent and top-k elements in data streams

被引:110
作者
Metwally, Ahmed [1 ]
Agrawal, Divyakant
El Abbadi, Amr
机构
[1] Univ Calif Santa Barbara, Dept Comp Sci, Santa Barbara, CA 93106 USA
[2] Valueclick Inc, Westlake Village, CA 91361 USA
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2006年 / 31卷 / 03期
关键词
algorithms; performance; data streams; advertising networks; frequent elements; top-k elements; Zipfian data; exact queries; continuous queries; approximate queries;
D O I
10.1145/1166074.1166084
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We propose an approximate integrated approach for solving both problems of finding the most popular k elements, and finding frequent elements in a data stream coming from a large domain. Our solution is space efficient and reports both frequent and top-k elements with tight guarantees on errors. For general data distributions, our top-k algorithm returns k elements that have roughly the highest frequencies; and it uses limited space for calculating frequent elements. For realistic Zipfian data, the space requirement of the proposed algorithm for solving the exact frequent elements problem decreases dramatically with the parameter of the distribution; and for top-k queries, the analysis ensures that only the top-k elements, in the correct order, are reported. The experiments, using real and synthetic data sets, show space reductions with hardly any loss in accuracy. Having proved the effectiveness of the proposed approach through both analysis and experiments, we extend it to be able to answer continuous queries about frequent and top-k elements. Although the problems of incremental reporting of frequent and top-k elements are useful in many applications, to the best of our knowledge, no solution has been proposed.
引用
收藏
页码:1095 / 1133
页数:39
相关论文
共 48 条
[1]  
Alon N., 1996, Proceedings of the Twenty-Eighth Annual ACM Symposium on the Theory of Computing, P20, DOI 10.1145/237814.237823
[2]  
[Anonymous], P ACM SIGMOD INT C M
[3]  
[Anonymous], P 1998 INT C VER LAR
[4]  
[Anonymous], 1949, Human behaviour and the principle of least-effort
[5]  
ARASU A, 2003, 200267 STANF U
[6]  
Arasu A, 2003, DBPL, P1
[7]  
Babcock B., 2003, P 2003 ACM SIGMOD IN, DOI DOI 10.1145/872757.872764
[8]  
Babcock B., 2002, Proceedings of the Twenty-First ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS), P1, DOI DOI 10.1145/543613.543615
[9]   SPACE/TIME TRADE/OFFS IN HASH CODING WITH ALLOWABLE ERRORS [J].
BLOOM, BH .
COMMUNICATIONS OF THE ACM, 1970, 13 (07) :422-&
[10]  
Bonnet P., 2001, Mobile Data Management. Second International Conference, MDM 2001. Proceedings (Lecture Notes in Computer Science Vol.1987), P3