hashing an array - howto
Helmut Jarausch
jarausch at skynet.be
Fri Sep 5 10:38:41 EDT 2008
Hi,
I need to hash arrays of integers (from the hash module).
So, I have to derive from array and supply a __hash__ method.
But how to hash an array (of fixed length, say 25)?
What I need is a function which maps a tuple of 25 integers
into 1 integer with good hashing properties.
Does anybody know such a thing?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the Python-list
mailing list