HyperLogLog and count-min sketch
How many different people visited today? Which hashtags are trending this minute? Exact answers mean remembering every ID or keeping a counter for every item. For billions of events, a small, nearly right answer is often worth far more.
In this lesson you'll learn to
- Explain why exact distinct counts are expensive and the idea behind HyperLogLog.
- Use HyperLogLog's properties, such as capped small memory, about 1% error and merging.
- Explain how a count-min sketch estimates frequencies, and why it only overestimates.
- Decide when an approximate sketch is the right trade-off, and which one fits.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.