Non deterministic automata (NFA) to Deterministic finite automata (DFA) Conversion
NFA to DFA Conversion
Step 1: Construct the NFA Transition Table
Step 2: Take the initial state of the NFA as the first DFA state.
Step 3:For the first DFA state, calculate the transitions for every input symbol.
For example:
Input
0 → Find the transition Input
1 → Find the transitionStep 4: Whenever a new DFA state is obtained, calculate its transitions again for all input symbols.
Step 5: Continue the Process
If another new state is obtained, calculate 0 and 1 for that state also.
Continue this process until no new DFA state is obtained.
Step 6: Identify the Final States
Suppose the original NFA has:
q0 → non-final
q1 → final
Now check each DFA state:
{q0} → does not contain q1 → Not final
{q0,q1} → contains q1 → Final
{q1} → contains q1 → Final
Step 7: Construct the DFA Transition Table and Draw the Equivalent DFA
..(Read more)
Comments
Post a Comment