🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23253

Re: CRC64 test results

#23253
From: Matt Dillon
Date: Fri, 14 Nov 1997 00:00
34 lines
1793 bytes
:In article <64hmn5$6t9$2@news1.epix.net>,
:Forrest J. Cavalier III <mibsoft@epix.net> wrote:
:>In article <64gh6g$ob5$1@flea.best.net>, dillon@best.net wrote...
:>>
:>>    b   - number of bits in hash
:>>    n   - number of words in database
:>>    c   - number of hash collisions that will occur if you attempt to hash n 
:>>          words and have a b bit hash key, assuming a good hash function.
:>>
:>>    c = ( n * (n-1) / 2 ) / 2^b
:>[snip]
:>
:>
:>This formula is true only if you start with an empty hash table.
:>This happens only when you turn the hash system on for the
:>first time.
:>
:>As the steady state operating point is reached, the
:>probability of having a collision is actually close to

    You missed the part of my posting where I say:

	 "... Thus the equation only works well for 2^B substantially larger
	 then N."

    i.e. that the number of collisions winds up being only a small fraction
    of the number of slots in the hash table.  As long as you keep that
    restriction in mind, the equation works just fine.

						-Matt


Technical Details
Message-ID: <64i8ri$qrp$1@flea.best.net>
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!not-for-mail
References: <64a6pf$ejq$1@flea.best.net> <0000346BB22C.NO_UCE@mauve.demon.co.uk> <64gh6g$ob5$1@flea.best.net> <64hmn5$6t9$2@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <64i8ri$qrp$1@flea.best.net>
Subject: Re: CRC64 test results
Date: Fri, 14 Nov 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <64a6pf$ejq$1@flea.best.net> <0000346BB22C.NO_UCE@mauve.demon.co.uk> <64gh6g$ob5$1@flea.best.net> <64hmn5$6t9$2@news1.epix.net>
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!not-for-mail
X-Deja-AN: 289585222
X-Trace: 879535795 14513 dillon 206.184.139.132
Organization: Best Internet Communications, Inc. - 650 964 BEST
Newsgroups: news.software.nntp