Examveda

How does rehashing affect a hash table?

A. It sorts elements in the hash table.

B. It increases the size of the hash table and re-calculates indices for all elements.

C. It adds new elements to the hash table.

D. It sorts elements in the hash table.

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.