1/5
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the connection between languages accepted by an NDFA and a DFA?
The collection of languages accepted by a DFA and the collection of languages connected by an NDFA are the same. If there is a language accepted by a DFA, there must be an NDFA that accepts it, and vise versa.
Step 1 of NDFA to DFA conversion:
Write out all the individual NDFA transitions for this automaton:
q0 —a—> q1
q1 —a—> q1
q1—a—> q2
q1—b—> q1
Step 2 of NDFA to DFA conversion:
Write out the transitions between sets of states, starting with the set containing the initial state, and considering all possible members of the alphabet for this automaton:
Step 3 of NDFA to DFA conversion:
When no more DFA transitions can be found, draw the resulting automaton for this automaton:
The initial state of the DFA is “the same” as in the NDFA and final states are those which contain a final state of the NDFA.
What is different in conversion of NDFA to DFA when there are λ transitions? Use this automaton:
Extra care is needed in step 1 to take account of λ transitions:
What are the transitions if you were to convert this to a DFA?