Seven regions
The seven regions of Australia are drawn as circles and neighbours are joined by lines. T is an island and has no neighbours. We have 3 colours.
Constraints
Every line is a constraint: its two ends cannot have the same colour. The regions are coloured in the order on the right, starting with WA.
Colouring goes on
The next region gets the first colour that does not clash with its neighbours. So far 4 assignments were made and the search went back 0 times.
No colour left, go back
In these steps no colour fitted a region: every colour was already used by a neighbour. The algorithm went back to the previous region and tried its next colour. 4 assignments, 2 steps back.
No colour left, go back
In these steps no colour fitted a region: every colour was already used by a neighbour. The algorithm went back to the previous region and tried its next colour. 6 assignments, 2 steps back.
No colour left, go back
In these steps no colour fitted a region: every colour was already used by a neighbour. The algorithm went back to the previous region and tried its next colour. 6 assignments, 4 steps back.
No colour left, go back
In these steps no colour fitted a region: every colour was already used by a neighbour. The algorithm went back to the previous region and tried its next colour. 9 assignments, 5 steps back.
Colouring goes on
The next region gets the first colour that does not clash with its neighbours. So far 12 assignments were made and the search went back 5 times.
A solution was found
Every region is coloured and no line has the same colour at both ends. In total 12 assignments and 5 steps back.
Why it matters
Timetables, exam calendars, shift rosters and sudoku are problems of the same shape. The order of the variables changes the amount of work a lot: starting with the most constrained region reduces the steps back. In the try it yourself tab you can set the order to 2 and compare.