GATE CS 2014, set 3 · Question 50 · Algorithms · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the first 3 slots are unfilled after the first 3 insertions?

  1. (A) (97 × 97 × 97)/100³
  2. (B) (99 × 98 × 97)/100³
  3. (C) (97 × 96 × 95)/100³
  4. (D) (97 × 96 × 95)/(3! × 100³)
Answer

Answer (A)

Answer from the official GATE CS 2014 answer key.

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