A state diagram is a labeled directed graph together with state information that can be used to indicate that certain paths on in a system may be traversed only in a certain way. State diagrams are also known as problem space models (Atallah 1998, p. 36-2). For example, in the left figure above (due to R. Abbott), a car must traverse a town while obeying all traffic laws, and making no U-turns. Initially, the car is at position 4, travelling east, and has a choice of moving to position 1, travelling east, or position 5, travelling east. The State diagram corresponding to the maze is illustrated in the above right figure.Another example created by R. Abbott is illustrated above. While the maze is very similar to the first one, the state diagram is not. This maze therefore illustrates that a minor change to the rules of a system can have a large impact on its state diagram.Other puzzles, problems, and programs use state diagrams as an analysis..