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

Discussion

Open addressing resolves collisions by

  • A.storing the colliding entries in a separate overflow table
  • B.hashing the name a second time with a different function
  • C.probing further buckets until a free one is found
  • D.keeping a linked list from each bucket of the table

Answer: C

Correct answer: probing further buckets until a free one is found

Open addressing keeps everything in the table itself: on a collision it probes the next bucket, or one chosen by a further computation, until it finds a free one. It avoids the pointers that chaining needs, at the cost of performance falling away sharply as the table fills.

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

Post your comment

Please log in or register to post a comment.