🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57549

Re: Using Message-ID to store binary file information -- Alternate probability calculation

#57549
From: Klaas
Date: Fri, 22 Mar 2002 21:14
46 lines
2948 bytes
In reading Andrew's note I realized the birthday paradox formula can
be applied here, assuming MD5 is evenly distributed.

The probability q that among k people and n possible birthdays no two
share the same birthday satisfies:

q <= exp( - k(k-1)/2n )

n here is 2^x, x being the number of bits we keep in our hash.
k is the number of files in the time period we want to consider.

try k = 10000 files, x = 32 bits.

q <= .98842, 1.2% chance of collision.  Not terribly great, but with
file size, acceptible.

try k = 10000, x = 24 bits (divisible by 6).

q <= .05078, 94.9% chance of collision.  To achieve a similar level as
the 32bit hash, the # file window must be reduced to 635 at a time.

try k = 20000, x = 32 bits
q <= .953503, 4.5% chance of collision.  Still acceptible with file
size.

A 32 bit hash starts degenerating at around 40000 files, where the
collision probability approches 20%.  It's 35% at 60000 files, and
gets bad after that. 45% at 70000 files, 53% at 80000 files, 62% at
90000 files, 70% at 100000 files.

Comparatively, a 48-bit hash has a .0018% chance of collision with
100000 files.  Even a 36 bit hash has only a 7% collision chance at
100k files.

This is where my expertise ends.  If someone has data estimating the
number of files posted daily to usenet and how even a distribution MD5
is, it would be helpful.  I could throw up a few graphs on the web
comparing the bit sizes, too.

-Mike




Technical Details
Message-ID: <a7g6q8$l3t6e$1@ID-26705.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!uni-berlin.de!shw50-97.accesscable.NET!not-for-mail
References: <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%planb@newsreaders.com> <20020321125143.414$Wp@newsreader.com> <a7ddkd$j6s1m$1@ID-26705.news.dfncis.de> <3c9c54a2.1953960@news> <a7e4h9$kvunt$1@ID-26705.news.dfncis.de> <20020322023326.175$pl@newsreader.com> <3c9d13a7.6329505@news>

Show Full Headers
Complete Article Headers
Message-ID: <a7g6q8$l3t6e$1@ID-26705.news.dfncis.de>
Subject: Re: Using Message-ID to store binary file information -- Alternate probability calculation
Date: Fri, 22 Mar 2002 17:14:12 -0400
From: "Klaas" <spamhole@klaas.ca>
References: <180320022351466617%planb@newsreaders.com> <20020320140409.897$WW_-_@newsreader.com> <200320021558402413%planb@newsreaders.com> <20020320174111.780$V8@newsreader.com> <200320022314345462%planb@newsreaders.com> <20020321022856.582$dC@newsreader.com> <210320021224366481%planb@newsreaders.com> <20020321125143.414$Wp@newsreader.com> <a7ddkd$j6s1m$1@ID-26705.news.dfncis.de> <3c9c54a2.1953960@news> <a7e4h9$kvunt$1@ID-26705.news.dfncis.de> <20020322023326.175$pl@newsreader.com> <3c9d13a7.6329505@news>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!uni-berlin.de!shw50-97.accesscable.NET!not-for-mail
Newsgroups: news.software.nntp
Organization: This is a valid mailbox
Lines: 45
NNTP-Posting-Host: shw50-97.accesscable.net (24.138.50.97)
X-Trace: fu-berlin.de 1016831625 22148302 24.138.50.97 (16 [26705])
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200