TOA Lecture06
TOA Lecture06
TOA Lecture06
Transition Graph
a,b a,b
a, b +
+ +
Note
In the above TG if the states are not labeled then
it may not be considered to be a single TG
Dr. Nazir Ahmad Zafar 8
1. Transition Graph
Example: Σ = {a, b}
Consider the language L of strings,
“having triple a or triple b”
RE = (a+b)* (aaa + bbb) (a+b)*
Example:
Σ = {a, b}
Consider the TG
Example Σ = {a,b}
Consider the language L of strings containing
“double a or double b”
R.E = (a+b)* (aa + bb) (a+b)*
Example Σ = {a,b}
Consider the language L of strings of “beginning
and ending in different letters”
R.E = a(a + b)*b + b(a + b)*a
OR
Example Σ = {a,b}
Consider the language L of strings of
“having triple a or triple b ”
R.E = (a+b)* (aaa + bbb) (a+b)*