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
- Printed 4×4 Island Map worksheets (diagram below) and pencils
Vocabulary
- Route (Path): The sequence of squares a token visits from Start (
S) to Treasure (T).
- Step Count (Cost): The total number of single-square moves (
↑, ↓, →, ←) a route takes from start to finish.
- Efficient: Finishing the job correctly without wasting extra steps.
Lesson flow
1. Opening: Two Sailors, One Treasure Island (7 min)
- 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
- Two sailors both steer around the Reef Rocks in Column 2 and reach
T safely without hitting a rock:
- Sailor Ava's Program (North Pass via Row 4):
↑ ↑ → → ↓ →
- Sailor Ben's Program (South Pass via Row 1):
↓ → → ↑ ↑ →
- Trace both on the board:
- Do both sailors reach
T safely? Yes!
- Count the steps: Ava took
6 steps, and Ben took 6 steps—a tie!
2. Main activity: Finding the Shortest Safe Route (18 min)
- Why 6 Steps Is the Shortest Here—and How a Route Can Waste Extra Steps (6 min):
- 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)?"
- 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.
- Now test Sailor Cora's Longer Scenic Route (where Cora doesn't stop when she first reaches
T on step 6):
↑ ↑ → → → ↓ ← →
- 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 (→)!
- Cora took
8 steps (2 wasted back-and-forth steps after already reaching T!).
- 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
S is at (Col 2, Row 1); T is at (Col 4, Row 4).
- Pairs must:
- Trace Route 1:
← ↑ (hits rock at Col 1, Row 2—invalid!)
- Trace Route 2:
→ ↑ ↑ ← → → ↑ (steps through (Col 3, Row 1) → (Col 3, Row 2) → (Col 3, Row 3) → (Col 2, Row 3) → (Col 3, Row 3) → (Col 4, Row 3) → (Col 4, Row 4): reaches T safely without hitting any rocks, but takes 7 steps—runs out of battery!).
- Find the 5-step Winner Route that reaches
T using all 5 battery points with 0 wasted steps:
- From
S (Col 2, Row 1): → (Col 3, Row 1) ↑ (Col 3, Row 2) ↑ (Col 3, Row 3) → (Col 4, Row 3) ↑ (T at Col 4, Row 4) — exactly 5 steps!
3. Discussion questions (5 min)
- Question 1: "Can two different programs both be 100% correct even if they use different arrows?"
- Example good answer: Yes! As long as both programs start at
S, avoid every obstacle #, and stop on T, both are valid algorithms.
- Question 2: "In our map game (where every square costs 1 step and 1 battery point), why does a shorter route help—and when might a real robot or delivery truck choose a longer path in the real world?"
- Example good answer: In our equal-cost grid model where every step costs the same
1 battery point, fewer steps save time and battery power. (In the real world, hills, rough terrain, traffic, or sharp turns can have different energy costs, so a slightly longer smooth road can sometimes use less battery or be safer!)
4. Closing check (5 min)
- 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:
- Program X:
↑ ↑ → → →
- Program Y:
→ ↑ → ↓ ↑ ↑ →
How many steps does each program take, and which one is more efficient in this equal-step grid model?
- Look closely at Program Y (
→ ↑ → ↓ ↑ ↑ →). Which two arrows in the middle undo each other and waste 2 steps?
- 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
- Program X takes
5 steps; Program Y takes 7 steps. Program X is more efficient because it reaches the goal in 2 fewer steps.
- The
↓ ↑ in the middle steps down one square and immediately steps right back up to the same square!
- No! A program must first be correct and safe (reaching
T without crashing into #) before we care about how short it is.
Differentiation
- Extra support: Have students place a pencil tally mark, point step by step, or place a large paper token on each square as they visit it; any square that gets two tally marks shows where the route looped back on itself! Students may give responses in writing, by pointing, or verbally.
- Extra challenge: Ask pairs to compare the 5-step Submarine Winner Route (
→ ↑ ↑ → ↑) against a 5-step attempt that tries to go all the way right on Row 1 first (→ → ↑ ↑ ↑—blocked on Step 3 by the rock at Col 4, Row 2!) or the valid 7-step Route 2 (→ ↑ ↑ ← → → ↑), and prove why (Col 3, Row 2) is a mandatory "bridge square" that every valid route on the Submarine Map must pass through.