A simple algorithm for finding frequent elements in streams and bags
Richard M. Karp, Scott J. Shenker, Christos H. Papadimitriou · ACM Transactions on Database Systems · 2003
We present a simple, exact algorithm for identifying in a multiset the items with frequency more than a threshold θ. The algorithm requires two passes, linear time, and space 1/θ. 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/θ items that includes, possibly among others, all items with frequency greater than θ.
Cited by 491 works. doi:10.1145/762471.762473
Authors
References
- Lecture Notes in Computer Science 1205
- The space complexity of approximating the frequency moments
- New directions in traffic measurement and accounting
- Finding frequent items in data streams
- Computing Iceberg Queries Efficiently
- Synopsis data structures for massive data sets
- Bottom-up computation of sparse and Iceberg CUBE
- Frequency Estimation of Internet Packet Streams with Limited Space
- Bottom-up computation of sparse and Iceberg CUBE
- Approximate fairness through differential dropping