HyperLogLog From Scratch | Counting Distinct Elements at Scale
How HyperLogLog estimates the number of distinct elements in massive data streams. HyperLogLog Paper: P. Flajolet, É. Fusy, O. Gandouet, and F. Meunier, “HyperLogLog: The analysis of a near-optimal cardinality estimation algorithm,” Discrete Mathematics & Theoretical Computer Science, Proc., 2007. One thing I didn’t explain in the video: When you split data across HyperLogLog registers/computers, each register sees fewer elements. You might worry this makes each estimate noisier, which could counteract how averaging reduces variance. In practice, averaging still helps because when the registers are balanced (roughly the same number of elements), the variance of each scaled estimate stays about the same as if we hadn’t sharded (split the data into registers/computers). Since the variance doesn’t blow up, averaging effectively reduces the overall noise. .................................................................................... 00:00 - Naïve Counting Algorithm 01:55 - Simple Case: Counting Numbers 03:18 - Extension: Counting Other Things 05:50 - Efficiency: Tracking Longest Run of Zeros 08:02 - Stabilization: Averaging for Stabilization 10:15 - Routing Bitstrings 10:50 - The Algorithm 12:20 - Why “HyperLogLog”? 12:50 - Practical Details

Hyperloglog: Facebook's algorithm to count distinct elements

Reinventing Entropy | Compression is Intelligence Part 1

The Strange Math That Predicts (Almost) Anything

The Algorithm with the Best Name - HyperLogLog Explained #SoME1

How (and why) to take a logarithm of an image

HyperLogLog Hit Counter - Computerphile

The 5-Step DP Formula That Solves Any Problem !

The most beautiful formula not enough people understand

Fall asleep while I build a zoo (Part 2) | Planet Zoo to help you sleep

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

One Formula That Demystifies 3D Graphics

Birds Singing in a Tranquil Forest 🌳 Nature Sounds for Deep Sleep and Calm Mind

God Says:"I WANT YOU TO KNOW THIS — OPEN IT TONIGHT"/God Message Now/God Message

What's NEW at✨SAM'S CLUB✨ + June 2026 INSTANT SAVING!!

A problem so hard even Google relies on Random Chance

Most Vibrant Coral Reefs Ever Captured in 8K Dolby Vision™

ASMR Addictive Fast Tapping Collection For Deep Sleep & Anxiety Relief (No Talking) — 2.5 Hours

Tensors are TOO intuitive

Solving Lights Out Puzzles | Light Chasing vs Linear Algebra

