+1 vote
in Data Structures & Algorithms I by (88.2k points)
How many probes are required on average for insertion and successful search?

(a) 4 and 10

(b) 2 and 6

(c) 2.5 and 1.5

(d) 3.5 and 1.5

My question comes from Hash Tables topic in portion Hash Tables of Data Structures & Algorithms I

The question was asked in an online interview.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
The correct option is (c) 2.5 and 1.5

For explanation: Using formula, the average number of probes required for insertion is 2.5 and for a successful search, it is 1.5.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.