Machine-translated by Google. Questions are authored in English.
Top

Discussion

In a hash table, which of the following is used to resolve collisions ?

  • A.Hashing
  • B.Chaining
  • C.Backtracking
  • D.Sorting

Answer: B

Collisions are resolved by Chaining.

In separate chaining, each slot of the hash table holds a linked list (chain) of all keys that hash to it, so colliding keys are stored side by side. Open addressing (linear or quadratic probing) is the other main method.

Hashing is what causes collisions, not their remedy, and backtracking and sorting are unrelated techniques.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.