+1 vote
in Data Structures & Algorithms I by (88.2k points)
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+1

I want to ask this question from Hash Tables topic in section Hash Tables of Data Structures & Algorithms I

This question was addressed to me in final exam.

1 Answer

+1 vote
by (672k points)
selected by
 
Best 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.

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.

Categories

...