General Hash Functions In Python

Arash Partow partow at gmail.com
Mon Jul 17 05:19:42 EDT 2006


Trial and error - how else? :)

I believe finding a perfect hash function for
every kind and combination of data is a very
very time consuming operation. Also there is
the common case where the data is online
(ie: stateless) that said it doesn't mean you
can't make assumptions about the kind of data.



Arash Partow
________________________________________________________
Be one who knows what they don't know,
Instead of being one who knows not what they don't know,
Thinking they know everything about all things.
http://www.partow.net


Paul Rubin wrote:
> "Arash Partow" <partow at gmail.com> writes:
> > For different data types different hash functions work
> > better/worse aka fewer or more collisions.
>
> But you give no indication of which of those hashes works best for
> what kind of data.  How is the user supposed to figure out which one
> to choose?




More information about the Python-list mailing list