State transition diagrams
State transition diagram
We can represent the hard-wired control device of a finite automaton by a directed multigraph:
Link to original
- with the vertices representing the states
- arrow-edges being labelled by symbols of the input alphabet
- the initial state is marked by
- the favourable states are double-circled
- each arrow represents a possible transition, hard-wired in the control device: an arrow from state to state labelled by symbol indicates that, when the head is reading and the control device is in state then it should move next to state
Automaton
digraph {
label=A₁
rankdir=LR
init[shape=point]
node[shape=doublecircle]; q;
node[shape=circle];
init->s
s->s [label=a]
s->q [label=b]
q->q [label=b]
q->r [label=a]
r->r [label=a]
r->r [label=b]
}Input 1: Computation: word is rejected
Input 2: Computation: word is accepted
Input 3: Computation: word is rejected
Input 4: Computation: word is accepted
Input 5: Computation: word is rejected