BSD license compatible hash algorithm?

Aryeh M. Friedman aryeh.friedman at gmail.com
Fri Dec 28 05:19:33 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>
> All hashs have issues with pooling.... see
> http://www.burtleburtle.net/bob/hash/index.html... btw it is a old
> wives tale that the number of buckets should be prime (mostly based
> on the very weak implementation Knuth offered)

Forgot to mention this is a theortical not an implementation issue
namely if the range of H is a proper subset of it's domain (which by
definition all finite operations are when considering them over all
integers) then there exists no bijective (i.e. one to one mapping)
function between the two... thus even if the bucket count is equal to
the number of elements to be hashed there will be collisions [roughly
1/3]  unless you use something like gperf to find a perfect hash (this
is impractical for all non-dictionary [i.e. static compile time
content] applications)

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHdPDbzIOMjAek4JIRAgE0AJ4y5b52d+8VajtSwugQjqEitlagxgCeMAn5
hY7RqL5Ije6MTusv7k3ORAI=
=HJbs
-----END PGP SIGNATURE-----



More information about the freebsd-hackers mailing list