Why it matters
HLL is standard in analytics warehouses. 1.6% error at 1.5KB is a great trade.
Advertisement
The architecture
Hash item; bucket by top bits.
Track max leading zeros per bucket.
Harmonic mean estimate.
Advertisement
How it works end to end
Redis PFADD/PFCOUNT.
BigQuery APPROX_COUNT_DISTINCT.
Snowflake HLL functions.