Modelling as a Graph
Know
Recognising a graph problem is often the whole difficulty. States and transitions, dependencies, and relationships all become vertices and edges.
Apply
Define what a vertex is and what an edge means before choosing an algorithm.
Watch out
Missing that a puzzle is a shortest-path problem over states, and writing a bespoke search instead.
Study move
Model a word-transformation puzzle as a graph and name the vertices and edges.
