Examveda

What is a hash function primarily used for in hashing?

A. To balance a binary search tree.

B. To map data to a fixed-size value.

C. To find the maximum element in a set.

D. To balance a binary search tree.

Answer: Option B


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.