Theory of Automata & Formal Languages (Theory of Computation)
Theory of Automata & Formal Languages (Theory of Computation)
Theory of Automata & Formal Languages (Theory of Computation)
1/5/2013
0/1 = Q1 x Q2 = {[p0, q0], [p0, q1], [p0, q2], [p1, q0], [p1, q1], [p1, q2]}
= {0, 1} = {[p1, q2]}
Some examples:
([p0, q2], 0) = [1(p0, 0), 2(q2, 0)] = [p1, q2] ([p1, q2], 1) = [1(p1, 1), 2(q2, 1)] = [p1, q2]
Final Result:
1 p0, q0 0 0 p1, q0 1 1 p1, q1 1 p0, q1 1 p0, q2 0 0 p1, q2 1 0
1/5/2013
A direct construction of a DFA M such that L( M ) Let: M1 = (Q1, , 1,p0,F1), where Q1 = {p0, p1,} M2 = (Q2, , 2,q0,F2), where Q2 = {q0, q1,} where L(M1) = L1 and L(M2) = L2.
L1
L2
Construct M where: Q = Q1 x Q2 each = {[p0, q0], [p0, q1], [p0, q2],} and M2 F = as with M1 and M2 = F1 x F2 Note that M has a state for
pair of states in M1
p0
p3 a
q1
1/5/2013
p0
p3 a
p1
qo p0 a b q1 p1 a
p2
q2 p3
1/5/2013
0/1 = Q1 x Q2 = {[p0, q0], [p0, q1], [p0, q2], [p1, q0], [p1, q1], [p1, q2]}
= {0, 1} = {[p1, q2], [p1, q0], [p1, q1], [p0, q2] }
Some examples:
([p0, q2], 0) = [1(p0, 0), 2(q2, 0)] = [p1, q2] ([p1, q2], 1) = [1(p1, 1), 2(q2, 1)] = [p1, q2]
Final Result:
1 p0, q0 0 0 p1, q0 1 1 p1, q1 1 p0, q1 1 p0, q2 0 0 p1, q2 1 0
10
1/5/2013
p0
p3 a
p1
p2
p0
p3 a
q1
q2 p3
1/5/2013
Closure Under Union Proof 2 DeMorgans Law: L1 U L2 = L1 L2 L1 and L2 are regular So L1 and L2 are regular (Closure under complementation) So L1 L2 is regular (Closure under intersection) So L1 L2 is regular. (Closure under comp.) So L1 U L2 is regular.