#Insertion time range on hashtable closed hashing with linear probing

8 messages · Page 1 of 1 (latest)

graceful sunBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

empty blaze
#

Linear probing gets really slow the more your table is filled and the last few percentages are incredibly expensive. I'm actually surprised it's that fast even with 94%+ fill rate.

Did you implement some optimisation like e.g. Robin Hood?

#

But I'm also surprised why the inserts with small fill factor are that slow

empty blaze
#

Can't test it rn cause I'm on mobile, but they say to use it in Linux because they use gettimeofday which is POSIX only as they say.

#

This is what I would expect as results (left side is chained hash table, right side is open addressing table), the probe length is how many elements need to be checked on average until a free slot is found:

#

That should be fine

graceful sunBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity