GATE CS 2007 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0133

Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at (i,j) then it can move to either (i+1,j) or (i,j+1). 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)?
  1. A
    \(2^{9}\)
  2. B
    \(2^{19}\)
  3. C
    \[\begin{pmatrix} 8\\ 4 \end{pmatrix}*\begin{pmatrix} 11\\ 5 \end{pmatrix}\]
  4. D
    \[\begin{pmatrix} 20\\ 10 \end{pmatrix}-\begin{pmatrix} 8\\ 4 \end{pmatrix}*\begin{pmatrix} 11\\ 5 \end{pmatrix}\]

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/43509/gate2007-85

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com