+1 vote
in Data Structures & Algorithms I by (88.2k points)
What is the advantage of the multiplication method?

(a) only 2 steps are involved

(b) using constant

(c) value of m not critical

(d) simple multiplication

This key question is from Hash Tables topic in chapter Hash Tables of Data Structures & Algorithms I

This question was addressed to me in an online quiz.

1 Answer

+1 vote
by (672k points)
selected by
Best answer
Right answer is (c) value of m not critical

For explanation: The value of m can be simply in powers of 2 since we can easily implement the function in most computers. m=2^p where p is an integer.

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.