Question: The following formula predicts for linear probing the average number of probes needed for an unsuccessful search in a hash table with a load factor

The following formula predicts for linear probing the average number of probes needed for an unsuccessful search in a hash table with a load factor of ?:

The following formula predicts for linear probing the average number of probes

a) If the hash table is 80% full, what is the average number of probes needed to determine that a given key is not in the table?

b) Suppose that we are to store 10,000 keys in a hash table that has a capacity of 11,000. For this configuration, what is the average number of probes needed to determine that a given key is not in the table?

c) Are we better off storing the 10,000 keys in a balanced binary search tree (BST) instead of a hash table of size 11,000? Please justify your answer by considering the worst case complexity of searching a balanced BST.

(1 a)2 N

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!