Hash tables with O(1) worst-case lookup and space efficiency [pdf] | Hacker News
| Mitzenmacher, the author of Probability and Computing, has an interesting survey on cookoo hashing. In it there are a number of open research problems that, for those of you with interest, a worth looking over. The 7th is very interesting to me, regarding optimal ways to maintain a hash table in a parallel computing environment. http://www.eecs.harvard.edu/~michaelm/postscripts/esa2009.pd... ----- |
> the time taken to compute the additional hash functions outweighs any gains in performance. Sounds like you're using the wrong hash functions. Are you using secure cryptographic hash functions perchance? (such as MD5, SHA, etc) Because they're not intended for use in data structures. Most data structure algorithms just require a hash function with good avalanche behaviour and a statistically even bit dispersion. The FNV hash will do this for you with just a MUL and a XOR per byte, which is (rough guess) at least 100 times faster than SHA. FNV hash (http://www.isthe.com/chongo/tech/comp/fnv/) it's super-effective! ----- |
Read full article from Hash tables with O(1) worst-case lookup and space efficiency [pdf] | Hacker News
No comments:
Post a Comment