Model
Count-min sketch guarantee
The error is a fraction of the total number of events in the stream, not of the item's own count.
- Error fraction
- error as a fraction of N
- Failure probability
- chance the bound is exceeded
- Events
- the total number of events in the stream
- Table shape
- counters per row and rows
How it behaves
One input on the horizontal axis, the others held fixed.
Data table
| Error fraction ε | Counters (w × d) |
|---|---|
| 0 | 1.36M |
| 0 | 1.21M |
| 0 | 1.08M |
| 0 | 962K |
| 0 | 858K |
| 0 | 764K |
| 0 | 681K |
| 0 | 607K |
| 0 | 541K |
| 0 | 482K |
| 0 | 430K |
| 0 | 383K |
| 0 | 341K |
| 0 | 304K |
| 0 | 271K |
| 0 | 242K |
| 0 | 215K |
| 0 | 192K |
| 0 | 171K |
| 0 | 153K |
| 0 | 136K |
| 0 | 121K |
| 0 | 108K |
| 0 | 96.2K |
| 0 | 85.8K |
| 0 | 76.4K |
| 0 | 68.1K |
| 0 | 60.7K |
| 0 | 54.1K |
| 0 | 48.2K |
| 0 | 43K |
| 0 | 38.3K |
| 0 | 34.1K |
| 0 | 30.4K |
| 0.001 | 27.1K |
| 0.001 | 24.2K |
| 0.001 | 21.5K |
| 0.001 | 19.2K |
| 0.001 | 17.1K |
| 0.001 | 15.3K |
| 0.001 | 13.6K |
| 0.001 | 12.1K |
| 0.001 | 10.8K |
| 0.001 | 9.63K |
| 0.002 | 8.58K |
| 0.002 | 7.64K |
| 0.002 | 6.82K |
| 0.002 | 6.08K |
| 0.003 | 5.42K |
| 0.003 | 4.83K |
| 0.003 | 4.3K |
| 0.004 | 3.83K |
| 0.004 | 3.42K |
| 0.004 | 3.04K |
| 0.005 | 2.71K |
| 0.006 | 2.42K |
| 0.006 | 2.15K |
| 0.007 | 1.92K |
| 0.008 | 1.72K |
| 0.009 | 1.52K |
| 0.01 | 1.36K |
| 0.011 | 1.22K |
| 0.013 | 1.08K |
| 0.014 | 965 |
| 0.016 | 860 |
| 0.018 | 765 |
| 0.02 | 685 |
| 0.022 | 610 |
| 0.025 | 545 |
| 0.028 | 485 |
| 0.032 | 430 |
| 0.036 | 385 |
| 0.04 | 345 |
| 0.045 | 305 |
| 0.05 | 275 |
| 0.056 | 245 |
| 0.063 | 220 |
| 0.071 | 195 |
| 0.079 | 175 |
| 0.089 | 155 |
| 0.1 | 140 |
Worked examples, recomputed
Every number the mechanisms quote for this relationship is recomputed from it, so none of them disagrees with it.
Where it appears
Each mechanism states it in its own names. The general symbol each name stands for is shown with it.
- Core Data Structures
How do we choose a data structure when the real cost is set by the hardware, not by Big-O?