Examveda

Which of the following is the hashing function for separate chaining?

A. H(x)=(hash(x)+f(i)) mod table size

B. H(x)=hash(x)+i2 mod table size

C. H(x)=x mod table size

D. H(x)=x mod (table size * 2)

Answer: Option C


This Question Belongs to Data Structure >> Hashing

Join The Discussion

Related Questions on Hashing

In hashing, what is a "collision"?

A. When two elements are stored in the same slot.

B. When a hash table exceeds its capacity.

C. When a hash function fails to produce a unique index.

D. When two keys hash to the same index.