In hashing, collision results when ______.

2020

In hashing, collision results when ______.

  1. A.

    an attempt is made to delete a record at full primary bucket

  2. B.

    an attempt is made to insert a record at full primary bucket

  3. C.

    an attempt is made to insert a record anywhere in primary bucket

  4. D.

    an attempt is made to insert a record at empty primary bucket

Attempted by 394 students.

Show answer & explanation

Correct answer: B

A collision occurs when two or more distinct keys are mapped to the same hash value or "bucket" by a hash function. If that primary bucket is already full (occupied), the new record cannot be stored there, resulting in a collision. The correct option is B.

Explore the full course: Niacl Ao It Specialist