Algorithms & EmergenceAlgorithms

The Hand-on-the-Wall Rule

Keep one hand on the wall and you'll escape most mazes

You're deep in a hedge maze, no map, no signal, and every corner looks the same. Could one simple habit walk you out?

You'll find out

  • The one-hand trick for mazes
  • The kind of maze that defeats it
  • How a computer finds the shortest way

Why it matters

Maze rules are search rules: the same ideas steer robot vacuums, game characters and the route on your map app.

About 3 min6 interactive slides · 5 questionsLesson 92 · Zone 11

Play this lesson

Free to play in your browser or on iPhone

More in this zone

  1. 91Sensor TechnologyWhy Gloves Don't Work on PhonesYour finger changes an electric field, and so does a sausage
  2. 93GeometryWhy Three Legs Never WobbleThree points always fit a surface; four often don't
  3. 94StatisticsWhen the Average LiesA billionaire walks into a bar and everyone gets rich on average
  4. 95Wave PhysicsThe Doppler EffectMotion changes the pitch of sound and the color of light
  5. 96Cognitive PsychologyThe Stroop EffectSaying the color of a word is hard when the word names another color
  6. 97StatisticsBenford's LawIn real data, numbers start with 1 six times more often than with 9
  7. 98Planetary ScienceA Day on Venus Is Longer Than Its YearVenus spins so slowly the year ends first
  8. 99Recreational MathematicsThe Mysterious 6174Any four-digit number falls into the same number