Generally speaking, I love randomized algorithms, but there is one I love particularly since even after you understand how it works, it still remains magical from a programmer point of view. It accomplishes something that is almost illogical given how little it asks for in terms of time or space. This algorithm is called HyperLogLog, and today it is introduced as a new data structure for Redis. Co
![Redis new data structure: the HyperLogLog - <antirez>](https://cdn-ak-scissors.b.st-hatena.com/image/square/92ba91bd8714215069af10e971813a2fbeb19972/height=288;version=1;width=512/http%3A%2F%2Fantirez.com%2Fmisc%2Fhll_3.png)