What is the hash function used in Double Hashing?

Hưng Thịnh

New member
What is the hash function used in Double Hashing?
A. (h1(k) – i*h2(k))mod m
B. h1(k) + h2(k)
C. (h1(k) + i*h2(k))mod m
D. (h1(k) + h2(k))mod m
 
Answer: c
Explanation: Double hashing uses a hash function of the form (h1(k) + i*h2(k))mod m where h1 and h2 are auxiliary hash functions and m is the size of the hash table.
 

Tìm kiếm

Back
Top