Jump to content

Talk:Approximate counting algorithm

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 173.252.71.4 (talk) at 23:24, 22 January 2013 (Recent developments). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconArticles for creation Start‑class
WikiProject iconThis article was reviewed by member(s) of WikiProject Articles for creation. The project works to allow users to contribute quality articles and media files to the encyclopedia and track their progress as they are developed. To participate, please visit the project page for more information.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
Note icon
This article was accepted on 8 November 2008 by reviewer Graeme Bartlett (talk · contribs).

Coin tossing

Is it really necessary to toss the coin N times for a counter with value N on every event just to see if they're all heads? Couldn't we stop as soon as a tail is observed? -- Ralph Corderoy (talk) 08:28, 6 July 2011 (UTC)[reply]

Actually you don't need multiple tosses at all. Simply generate a random number and take it modulo 2^V, where V is the current value. If the modulo is 0, then increment the counter. --CAFxX (talk) 15:14, 4 January 2012 (UTC)[reply]

Recent developments

Developments like the HyperLogLog algorithm (see highscalability.com) should perhaps be included. — Preceding unsigned comment added by Herojoker (talkcontribs) 22:42, 26 August 2012 (UTC) http://blog.notdot.net/2012/09/Dam-Cool-Algorithms-Cardinality-Estimation <= This is a great description of the algorithm[reply]