The GATE Grind

GATE 2022 BT – Question 9

General Aptitude · Spatial Aptitude: Spatial Reasoning and Visualization · 2 marks · Multiple choice

In the square grid shown on the left, a person standing at P2 position is required to move to P5 position. The only movement allowed for a step involves, “two moves along one direction followed by one move in a perpendicular direction”. The permissible directions for movement are shown as dotted arrows in the right. For example, a person at a given position Y can move only to the positions marked X on the right. Without occupying any of the shaded squares at the end of each step, the minimum number of steps required to go from P2 to P5 is 1 2 3 4 5 P Q R S T Example: Allowed steps for a person at Y

source diagram and its labels are reproduced in the attached image.
  1. 4
  2. 5
  3. 6
  4. 7

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) 5

Explanation

Breadth-first search over the allowed knight moves while excluding black landing cells first reaches P5 after five steps.

Official GATE 2022 answer key: https://gate2026.iitg.ac.in/doc/download/Answer_keys2022/bt_2022.pdf