← 🧮 Algorithms

🧮 Count-Min Sketch: Estimating Frequencies Without Storing Everything

Estimate: 0
True count: 0
Drag — rotate · Scroll — zoom

🧮 Count-Min Sketch: Estimating Frequencies Without Storing Everything

This simulator visualizes how items get hashed into a grid of counters across multiple rows, and how taking the minimum value across rows yields an accurate frequency estimate despite hash collisions.

🔬 What It Demonstrates

This simulator visualizes how items get hashed into a grid of counters across multiple rows, and how taking the minimum value across rows yields an accurate frequency estimate despite hash collisions.

🎮 How to Use

Feed items into the stream, watch the counters increment across each row, and query an item to see how the minimum across rows produces its frequency estimate.

💡 Did You Know?

A Count-Min Sketch with just a handful of rows and a few thousand columns can accurately estimate frequencies across a stream containing hundreds of millions of distinct items.