Why it matters

Count-Min sketch powers heavy hitters, per-key rate limits, and streaming analytics.

Advertisement

The architecture

d rows × w counters.

Increment counter at each hash.

Query = min across d.

Count-Min sketchd rows × w colscountersUpdated hashes incrementQuerymin across dCormode-Muthukrishnan 2003; overestimates only; O(1) update and query
Count-Min sketch.
Advertisement

How it works end to end

d rows × w counters.

Update O(d).

Query O(d).