Log inStart free
LESSON 16.03 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Reversibility, dead ends and recovery

Watch which moves in a gridworld can be undone and which cannot.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 16.03 · GRIDWORLDREVERSIBLE 119 OF 132 MOVES
01
Stage 1 of 6 · Ways back
A move is reversible if some path leads back. Nothing climbs the ledge at x 1, yet 3 moves return.
Explain it simply

The agent starts on the left, and the goal waits on the right. A move is reversible when some path leads back to where it started. The arrow drops off the ledge, and no move climbs back up. Still, the dashed path walks back in 3 moves, round the end of the ledge.

The grid with the ledge, the pit and the vase. The drop at x 1 has a way back of 3 moves.

agent, intact vaseone-way moves, pit, damagegoal, paths, routeledge (down only)floor
x 0x 1x 2x 3x 4x 5x 6x 701234pitledgegoalstartvasemoves with a way backreversible moves119 of 132one-way moves13drop at x 1, way back3 movesgridworld with a ledge, a pit and a vaseback from (1, 2) to (1, 1): 3 movesx 0x 1x 2x 3x 4x 5x 6x 701234pitledgegoalstartvasemoves with a way backreversible moves119 of 132one-way moves13drop at x 1, way back3 movesgridworld with a ledge, a pit and a vaseback from (1, 2) to (1, 1): 3 moves
Toy: an 8 × 5 grid with a down-only ledge, a pit and a vase
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
rev(s,a)  ⟺  s∈Reach(s′)\text{rev}(s, a) \iff \sy{s}{data}{s} \in \sy{d}{out}{\text{Reach}(s')}
(1,1)∈Reach((1,2)), 3 moves(1,1) \in \text{Reach}((1,2)),\ 3 \text{ moves}

A move is reversible if the state before it is reachable after it.

Common mix-ups

MYTHA move that cannot be undone directly is irreversible.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At slip 0%, are there more or fewer one-way moves than at 10%?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.