Automata Slides
Automata Slides
FA
“At Every State, There Should must be a Transition for Every Character / Literals”
EXAMPLE:
a b
- +
This is a Not DFA because not Complete Transition for every Literals
DETERMINISTIC FINITE AUTOMATA
a
EXAMPLE:
a, b
a b
- +
“At Every state , there should more than one transition for every character is
Call NFA”
EXAMPLE: a
a b
- +
“At Every state , there should more than one transition for every character is
Call NFA”
EXAMPLE: Ʌ
a b
- +
Examples:
Convert NFA to DFA
b
a
-
a b
b
NFA → DFA
Steps#1:
b
a
q1 q2
-
q0
a b
q3 q4 q5
b
NFA → DFA
Steps#2:
Make a Table
q1q3 a -
-
q1q3 b q2q4 q0 a a
q2q4 a -
q2q4 b q5 q5
Trap
q5 a -
q5 b - b a, b
Examples:
Convert NFA to DFA
1 0,1 0,1
0,1
FA → RE:
(0+1)*1(0+1)(0+1)
NFA → DFA
Steps#1:
1 0,1 0,1
- q0 q1 q2 q3
0,1
NFA → DFA
Steps#2:
Make a Table