Skip to content

Instantly share code, notes, and snippets.

View alreich's full-sized avatar
💭
Just having fun...

Al Reich alreich

💭
Just having fun...
View GitHub Profile
@alreich
alreich / hllx.py
Created May 11, 2015 18:50
Basic HyperLogLog: This implementation is from the website, https://github.com/Parsely/python-pds, but has been modified for pedagogical purposes to remove the dependency on the "smhasher" module and so that it can be run using the Anaconda Python distribution.
"""Basic HyperLogLog:
This implementation is from the website,
https://github.com/Parsely/python-pds, but has been modified to remove
the dependency on the "smhasher" module and so that it can be run
using the Anaconda Python distribution.
To find the modifications, look for inline comments that begin with '# !!! '
"""