GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 85

Monotone paths avoiding a forbidden edge

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 2007 paper

GATE 2007, Q85 2 marks · MCQ
Report issue

Combinatorics & Counting

Question 85, GATE 2007: A robot moves one unit right or up at each step, starting at (0,0) and ending at (10,10). It may not traverse the edge (4,4)→(5,4). How many paths remain? C(n,k) denotes a binomial coefficient.
Options:
(A) 2^9
(B) 2^19
(C) C(8,4)×C(11,5)
(D) C(20,10)−C(8,4)×C(11,5)
Question 85, GATE 2007: A robot moves one unit right or up at each step, starting at (0,0) and ending at (10,10). It may not traverse the edge (4,4)→(5,4). How many paths remain? C(n,k) denotes a binomial coefficient.
Options:
(A) 2^9
(B) 2^19
(C) C(8,4)×C(11,5)
(D) C(20,10)−C(8,4)×C(11,5)
Question 85, GATE 2007: A robot moves one unit right or up at each step, starting at (0,0) and ending at (10,10). It may not traverse the edge (4,4)→(5,4). How many paths remain? C(n,k) denotes a binomial coefficient.
Options:
(A) 2^9
(B) 2^19
(C) C(8,4)×C(11,5)
(D) C(20,10)−C(8,4)×C(11,5)
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Approach. Count forbidden paths by splitting at the forbidden edge. Choose a path to (4,4), traverse the single forbidden step, then choose a path from (5,4) to the destination. Subtract this product from all paths.

2. Derivation and interpretation. Subtract paths using the forbidden edge (4,4)->(5,4) from all C(20,10) paths. A path using that edge has C(8,4) choices to reach (4,4), then the fixed forbidden step, then C(11,5) choices for five right and six up moves from (5,4) to (10,10). Thus the permitted count is C(20,10)-C(8,4)*C(11,5)=184756-70*462=152416, option D.

Original paper, page 21