Prof. Busch - LSU1 NFAs accept the Regular Languages
Prof. Busch - LSU2 Equivalence of Machines Definition: Machine is equivalent to machine if
Prof. Busch - LSU3 NFA DFA Example of equivalent machines
Prof. Busch - LSU4 Theorem: Languages accepted by NFAs Regular Languages NFAs and DFAs have the same computation power, accept the same set of languages Languages accepted by DFAs
Prof. Busch - LSU5 Languages accepted by NFAs Regular Languages accepted by NFAs Regular Languages we only need to show Proof: AND
Prof. Busch - LSU6 Languages accepted by NFAs Regular Languages Proof-Step 1 Every DFA is trivially an NFA Any language accepted by a DFA is also accepted by an NFA
Prof. Busch - LSU7 Languages accepted by NFAs Regular Languages Proof-Step 2 Any NFA can be converted to an equivalent DFA Any language accepted by an NFA is also accepted by a DFA
Prof. Busch - LSU8 Conversion NFA to DFA NFA DFA
Prof. Busch - LSU9 NFA DFA
Prof. Busch - LSU10 NFA DFA empty set trap state
Prof. Busch - LSU11 NFA DFA union
Prof. Busch - LSU12 NFA DFA union
Prof. Busch - LSU13 NFA DFA trap state
Prof. Busch - LSU14 NFA DFA END OF CONSTRUCTION
Prof. Busch - LSU15 General Conversion Procedure Input: an NFA Output: an equivalent DFA with
Prof. Busch - LSU16 The NFA has states The DFA has states from the power set
Prof. Busch - LSU17 1. Initial state of NFA: Initial state of DFA: Conversion Procedure Steps step
Prof. Busch - LSU18 NFA DFA Example
Prof. Busch - LSU19 2. For every DFA’s state compute in the NFA add transition to DFA Union step
Prof. Busch - LSU20 NFA DFA Example
Prof. Busch - LSU21 3. Repeat Step 2 for every state in DFA and symbols in alphabet until no more states can be added in the DFA step
Prof. Busch - LSU22 NFA DFA Example
Prof. Busch - LSU23 4. For any DFA state if some is accepting state in NFA Then, is accepting state in DFA step
Prof. Busch - LSU24 NFA DFA Example
Prof. Busch - LSU25 If we convert NFA to DFA then the two automata are equivalent: Lemma: Proof: AND We only need to show:
Prof. Busch - LSU26 First we show: We only need to prove:
Prof. Busch - LSU27 symbols Consider NFA
Prof. Busch - LSU28 denotes a possible sub-path like symbol
Prof. Busch - LSU29 We will show that if then NFA DFA state label state label
Prof. Busch - LSU30 More generally, we will show that if in : (arbitrary string) then NFA DFA
Prof. Busch - LSU31 Proof by induction on Induction Basis: is true by construction of NFA DFA
Prof. Busch - LSU32 Induction hypothesis: NFA DFA Suppose that the following hold
Prof. Busch - LSU33 Induction Step: NFA DFA Then this is true by construction of
Prof. Busch - LSU34 Therefore if NFA DFA then
Prof. Busch - LSU35 We have shown: With a similar proof we can show: END OF LEMMA PROOF Therefore: