Graphs
Breadth First Search
Run BFS with queue rows pinned in order. This is a small deterministic example, not solver engineering.
combinatorics-search
Every row is intentionally ordered and pinned to the lesson specification.