Lec06 - Transitional Graphs and GTGs
Lec06 - Transitional Graphs and GTGs
Lec06 - Transitional Graphs and GTGs
1
ba ab
– +
baa 2 b
Example:
1 abb 2 L 3 a 4
– +
aa
b
2 1 4
abbaab 1 3
abb L aa b
abbab crashes.
Chapter 6: Transition Graphs
3 aba L 3 aba
–
– +
L = {L}
L=
– L
+
abba –
baa
–
L = {Λ} L
+ +
L
L L
– + – +
Chapter 6: Transition Graphs
a,b a FA b
b
b –
– + +
a
transition graph:
Some words can fail, crash, and succeed: abab.
Chapter 6: Transition Graphs (Examples)
a,b
b
+
a
– a,b
b
a
+
aa b
b b b +
–
aa
Chapter 6: Transition Graphs
Language EVEN-EVEN
Theory of Automata 23
NonDeterminism
The ultimate path through the machine is NOT
determined by the input alone. Human choice
becomes a factor in selecting the path. The machine
does not make all its own determination.
Theory of Automata 24
Generalized Transition Graph (GTG)
Example 8: Σ = {a,b}
Choosing Transitions
8 …
a
… 7
b
9 …
b 8 …
1
0
… a
… 7
b
9 …
L
Nondeterministic
b 1
0
…
Review
Understand differences between TGs and FAs
Every FA is a TG but every TG is not an FA.
Input may be traced on a TG on different paths
depending on our choice.
Paths in TGs are not determined by the input
alone unlike in FAs.
Non-determinism: human choice vs machine
choice