A simple algorithm for finding frequent elements in streams and bags
A simple algorithm for finding frequent elements in streams and bags
复制标题
DOI:
10.1145/762471.762473
复制
发表时间:
2003-03-01
影响因子:
1.8
通讯作者:
Papadimitriou, CH
中科院分区:
文献类型:
--
作者:
Karp, RM;Shenker, S;Papadimitriou, CH
We present a simple, exact algorithm for identifying in a multiset the items with frequency more than a threshold theta. The algorithm requires two passes, linear time, and space 1/theta. The first pass is an on-line algorithm, generalizing a well-known algorithm for finding a majority element, for identifying a set of at most 1/theta items that includes, possibly among others, all items with frequency greater than theta.