Log inStart free
LESSON 19.07 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Generate-and-filter pipelines

Watch generated mazes pass or fail three checks, one check at a time.


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

Go Pro · $8.25/mo
EXPLAINER · 19.07 · TASK FILTER24 TASKS · RANDOM WALLS
01
Stage 1 of 6 · Generate tasks
A task generator draws 24 key-and-door mazes. Its random walls break some of them.
Explain it simply

Each card is one task: from the top left, get the key, pass the door and reach the goal. This generator drops each wall at random, with a 35 percent chance. It's fast, but nothing stops it from making a task that can't be done.

24 small maze cards on the left, and a larger copy of task 10 on the right. Each maze shows a start, a key, a door and a goal.

start, reach, solutionkey, door, budgetrejected, blind trailgoal, keptrejected frame, trail with no goal
generated batch: 24 tasks (random walls)task 10 · generated12345678910111213141516171819202122232416 of 40 inner walls standdoor: cell 18 · key: cell 11start: cell 0 · goal: cell 24generated batch: 24 tasks (random walls)task 10 · generated12345678910111213141516171819202122232416 of 40 inner walls standdoor: cell 18 · key: cell 11start: cell 0 · goal: cell 24
Toy: 24 seeded 5 × 5 key-and-door mazes; 1,000 for the rates
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
we∼Bernoulli(0.35),  e=1,…,40\sy{w}{data}{w_e} \sim \mathrm{Bernoulli}(\sy{p}{param}{0.35}),\; e = 1, \dots, 40
E[walls]=0.35⋅40=14\mathbb{E}[\text{walls}] = 0.35 \cdot 40 = 14

Each of the 40 inner walls stands with chance 0.35.

Common mix-ups

MYTHA generator that makes only solvable tasks needs no filter.

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

Predict, then reveal
3 CHECKS · PRO
Q01With random walls, if the step budget grows from 2 × L to 3 × L, do more tasks survive?

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 2 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.