Lesson 14
Lesson 14
1
Task
Z2
a a b
a
b
Z1- a b Z4 + Z5 +
b a
Z3+ b
2
Solution of the Task
Z2
a
a a
Z1- a b Z4 +
b b
Z3+ b
3
Task
FA1 x2 b x3 +
x1 - a,b
a
x4 a,b
b a b
FA2 y1 - y2+
a
4
Task solution
x2 b x3 +
x1 - a,b
a
b a b
x4 a,b
y1 - y2+
a
z1
z4 b z 5+ b
a
a b
z 2+
a a a a
b
b z 6+ a z3 b z 7+ b 8
Example
also r2 = (a+b)((a+b)(a+b))* or
*
((a+b)(a+b)) (a+b)
a,b
and FA2 be
y1- y2+
9
a,b
Example continued …
a,b
x1± x2
a,b
a,b
y1- y2+
a,b
11
Example continued …
a,b
y1- y2+
a,b
12
Task
FA1 x2 b x3 +
x1 - a,b
a
x4 a,b
b a b
FA2 y1 - y2+
a
13
Kleene’s Theorem Part III
Continued …
• Method3: (Closure of an FA)
Building an FA corresponding to r*, using
the FA corresponding to r.
It is to be noted that if the given FA
already accepts the language expressed
by the closure of certain RE, then the
given FA is the required FA. However the
method, in other cases, can be developed
considering the following examples 14
Closure of FA Continued …
X1 – X2 +
a
then the FA corresponding to r* may
be determined as under
16
Example continued …
a b b a b b
X1 – X2 + X1 – X2 +
a a
18
Example continued …
z 1±
b a
b a
z 3+ z2 a
b 19
Example
20
Example continued …
b a,b
a
y2 a
y1- y3+
b
b a,b
a
y2 a
y1- y3+
b
New States after reading
Old States
a b
a b
z2y1 y2z3 y1 z2
a
b
a a a
z 1± z3 z 4+ z 5+
a b
b
b
z2
b
23
Example
y4 a,b
24
Example continued …
a,b
y2 b y3 +
y1 - a,b
a
y4 a,b
z2 a z3
z1± a,b
b
z 4+ a,b
z 5+ b
z 6+ a,b
27
Summing Up