Dfa Ndfa PDF
Dfa Ndfa PDF
Dfa Ndfa PDF
2
Topic
DFA & NDFA
• Definition of NDFA
EXPLANATION
CST- 3 TOC BY: SRABANTI CHAKRABORTY HOD, CST ; EIEM
The equivalence
of
DFA & NDFA
State /
a b
Alphabet
→q0 q0 q0, q1
q1 – *q2
*q2 – –
Step-02:
Add transitions of start state q0 to the transition table T’.
State /
a b
Alphabet
State /
a b
Alphabet
→q0 q0 {q0, q1}
{q0, q1,
{q0, q1} q0
q2}
CST- 3 TOC BY: SRABANTI CHAKRABORTY HOD, CST ; EIEM
Step- 04
New state present in state Q’ is {q0, q1, q2}.
Add transitions for set of states {q0, q1, q2} to the transition table T’.
State /
a b
Alphabet
• Do have to stop.
State /
a b
Alphabet
→q0 q0 {q0, q1}
*{q0, q1,
{q0, q1} q0
q2}
*{q0, q1,
*{q0, q1, q2} q0
q2}
CST- 3 TOC BY: SRABANTI CHAKRABORTY HOD, CST ; EIEM
Final Deterministic Finite Automata
(DFA)