Lesson 3: Two Roads to the Treasure — Comparing Short and Long Routes

Learning objective

Students will trace two or more valid grid algorithms that reach the same goal, count the total steps taken by each route, and explain why finding a shorter route matters when energy or time is limited.

Materials

Vocabulary

Lesson flow

1. Opening: Two Sailors, One Treasure Island (7 min)

  1. Draw this 4×4 Island Map on the board (S at Col 1, Row 2; T at Col 4, Row 3; # = Reef Rocks):
Row 4 (Top):    [ . ]  [ . ]  [ . ]  [ . ]
Row 3:          [ . ]  [ # ]  [ . ]  [ T ]
Row 2:          [ S ]  [ # ]  [ . ]  [ . ]
Row 1 (Bottom): [ . ]  [ . ]  [ . ]  [ . ]
                Col 1  Col 2  Col 3  Col 4
  1. Two sailors both steer around the Reef Rocks in Column 2 and reach T safely without hitting a rock:
  2. Sailor Ava's Program (North Pass via Row 4): ↑ ↑ → → ↓ →
  3. Sailor Ben's Program (South Pass via Row 1): ↓ → → ↑ ↑ →
  4. Trace both on the board:
  5. Do both sailors reach T safely? Yes!
  6. Count the steps: Ava took 6 steps, and Ben took 6 steps—a tie!

2. Main activity: Finding the Shortest Safe Route (18 min)

  1. Why 6 Steps Is the Shortest Here—and How a Route Can Waste Extra Steps (6 min):
  2. Ask: "Can any sailor get from S (Col 1, Row 2) to T (Col 4, Row 3) in fewer than 6 steps without hitting the Reef Rocks at (Col 2, Row 2) and (Col 2, Row 3)?"
  3. Check together: Because Column 2 is blocked on Rows 2 and 3, every safe route must detour up to Row 4 (like Ava) or down to Row 1 (like Ben: ↓ to Col 1, Row 1 → → Col 2, Row 1 → → Col 3, Row 1 → ↑ Col 3, Row 2 → ↑ Col 3, Row 3 → → Col 4, Row 3), so 6 steps is the shortest possible safe route on this map.
  4. Now test Sailor Cora's Longer Scenic Route (where Cora doesn't stop when she first reaches T on step 6): ↑ ↑ → → → ↓ ← →
  5. Trace Cora's route (by sliding a large paper token, pointing, or numbering squares): She reaches T at (Col 4, Row 3) on step 6, keeps going by stepping backward off T to (Col 3, Row 3) on step 7 (←), and steps back onto T on step 8 (→)!
  6. Cora took 8 steps (2 wasted back-and-forth steps after already reaching T!).
  7. Pair Battery-Limit Challenge (12 min): Give pairs a new 4×4 Submarine Map where the submarine only has 5 battery points (1 battery point = 1 step):
Row 4 (Top):    [ . ]  [ . ]  [ # ]  [ T ]
Row 3:          [ . ]  [ . ]  [ . ]  [ . ]
Row 2:          [ # ]  [ # ]  [ . ]  [ # ]
Row 1 (Bottom): [ . ]  [ S ]  [ . ]  [ . ]
                Col 1  Col 2  Col 3  Col 4

3. Discussion questions (5 min)

4. Closing check (5 min)

  1. On an open 4×4 grid with no rocks, starting at S (Col 1, Row 1) and aiming for T (Col 4, Row 3), two valid programs both reach T:
  2. Program X: ↑ ↑ → → →
  3. Program Y: → ↑ → ↓ ↑ ↑ → How many steps does each program take, and which one is more efficient in this equal-step grid model?
  4. Look closely at Program Y (→ ↑ → ↓ ↑ ↑ →). Which two arrows in the middle undo each other and waste 2 steps?
  5. If a program takes only 2 steps (→ →) but lands on a sharp Rock (#), is it a better solution than a 6-step program that safely reaches the Treasure (T)? Why or why not?

Worked answers for closing check

  1. Program X takes 5 steps; Program Y takes 7 steps. Program X is more efficient because it reaches the goal in 2 fewer steps.
  2. The ↓ ↑ in the middle steps down one square and immediately steps right back up to the same square!
  3. No! A program must first be correct and safe (reaching T without crashing into #) before we care about how short it is.

Differentiation