14.05.2017, 11:27
Quote:
|
PHP код:
|
Even more important, there is no fallback code if a collision happend
Hash algorithm you could use: bernstein (djb2), sdbm, adler32 or any other fast algorithm with halfway acceptable results
If you need a reference y_stringhash contains an implentation for bernstein, fnv1 and fnv1a
Hash Functions: http://www.cse.yorku.ca/~oz/hash.html
Simple Hash table: http://www.algolist.net/Data_structu...Simple_example


