Overview
Count-Min Sketch is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Count-Min Sketch organizes data around a query, update, ordering, or approximation invariant.
Compact metadata for implementation and discovery.
Count-Min Sketch is a data structure that maintains an invariant that supports efficient queries, updates, summaries, or indexing. It trades implementation complexity for faster or more compact operations on repeated workloads.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
estimate(x) = min(table_i[hash_i(x)])Uses the smallest hashed counter as an upper-bound estimate.
Show the structure changing as items are inserted, queried, or removed.
Count-Min Sketch operates in O(log n) time and O(n) space within the Data Structure family. Key governing relation: estimate(x) = min(table_i[hash_i(x)]). Often compared with Bloom Filter and Hash Table.
What each reference supports for this entry.
Original reference for count-min sketch frequency estimation, hash tables, and error bounds.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Data Structures · Core
Count-Min Sketch organizes data with different query and update tradeoffs than Bloom Filter.
Compare with thisCount-Min Sketch organizes data with different query and update tradeoffs than Bloom Filter.