LLMpediaThe first transparent, open encyclopedia generated by LLMs

Count-Min Sketch

Generated by GPT-5-mini
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: Moses Charikar Hop 5
Expansion Funnel Raw 77 → Dedup 0 → NER 0 → Enqueued 0
1. Extracted77
2. After dedup0 (None)
3. After NER0 ()
4. Enqueued0 ()
Count-Min Sketch
NameCount-Min Sketch
TypeProbabilistic data structure
InventorsGraham Cormode, S. Muthukrishnan
Introduced2005
ApplicationsStreaming algorithms, network measurement, databases, natural language processing

Count-Min Sketch

Count-Min Sketch is a probabilistic, sublinear-space summary for frequency estimation in data streams, devised to provide fast, low-memory approximations with provable error bounds. It emerged from research in streaming algorithms and sketching alongside work by researchers affiliated with institutions such as AT&T Labs, IBM, and Microsoft Research, and relates conceptually to earlier structures used in Morris counter and Bloom filter research communities. The method has influenced systems and standards in networking and big-data ecosystems including projects at Google, Yahoo!, Facebook, and Amazon.

Introduction

Count-Min Sketch was introduced by Graham Cormode and S. Muthukrishnan to address frequency estimation problems in high-throughput streams where storing exact counts per key is infeasible. It is positioned among streaming summaries like the Tallies algorithm, Misra-Gries algorithm, and HyperLogLog as a compact, mergeable sketch suitable for distributed environments such as those deployed at Netflix or in platforms built by Apache Software Foundation projects. The sketch trades exactness for space and offers simple linear update rules that align with paradigms used in systems from Twitter and ecosystem tools influenced by work at Stanford University and MIT.

Algorithm and Data Structure

The structure uses a two-dimensional array of counters indexed by multiple pairwise-independent hash functions drawn from families studied in theoretical computer science and implemented in libraries by groups at Google Research and Facebook AI Research. Each incoming element is hashed to one counter per row; updates increment those counters, and point queries return the minimum of the hashed counters—hence the name. The design uses concepts linked to algorithmic techniques advanced at Carnegie Mellon University and Princeton University and leverages hashing theory advanced by researchers at Bell Labs and in course curricula at UC Berkeley and Caltech.

Implementations in production systems often combine the sketch with memory management practices from Intel and ARM platform engineering, and with serialization formats used by Apache Kafka and Apache Flink for streaming deployment. The sketch’s linearity permits straightforward merging of sketches generated on nodes in clusters designed by teams at Hewlett-Packard and IBM Research.

Error Analysis and Guarantees

Error bounds for Count-Min Sketch are derived from probabilistic inequalities and hashing guarantees developed in foundational work at institutions like Harvard University and Yale University. For nonnegative updates, the point estimate exceeds the true frequency by at most an additive epsilon times the L1 norm of the stream with probability at least 1-delta, where epsilon and delta are set by the array width and depth. These guarantees relate to concentration results from scholars associated with Courant Institute and University of Washington, and they parallel guarantees found in sketches compared in surveys from SIGMOD and PODS venues.

Adversarial and negative-update scenarios invoke reductions and analyses used in research collaborations at Microsoft Research and Bell Labs; modifications for signed updates rely on techniques intersecting work at ETH Zurich and Max Planck Institute on randomized linear algebra and compressed sensing. Lower bound arguments referencing communication complexity and streaming lower bounds are traced to results from Complexity Theory groups at Columbia University and University of California, San Diego.

Variants and Extensions

Multiple variants extend the basic sketch: conservative update strategies inspired by countermeasures in networking work at Cisco Systems; conservative decrementing and group testing adaptations informed by research at Bell Labs; and hierarchical or pyramid sketches used in spatial and temporal summarization in projects at NASA and NOAA. Mergeable and distributed variants align with MapReduce-style frameworks from Yahoo! Research and Google papers. Hybrid sketches combining Count-Min ideas with techniques from Count Sketch and Space-Saving algorithm have been proposed by labs at University of Oxford and University of Cambridge.

Extensions for heavy-hitter identification and quantile tracking connect to work at Brown University and Boston University, while entropy and norm-estimation adaptations tie into research agendas at University of Toronto and University of Illinois Urbana-Champaign.

Applications

Count-Min Sketch is widely applied in network telemetry at vendors like Juniper Networks and Arista Networks; in database approximate query engines in products by Oracle Corporation and Microsoft SQL Server teams; and in large-scale analytics pipelines at LinkedIn, Uber, and Airbnb. Natural language processing applications employ the sketch for vocabulary frequency approximation in systems developed by groups at DeepMind and OpenAI. It is used in online advertising frequency capping in ad platforms run by DoubleClick and The Trade Desk and in security monitoring systems used by Symantec and Palo Alto Networks.

Academic applications span stream mining in projects at University of California, Los Angeles and University of Michigan, measurement of internet traffic at CAIDA, and real-time telemetry in sensor networks studied at Cornell University.

Implementation and Complexity

The sketch requires O(w·d) memory where w is width and d is depth, with update and query times O(d), choices often tuned using theoretical recommendations from papers presented at IEEE INFOCOM and ACM SIGCOMM. Practical implementations in languages and runtimes from Google’s engineering stacks, Facebook’s production systems, and open-source libraries in the Apache Software Foundation ecosystem are optimized for cache behavior and vectorized updates on architectures from Intel and ARM Holdings. Parallel and GPU-accelerated implementations draw on techniques advanced by teams at NVIDIA and AMD.

Category:Probabilistic data structures