LESSON 13.06 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Monte Carlo tree search and UCT
Watch a search tree grow one simulation at a time toward the winning move.
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/moEXPLAINER · 13.06 · SEARCH BAYSIM 8 · TAKE 2 · U 2.13
01
Stage 1 of 6 · Select
Seven simulations built this tree. Simulation 8 follows the highest UCT score U down to 7 stones.
Explain it simply
Each circle is a position, with the stones left inside. The search starts at the top. At each fork, it adds a bonus to each move's win rate Q. The bonus is bigger for moves tried less often, so no move is forgotten. The search takes the move with the highest sum, U.
A tree of 8 positions after 7 simulations. At the root, U is 1.79 for take 1, 2.13 for take 2, 1.95 for take 3. The ochre path goes down to 7 stones.
wins W over visits NUCT path, value tablenew node, rollout
Toy: Nim with 9 stones, a value table from 200 self-play games
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Win rate plus a bonus that shrinks as a move gets more visits.
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.