Automata Theory Lecture No: 8
Automata Theory Lecture No: 8
Lecture No: 8
Note
Example
Consider the Language L , defined over = {a, b}
of all strings including . The language L may be
accepted by the following TG
TG 2
Example
Consider the following TGs
TG 1
TG 2
TG 3
It may be observed that in the first TG, no transition has been
shown. Hence this TG does not accept any string, defined over any
alphabet. In TG 2 there are transitions for a and b at initial state
but there is no transition at state1. This TG still does not accept
any string. In TG3 there are transitions at both initial state and
state 1, but it doesnot accept any string.
Thus none of TG 1 , TG 2 and TG 3 accepts any string, i.e. these
TGs accept empty language. It may be noted that TG 1 and TG 2 are
TGs but not FA, while TG 3 is both TG and FA as well.
It may be noted that every FA is a TG as well, but the converse may
Example
Consider the language L of strings, defined over
={a, b}, starting with b. The language L may be
expressed by RE b(a + b) * , may be accepted by
the following TG
Example
Consider the language L of strings, defined over
={a, b}, not ending in b. The language L may be
expressed by RE + (a + b) * a , may be accepted
by the following TG
Example
Consider the Language L of strings, defined over
= {a, b}, containing double a. The language L may
be expressed by the following regular expression
(a+b) * (aa) (a+b) * . This language may be
accepted by the following TG
Example
Consider the language L of strings, defined over
={a, b}, having double a or double b.
The language L can be expressed by RE (a+b) *
(aa + bb) (a+b) *.
The above language may also be expressed by
the following TGs.
Note
In the above TG if the states are not labeled then