Converting NFA To DFA - Solved Examples - Gate Vidyalay
Converting NFA To DFA - Solved Examples - Gate Vidyalay
Step-01:
Step-02:
Step-03:
Step-04:
Problem-01:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 2/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Solution-
State /
a b
Alphabet
→q0 q0 q0, q1
q1 – *q2
*q2 – –
Step-01:
Step-02:
State /
a b
Alphabet
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 3/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Step-03:
State /
a b
Alphabet
Step-04:
State /
a b
Alphabet
Step-05:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 4/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
State /
a b
Alphabet
Problem-02:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 5/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Solution-
State /
0 1
Alphabet
*q2 q0, q1 q1
Step-01:
Step-02:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 6/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
State / 0 1
Alphabet
Step-03:
State /
0 1
Alphabet
Step-04:
State /
0 1
Alphabet
Step-05:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 7/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
State /
0 1
Alphabet
Problem-03:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 8/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Solution-
State /
a b
Alphabet
→q0 *q1, q2 –
*q1 – –
q2 *q1, q2 q2
Step-01:
Step-02:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 9/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
State / a b
Alphabet
Ø (Dead
→q0 {q1, q2}
State)
Step-03:
State /
a b
Alphabet
Step-04:
State /
a b
Alphabet
q2 {q1, q2} q2
Step-05:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 10/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
State /
a b
Alphabet
q2 {q1, q2} q2
Ø Ø Ø
Step-06:
State /
a b
Alphabet
q2 *{q1, q2} q2
Ø Ø Ø
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 11/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Important Points-
Note-01:
Note-02:
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 12/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
1 <= n <= 2m
Here,
Note-03:
Summary
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 13/14
8/29/22, 7:11 PM Converting NFA to DFA | Solved Examples | Gate Vidyalay
Publisher Logo
https://www.gatevidyalay.com/converting-nfa-to-dfa-solved-examples/ 14/14