Standalone, Java implementation of Cuckoo Hashing

While spending some time with Bloom Filters, I came across an interesting hashing technique called Cuckoo Hashing. In short, Cuckoo Hashing is a technique for building a hashtable with guaranteed O(1) access time. Very useful. Unfortunately, after poking around the net a bit, I wasn’t able to find any standalone implementations in Java. So I wrote one. If you find it useful, please drop me a line.

{ 6 comments… read them below or add one }

Anonymous April 25, 2008 at 3:16 pm
lmonson April 25, 2008 at 3:20 pm

I’m not sure why the link wasn’t working for you — the page is very much alive and active. Could you try to access it again? If it still isn’t working, give me a shout and I’ll get the pages to you another way….

Anonymous #2 April 28, 2008 at 7:25 am

Link does not work for me either. :-(

Lynn Monson April 28, 2008 at 8:45 am

I republished the page from WordPress…. I apologize for the inconvenience.

Thim Anneessens December 4, 2008 at 4:35 am

It was a interesting idee to use pseudo-random in stead of the universal hash function. But after running a performance test against my implementation that respects de dessign of the original paper on cuckoo hashing, pseudo-random just did not make it :p.

Your implementation causse also a big memory over-use, becaus it only can rehash when augmenting the table.

Trist November 21, 2009 at 10:48 pm

Why dont you publish your “better” implementation then Thim – I am sure many people would appreciate it!?

Leave a Comment

Previous post:

Next post: