Professional Documents
Culture Documents
Lecture 7
Lecture 7
Definition
A generalized transition graph (GTG) is a collection of
three things:
1. A finite set of states, of which at least one is a start
state and some (maybe none) are final states.
Example
• Consider this GTG:
3
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
4
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
Example
• Consider the language L of strings, defined over Σ =
{a,b}, containing double a or double b
5
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
6
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
7
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
TG vs GTG
8
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
FA vs GTG
NonDeterminism
(NFA)
NonDeterminism
• We have already seen that in a TG, a particular string of
input letters may trace through the machine on different
paths, depending on our choice of grouping.
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.
12
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
NonDeterminism
13
University Institute of Information Technology, PMAS-AAUR
Lecture 07: Theory of Automata:2011
Example
DFA vs NFA