• Foundation
  • About 15 min
  • 5 practice questions

Moving on a grid: steps and paths

Move on a grid with steps up, down, left and right, count the steps in a path, and find the shortest way to a target.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Move on a grid using up, down, left and right.
  • Count the steps in a path.
  • Find a shortest path to an object.

In a treasure hunt game, one player thinks of an object on a grid. The other starts at START and moves step by step. You may move up, down, left or right, one box at a time. No slanting moves are allowed!

Our treasure grid. Row 1 is at the bottom. Column 1 is on the left.
RowColumn 1Column 2Column 3Column 4
Row 4-Mango-Flower
Row 3--Kite-
Row 2Ball--Orange
Row 1START-Pencil-

Counting steps

Each move into the next box is one step. To reach a box, count how many steps you go across and how many you go up or down. Then add them.

Let us try 1: start to the orange

START is in Row 1, Column 1. The orange is in Row 2, Column 4.

Across: from Column 1 to Column 4 is 3 steps right. Up: from Row 1 to Row 2 is 1 step up. Total: 3 + 1 = 4 steps.

Let us try 2: two different paths to the flower

The flower is in Row 4, Column 4. Path A: 3 steps right, then 3 steps up. Path B: 3 steps up, then 3 steps right.

Path A: 3 + 3 = 6 steps. Path B: 3 + 3 = 6 steps. Both paths are 6 steps. When you never move backwards, every path to the same box has the same number of steps.

Finding the shortest path

  1. Find the target's row and column
  2. Count steps across
  3. Count steps up or down
  4. Add the two numbers
  5. Never step backwards

Shortest number of steps = steps across + steps up or down, with no going back.

Which is nearer?

Is the mango or the pencil nearer to START? Mango: 1 step right and 3 steps up, so 4 steps. Pencil: 2 steps right and 0 up, so 2 steps. The pencil is nearer.

Try at home with a grown-up: floor treasure hunt

  1. Make a 4 by 4 grid with chalk or tape on the floor.
  2. Hide a small treat under a paper in one box.
  3. Give clues like '2 steps right, 1 step up' and let each other find it.

For the grown-up: Keep the floor clear so nobody trips. Ask the child to say the number of steps before moving, then check by walking.

Key takeaways

  • Move one box at a time: up, down, left or right.
  • Add steps across and steps up or down to count a path.
  • Different paths without going back can have the same length.

Check your understanding

  1. 1. From START, how many steps does it take to reach the kite (Row 3, Column 3)?

    1. 2
    2. 3
    3. 4
    4. 6
    Show answer

    Answer: C. Across: Column 1 to Column 3 is 2 steps. Up: Row 1 to Row 3 is 2 steps. Total: 2 + 2 = 4 steps.

  2. 2. Which moves are NOT allowed in the treasure hunt game?

    1. Up
    2. Left
    3. Right
    4. Slanting (diagonal)
    Show answer

    Answer: D. Only up, down, left and right moves are allowed. Slanting moves are not.

  3. 3. From START, how many steps does it take to reach the ball (Row 2, Column 1)?

    1. 1
    2. 2
    3. 3
    4. 4
    Show answer

    Answer: A. The ball is straight above START, one row up, so it takes 1 step.

  4. 4. Riya starts at START and moves 2 steps right. Where is she?

    1. At the ball
    2. At the pencil
    3. At the kite
    4. At the orange
    Show answer

    Answer: B. 2 steps right from Row 1, Column 1 reaches Row 1, Column 3, where the pencil is.

  5. 5. Which object is farthest from START in steps?

    1. The orange
    2. The mango
    3. The flower
    4. The pencil
    Show answer

    Answer: C. Orange 3 + 1 = 4 steps, mango 1 + 3 = 4 steps, pencil 2 steps, flower 3 + 3 = 6 steps. The flower is farthest.

Sign in to keep track of the lessons you finish.

Next lesson → Maps: a place seen from above

Privacy · Terms · Refunds · Delivery