Professional Documents
Culture Documents
School of Informatics
Individual Assignment of Automata and complexity theory
WSU
Individual Assignment of Automata and complexity theory
3.Take one example of state diagram of NFA( similar diagram wz others is prohibited)
Answers
Finite Automata (FA) is the most straightforward machine to recognize patterns and can be mainly
characterized into two types:
DFA does not accept the null move, i.e., the DFA cannot change state without any input
character. A Deterministic Finite Automaton (DFA) is defined as a 5-
tuple (Q, Σ, δ, s, F) consisting of
WSU
Individual Assignment of Automata and complexity theory
NFA is defined in the same way as DFA but with the following two exceptions, it
contains multiple next states, and it contains ε transition.
NFA also has five states same as DFA, but with different transition function, as shown
follows:δ: Q x ∑ →2Q
WSU
Individual Assignment of Automata and complexity theory
Solution:-
Transition table for the given Non-Deterministic Finite Automata (NFA) is-
Step 1:- Let Q’ be a new set of states of the Deterministic Finite Automata (DFA).
Let T’ be a new transition table of the DF
Step 2:- Add transitions of start state q0 to the transition table T’.
q0 q0 {q1, q2}
WSU
Individual Assignment of Automata and complexity theory
q0 q0 {q1, q2}
q0 qo {q1, q2}
Step 5:- Since no new states are left to be added in the transition table T’, so we
stop.
States containing q2 as its component are treated as final states of the DFA.
WSU
Individual Assignment of Automata and complexity theory
q0 qo *{q1, q2}
WSU