Voici différents sites proposant des fonctions de hash-code parfaites:
Quelques références "papier":
Zbigniew J. Czech1 and Bohdan S. Majewski1
1 Institutes of Computer Science, Silesia University of Technology,
and Polish Academy of Sciences, 44-100 Gliwice, Poland
2Key Centre for Software Technology, University of Queensland,
Queensland 4072, Australia
A new algorithm for finding minimal perfect hash functions (MPHF) is proposed. The algorithm given three pseudorandom functions h0, h1 and h2, searches for a function g such that F(w) = (h0 (w) + g(h1 (w)) + g(h2 (w))) mod m is a MPHF, where m is a number of input words. The algorithm involves generation of random bipartite graphs and runs in linear time. The hash function generated is represented by using 2m + 0(1) memory words of logm bits each. The empirical observations show that the algorithm runs very fast in practice.
hash value <- key length + key 1st char + key last char
Appendix. Notation index
Acknowledgements
References
Site Hosting: Bronco