Short answer: The Misra-Gries summary keeps k − 1 counters and finds every value whose frequency in a stream of length n is greater than n/k. A value that is already counted increments its counter. A value that finds a free counter takes it. When every counter is busy,…
