You may be looking for the "majority algorithm." It, and related algorithms are introduced in a helpful article, "The Britney Spears Problem."
erickson
2009-07-20 01:27:47
You may be looking for the "majority algorithm." It, and related algorithms are introduced in a helpful article, "The Britney Spears Problem."
Perhaps look into cache entry replacement algorithms. That seems a lot like LRU (Least Recently Used). There are many variations and, needless to day, they are very very well studied.
You may be looking for this.
http://www.notjustrandom.com/2009/11/13/finding-frequent-items-in-a-data-stream/