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?
- A. 2002
- B. 1638
- C. 3640
- 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
- T(0) = T(1) = 1 and T(n) = T(n − 1) + T(n − 2) + n for n ≥ 2. What is T(12)?
- In how many ways can 16 be written as an ordered sum (a composition) of parts each equal to 1, 3 or 4?
- How many ordered 5-tuples of positive odd integers, each at most 9, sum to 25?
- Eight people A, B, C, D, E, F, G, H sit around a round table (arrangements that differ by rotation are the same). In how many arrangements…
- How many permutations of {1, …, 6} have no increasing subsequence of length 4 and no decreasing subsequence of length 3?
- How many relations on {1, 2, 3} are reflexive and transitive (preorders) but are neither symmetric nor antisymmetric?