1.

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) 127This intriguing question comes from Hash Tables in division Hash Tables of Data Structures & Algorithms IThe question was posed to me in unit test.

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.



Discussion

No Comment Found

Related InterviewSolutions