Example
Follow an ordered 4-queens backtracking trace.
highlighted = computed this step
Step 1 — Branch
Compute the highlighted combinatorics value.
cell, verdict((0, 0), place)
Step 2 — Branch
Compute the highlighted combinatorics value.
cell, verdict((1, 1), reject diagonal)
Step 3 — Branch
Compute the highlighted combinatorics value.
cell, verdict((1, 2), place)
Step 4 — Branch
Compute the highlighted combinatorics value.
cell, verdict((2, 1), reject diagonal)
Step 5 — Branch
Compute the highlighted combinatorics value.
cell, verdict((2, 3), reject diagonal)
Step 6 — Branch
Compute the highlighted combinatorics value.
cell, verdict((1, 3), place)
Step 7 — Branch
Compute the highlighted combinatorics value.
cell, verdict((2, 1), place)
Step 8 — Branch
Compute the highlighted combinatorics value.
cell, verdict((3, 2), reject diagonal)
Step 9 — Branch
Compute the highlighted combinatorics value.
cell, verdict((0, 1), place)
Step 10 — Branch
Compute the highlighted combinatorics value.
cell, verdict((1, 3), place)
Step 11 — Branch
Compute the highlighted combinatorics value.
cell, verdict((2, 0), place)
Step 12 — Branch
Compute the highlighted combinatorics value.
cell, verdict((3, 2), solution)
combinatorics-search
Every row is intentionally ordered and pinned to the lesson specification.