• edited by
1,009 views
0 0 votes

Question No. 3
Incorrect
You: 01:38
Avg. 02:08
Marks -0.33

Consider an open-address hash table with uniform hashing. What is the time complexity for successful search?
$O\left(\alpha^{2}\right)$
$O(\alpha)$
$O(1-\alpha)$
$O(1+\alpha)$

1 Answer

1 1 vote

here we consider UNIFORM HASHING( as given) which states that the next item to be hashed has an equal probability of being placed into any of the slots independent of any other elements.

assuming that the hash values can be calculated in T(h(x)) =O(1) and the key value to be searched has an expected length of α.

than total time will be O(1+α).

 

 

 

Position:
Show:

Related questions

3 3 votes
2 2 answers
2.6k
2.6k views
Somoshree Datta 5 asked Oct 4, 2018
2,641 views
Suppose that a hash table of m slots contains a single element with key k and the rest of the slots are empty. Suppose further that we search r times in the table for var...