1.

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.5My question comes from Hash Tables topic in portion Hash Tables of Data Structures & Algorithms IThe question was asked in an online interview.

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.



Discussion

No Comment Found

Related InterviewSolutions