Professional Documents
Culture Documents
4. Find the equivalent DFA for the NDFSA as in the figure 1,2 and 3.
1
b
q2 q3
a b
q0 q1 q6 q9
q7 q8
a
q4 q5
b q7
q0 q1 q2 q8
q5 a
q6
p0 p5
a
p3 p4
c b
q0 q1 b q2 q3
r1 r2
r0 r5
c
r3 r4
2
Find φ-CLOSURE({q0, p0, r0}) from figure 3.
6. Find the φ-CLOSURE(T) for the NDFSA as in figure 3, where T is as
follows.
(a) T = {q0, p0}
(b) T = {q2, q1}
7. Write down the algorithm to convert a NDFSA to DFA using φ-CLOSURE(T).
8. Find the regular expression if the FSM of figure 4,5 and 6.
0 0
1 1
q0 q1 q2
Figure 4: FSM
0
1
q0 q1
0
Figure 5: FSM
1
q0 q1
1
0 0 0 0
1
q3 q2
1
Figure 6: FSM
9. Find the regular expression that represents the complement of the Regular
Set described by the following regular expression.
(a) aa(a + b)∗ bb
(b) 1∗ 01∗
(c) (φ + 0)(1 + 10)∗
10. Find the FSM that represents the intersection of two regular sets as in
follows:
3
(a) aa(a + b)∗ and (aa + bb)∗
(b) 1∗ (01)∗ and (10)∗ 1