Example
Run Dijkstra on positive integer edge weights.
highlighted = computed this step
Step 1 — Dijkstra row
Compute the highlighted combinatorics value.
visit, distances, previous(A, (0, 2, 5, 99, 99), (-, A, A, -, -))
Step 2 — Dijkstra row
Compute the highlighted combinatorics value.
visit, distances, previous(B, (0, 2, 3, 6, 99), (-, A, B, B, -))
Step 3 — Dijkstra row
Compute the highlighted combinatorics value.
visit, distances, previous(C, (0, 2, 3, 4, 10), (-, A, B, C, C))
Step 4 — Dijkstra row
Compute the highlighted combinatorics value.
visit, distances, previous(D, (0, 2, 3, 4, 7), (-, A, B, C, D))
Step 5 — Dijkstra row
Compute the highlighted combinatorics value.
visit, distances, previous(E, (0, 2, 3, 4, 7), (-, A, B, C, D))
combinatorics-search
Every row is intentionally ordered and pinned to the lesson specification.