GATE Computer ScienceEasyGATE CS (PYQ pattern)

Coupons of 6 equally likely types are drawn with replacement. What is the expected number of draws until 4 different types have been seen?

  1. A. 14.7
  2. B. 4.0
  3. C. 5.7
  4. D. 9.7

Correct answer: C. 5.7

After seeing i types, a new type appears with probability (6 − i)/6, so the wait is 6/(6 − i). Sum for i = 0…3: 1 + 1.2 + 1.5 + 2 = 5.7. 14.7 is the expected time to collect all 6 types.

More Algorithms questions

Exams that ask this topic