Mental Model
We find the elements that appear most often by counting them, then keep only the top K using a small container that quickly removes the least frequent.
Analogy: Imagine you have a basket of fruits and want to keep only the top K types that appear most. You count each fruit type, then use a small box that always throws out the fruit type with the least count when full, so you end up with the top K types.
Frequency map: {apple:3, banana:5, orange:2}
Min-heap (size K=2):
banana(5)
apple(3)
(orange(2) discarded because heap full and less frequent)