Consider a hash table with 10 slots. What is the sequence of the following…

BEL · Computer Science · Probationary Engineer · 2023

Consider a hash table with 10 slots. What is the sequence of the following elements in a hash table if the hash function is k mod 10 and the collision is resolved using linear probing? 44, 26, 12, 93, 80, 57, 56, 23, 46, 36

  1. A.

    80, 46, 12, 93, 44, 23, 26, 57, 56, 36

  2. B.

    80, 36, 12, 93, 44, 23, 26, 57, 56, 46

  3. C.

    80, 36, 12, 93, 44, 23, 26, 56, 46, 57

  4. D.

    12, 23, 26, 36, 44, 46, 56, 57, 80, 93

Attempted by 231 students.

Show answer

Correct answer: B

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…