b
a,b q1 ε q2
q0
a a
Penjelasan :
ε q2
q0 q1
a
ε b ε
q3 q4
NFA ε_ move/Mira 1
Penjelasan : ε_closure dari NFA dengan ε – move diatas untuk setiap
state adalah :
ε_closure(q1) = {q1, q3 }
ε_closure(q3) = {q3}
ε_closure(q4) = {q4}
♦ Langkah – langkah :
dengan rumus :
move tersebut.
NFA ε_ move/Mira 2
♦ Contoh : NFA ε – move
q0 ε
q1
a
b
ε
q2
b
δ a b
q0 {q0} Ø
q1 Ø {q2}
q2 Ø {q2}
ε_cl(q0)={q0,q1}
ε_cl(q1)={ q1}
ε_cl(q2)={q0,q1,q2}
3. Tentukan δ’ :
δ’(q0,a) = ε_closure(δ(ε_closure(q0),a))
= ε_closure(δ({q0,q1}, a))
= ε_closure(q0)
= {q0,q1}
δ’(q0,b) = ε_closure(δ(ε_closure(q0),b))
= ε_closure(δ({q0,q1}, b))
= ε_closure(q2)
= {q0,q1,q2}
NFA ε_ move/Mira 3
δ’(q1,a) = ε_closure(δ(ε_closure(q1),a))
= ε_closure(δ({q1}, a))
= ε_closure(Ø)
=Ø
δ’(q1,b) = ε_closure(δ(ε_closure(q1),b))
= ε_closure(δ({q1}, b))
= ε_closure(q2)
= {q0,q1,q2}
δ’(q2,a) = ε_closure(δ(ε_closure(q2),a))
= ε_closure(δ({q0,q1,q2}, a))
= ε_closure(q0)
= {q0,q1}
δ’(q2,b) = ε_closure(δ(ε_closure(q2),b))
= ε_closure(δ({q0,q1,q2}, b))
= ε_closure(q2)
= {q0,q1,q2}
δ a b
q0 {q0, q1} {q0,q1,q2}
q1 Ø {q0,q1,q2}
q2 {q0,q1} {q0,q1,q2}
NFA ε_ move/Mira 4
6. Diagram transisi dari NFA tanpa ε – move adalah sebagai berikut :
q0 a,b
q1 b
a,b
b b
a, b
a,b
q2
b
a. Penggabungan (Union)
♦ Contoh :
Bila terdapat sebuah bahasa L(M1) yang bisa diterima oleh M1, dan
bahasa L(M2) ang bisa diterima oleh M2, kemudian kedua mesin
NFA ε_ move/Mira 5
3. Contoh :
Mesin M1 :
1 qA1
qA0
0
Mesin M2 :
1
1 qB1
qB0
0
Mesin M3 :
ε
1 ε
qA0 qA1
0
qs
qr
1
ε 1
qB0 qB1 ε
adalah {qr}.
b. Konkatenasi
♦ Contoh :
Bila terdapat sebuah bahasa L(M1) yang bisa diterima oleh M1, dan
bahasa L(M2) ang bisa diterima oleh M2, kemudian kedua mesin
NFA ε_ move/Mira 6
1. State awal M1 menjadi state awal M4.
menggunakan transisi ε.
1
1 ε 1
qs qA1 qB0 qr
0 0
adalah {qr}.
NFA ε_ move/Mira 7