GATE Computer ScienceVery hardGATE CS (PYQ pattern)

In an election A gets 10 votes and B gets 6. Votes are counted one at a time (votes for the same candidate indistinguishable). In how many counting orders is A never behind B, yet the count is tied at least once after counting has begun?

  1. A. 2002
  2. B. 1638
  3. C. 3640
  4. D. 1430

Correct answer: B. 1638

Never behind (weak ballot): (a − b + 1)/(a + 1)·C(16, 6) = 5/11 · 8008 = 3640. Never tied after the start (strictly ahead throughout): (a − b)/(a + b)·C(16,6) = 4/16 · 8008 = 2002. Never behind but tied at some point: 3640 − 2002 = 1638.

More Discrete Mathematics questions

Exams that ask this topic