+1 vote
in Data Structures & Algorithms I by (88.2k points)
What is the table size when the value of p is 7 in multiplication method of creating hash functions?

(a) 14

(b) 128

(c) 49

(d) 127

This intriguing question comes from Hash Tables in division Hash Tables of Data Structures & Algorithms I

The question was posed to me in unit test.

1 Answer

+1 vote
by (737k points)
selected by
 
Best answer
Correct choice is (b) 128

To explain: In multiplication method of creating hash functions the table size can be taken in integral powers of 2.

  m = 2^p

  m= 2^7

  m = 128.

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

...