‹
EXPLORE · LISTEN · DISCOVER

Shortest Route

Technology · AlgorithmsADVENTURE 25

Shortest Route

Explorer · about 8 minutes · a little curiosity goes a long way

Lesson details
Browse all adventures
For grown-ups
Today’s little discovery

An algorithm can be correct and still use extra work. On an open grid, remove moves that cancel each other.

Separate correctness from efficiency: first verify arrival, then compare step counts.

This is a learning model. Try the take-home activity together.
Voice settings

Using Heart (en-US).

Saved voices download ahead of play for this activity. No lesson text is sent to a speech service.The sample plays once and does not change the Sound on/off setting.
Your adventure steps
  1. Wonder
  2. Guess
  3. Try it
  4. Discover
  5. Celebrate
01 / 05
R → R → D
A little wonder
HERE’S A LITTLE WONDER…

Which correct route uses the fewest commands?

A delivery robot wants to save time on an open grid.

No rush. Try an idea and see.
Try it

Open Lesson to read the question, choose your idea, and continue.