The value of h2(k) can be composite relatively to the hash table size m.

The value of h2(k) can be composite relatively to the hash table size m.
A. True
B. False
 
Answer: b
Explanation: The value h2(k) must be relatively prime to the hash table size m for the entire hash table to be searched. It can be ensured by having m in powers of 2 and designing h2 so that it produces an odd number.
 

Tìm kiếm

Back
Top