Computer scientists invent an efficient new way to count
quantamagazine.org
Computer scientists invent an efficient new way to count
1–10 of 299 posts
Re: Computer scientists invent an efficient new way to count
#2This also works especially well (that is, efficiently) in the streaming case, allowing you to keep something resembling a "counter" for the distinct elements, albeit with a error rate.
The benefit of HyperLogLog is that it behaves similarly to a hash set in some respects -- you can add items, count distinct them, and, importantly, merge two HLLs together (union), all the while keeping memory fixed to mere kilobytes even for billion-item sets. In distributed data stores, this is the trick behind Elasticsearch/OpenSearch cardinality agg, as well as behind Redis/Redict with its PFADD/PFMERGE/PFCOUNT.
I am not exactly sure how this CVM algorithm compares to HLL, but they got Knuth to review it, and they claim an undergrad can implement it easily, so it must be pretty good!
Re: Computer scientists invent an efficient new way to count
#3Re: Computer scientists invent an efficient new way to count
#4Re: Computer scientists invent an efficient new way to count
#5When do we stop calling this counting and start calling it estimation?
Re: Computer scientists invent an efficient new way to count
#6When do we stop calling this counting and start calling it estimation?
Re: Computer scientists invent an efficient new way to count
#7> When the space is full, press pause and flip a coin for each word. Heads, and the word stays on the list; tails, and you delete it.
I wasn't expecting to go that far: randomization. How can you verify if the answer is good? Only approximation, maybe..
Re: Computer scientists invent an efficient new way to count
#8CS guys always wanting to throw away a good system and start from scratch.
Re: Computer scientists invent an efficient new way to count
#9Re: Computer scientists invent an efficient new way to count
#10CS guys always wanting to throw away a good system and start from scratch.