Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE-CS-2007 | Question 85

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Consider the data given in above question.
Suppose that the robot is not allowed to traverse the line segment from (4,4) to (5,4). With this constraint, how many distinct paths are there for the robot to reach (10,10) starting from (0,0)? 

 

\"GATECS200785\"

 

(A)

D
 

(B)

C
 

(C)

B
 

(D)

A
 


Answer: (A)

Explanation:

Since we are not allowed to traverse from (4,4) to (5,4), we subtract all those paths which were passing through (4,4) to (5,4). 
To count number of paths passing through (4,4) to (5,4), we find number of paths from (0,0) to (4,4), and then from (5,4) to (10,10). 
 

From (0,0) to (4,4), number of paths = 8C4
[found in same way as in previous question].

From (5,4) to (10,10), number of paths = 11C5.
So total number of paths required : 20C108C411C5.

So option (D) is correct. 


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads