1.

Which of the following is the correct function definition for linear probing?(a) F(i)= 1(b) F(i)=i(c) F(i)=i^2(d) F(i)=i+1I want to ask this question from Hash Tables topic in section Hash Tables of Data Structures & Algorithms IThis question was addressed to me in final exam.

Answer»

Right ANSWER is (B) F(i)=i

Easiest explanation - The function USED in linear probing is defined as, F(i)=I where i=0,1,2,3….,n.



Discussion

No Comment Found

Related InterviewSolutions