creating perfect minimal hash function
Generate a minimal perfect hash function for the keys in a file, desired hash values may be specified within this file as well. A given code template is filled with parameters, such that the output is code which implements the hash function. Templates can easily be constructed for any programming language.
Part of the code is based on an a program A.M. Kuchling wrote: http://www.amk.ca/python/code/perfect-hash
The algorithm the program uses is described in the paper ‘Optimal algorithms for minimal perfect hashing’, Z. J. Czech, G. Havas and B.S. Majewski. http://cmph.sourceforge.net/papers/chm92.pdf
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size perfect-hash-0.2.1.tar.gz (8.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|