Live data from Hacker News

Hash tables with O(1) worst-case lookup and space efficiency [pdf]

ru.is

1–10 of 45 posts

Re: Hash tables with O(1) worst-case lookup and space efficiency [pdf]

#6
post #3

Cuckoo hashing is not only optimal in theory, it is also very fast in practice. The only downside, though, is that the insert time has linear-time worst case. Thus it may be not the best solution if latency is an issue.

"Linear-time worst case" is different from "amortized constant time", which is what cuckoo hashing provides.

Almost all the containers we use on a regular basis provide only amortized constant time inserts.

Re: Hash tables with O(1) worst-case lookup and space efficiency [pdf]

#7
post #6
post #3

Cuckoo hashing is not only optimal in theory, it is also very fast in practice. The only downside, though, is that the insert time has linear-time worst case. Thus it may be not the best solution if latency is an issue.

"Linear-time worst case" is different from "amortized constant time", which is what cuckoo hashing provides. Almost all the containers we use on a regular basis provide only amortized constant time inserts.

Linear time worst case and amortized constant time are not mutually exclusive. You are right that most containers that we use have amortized constant time complexity, but they also have linear worst case complexity. Most times this is because an internal array has to be resized and the contents have to be copied over to the new enlarged array.

Re: Hash tables with O(1) worst-case lookup and space efficiency [pdf]

#10
post #2

"WHY ELSE IS THIS COOL?" seems a very casual heading for an academic article.

It looks like it was a workshop paper, from the 7th Workshop on Distributed Data and Structures. I don't know much about that particular workshop, but workshops often aim for a more informal atmosphere, since one of their main roles is fostering discussion (incl. of works in progress) and bringing communities of researchers together to discuss things.
Post reply on HN