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

Sparse vs dense rewards

See one warehouse order paid three ways, and which one a learner finds.


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 · 16.12 · REWARD BAYFULL · 20 STEPS · TERMINATED
01
Stage 1 of 6 · Reward strip
The full route packs the order in 20 steps. A sparse reward pays on 1 step, milestones on 5 steps.
Explain it simply

Each row of the strip pays the full route, which packs the order in 20 steps. The sparse row pays only when the whole order is packed. The milestone row is a dense reward: it pays a little for each real part of the job. The third row hides a bug, shown in stage 5.

A 6 by 4 floor with the route. Below it, a strip of 20 steps with one row per design. Sparse pays on 1 step, milestones on 5 steps.

robot and routediscount γrewardpaid againfloor
01234567891011121314151617181920212223cartABCpack+0.1 once+0.1 once+0.1 once+0.1 each, +0.4 donestartsparse1.00milestones1.00paid while held3.00scale 0 to 5.40warehouse floorreturn per designreward per step · full routereturn151015202530step (budget 30 ticks)sparse1.00milestones1.00held3.0001234567891011121314151617181920212223cartABCpack+0.1 once+0.1 once+0.1 once+0.1 each, +0.4 donestartsparse1.00milestones1.00paid while held3.00scale 0 to 5.40warehouse floorreturn per designreward per step · full routereturn151015202530step (budget 30 ticks)sparse1.00milestones1.00held3.00
Toy: the 16.C2 warehouse, 30 ticks
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
G=∑krk\sy{G}{out}{G} = \sum_{k} \sy{r}{out}{r_k}
G=0.1+0.1+0.2+0.1+0.5=1.00G = 0.1 + 0.1 + 0.2 + 0.1 + 0.5 = 1.00

The return adds the reward of every step.

Common mix-ups

MYTHA sparse reward is a wrong reward.

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

Predict, then reveal
3 CHECKS · PRO
Q01The slow robot packs 2 of 3 items. Which design still pays it?

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.