GATE CS 2026, set 1 · Question 24 · Algorithms · Multiple select (MSQ) · 1 mark · no negative marks

Consider a hash table P[0, 1, …, 10] that is initially empty. The hash table is maintained using open addressing with linear probing. The hash function used is h(x) = (x + 7) mod 11.
Consider the following sequence of insertions performed on P:
1, 13, 22, 15, 11, 24
Which of the following positions in the hash table is/are empty after these insertions are performed?

  1. (A) 0
  2. (B) 10
  3. (C) 2
  4. (D) 1
Answer

Answer (C)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes