Lesson 5
Lesson 5
Lesson 5
a, b
Example
Σ = {a,b}
States: x, y, where x is both initial and final
state.
Transitions:
1.At state x reading a or b go to state y.
2.At state y reading a or b go to state x.
Example Continued …
y x x
Example Continued …
a, b
x y
a, b
Example Continued …
((a+ b) (a + b))*
TASK
a,b
– +
a,b
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 FA
a,b
––
b +
a,b
a
1
Example:
Consider the language L of strings, defined
over Σ={a, b}, ending in a. The language L
may be expressed by RE
(a+b)*a
This language may be accepted by the following
FA
Example Continued …
b a a
– +
a
a +
––
a b
b
b
Note
a,b
––
a +
b a,b
a
+
a,b
b
b a a
+
a b
–
a b
b
b
+
a
Task