SlideShare a Scribd company logo
1 of 18
NFA vs DFA
q
For every state q in S and every character  in , one and
only one transition of the following form occurs:
q’

For every state q in S and every character  in   {e}, one
(or both) of the following will happen:
q q’

•No transition: occurs
•One or more transitions: q q’

occurs
p

…
DFA:
NFA:
NFA vs DFA (2)
Given a nondeterministic automaton, it is always possible to
find a an equivalent deterministic automaton “doing the same”?
That is, given an NFA M = (Q,, ,s,F) does there exists an
equivalent DFA M’ = (Q’,, ’,s’,F’)?
: Q × (  {e}) × (Q) ’: Q’×   Q’
YES!
All deterministic automata are non deterministic
We are going to construct the DFA by using the given NFA
Equivalence of NFA and DFA
Definition. Two automata A and A’ are equivalent if they
recognize the same language.
Theorem. Given any NFAA, then there exists a DFAA’ such
that A’ is equivalent to A
Idea of the Transformation: NFA  DFA
We would like:
For every transition in NFA:
q
qi
 qj
There is a transition in the equivalent DFA:
Qi
 Qj
where Qi (or Qj) is related to qi (or qj)
Idea (2): Remove Non Determinism
q
q

q1

q2
.
.
.

qn
q
q 
q1
q2
.
.
.
qn
NFA DFA
This is the set: (q, )
The states in the DFA will
be elements in (Q)
Step 1: Assign Arcs

q1
q2
.
.
.
qn
p1
p2
.
.
.
pm
DFA:
If in the original NFA:
q
qi
 pj
Step 1 : Variation
Let S be an state formed by {q1, q2, …, qn}, we denote the set
(S, ) as the set of all states that are reachable from states in
S by reading 

q1
q2
.
.
.
qn
(S, )
DFA:
Step 2 : Eliminating e-Transitions
 (S, )
e
P’
e
P’’
e …

(S, )

P’

P’’
…
DFA:
Step 3: Handling Undetermined Transitions
Suppose that  = { a, b} and we have only a transition for a:
q
qi
a qj
What should we do for b?
DFA:
NFA:
q
qi
a qj
b
a
b 
Step 4: Determining Favorable States
We will make states favorable in the DFA only if they
contain at least one state which is favorable in the NFA
q1
q2
.
.
.
qn
DFA:
NFA:
qi
Examples
s q r
q
b
r
> b
a
b
s q r
q
e
r
> b
a
b
Proof
Given an NFA M = (Q,,,s,F) suppose that we use the
procedure discussed to obtain a DFA
M’ = (Q’,, ,s’,F’). What needs to be shown to prove that
M and M’ are equivalent?
•For each w accepted by M’, w is also accepted by the NFA
•For each w accepted by M, w is also accepted by the DFA
We will show the first one for a “generic” word:
w = 1 2 … n
Where each i is in 
Proof (2)
•Proof by induction on the length n of the word
w = 1 2 … n
 n = 1
 n = k  n = k+1
•Suppose that w is accepted by the DFA, what does this means?
s’
1
s1
2
…
n
sn
Where s’ and each si and s’ are states in the DFA
(i.e., elements in (Q); where Q are the states in the NFA)
D:
Construction

q1
q2
.
.
.
qm
(S, )
D:
Where S = {q1, q2, …, qm},
states in the NFA
Assume no e-transitions for the moment
s
1
s1
2
…
n
sn
DFA:
s1 = (s, 1)
sn-1 = (sn-2, n-1)
…
sn = (sn-1, n)
Select state qn in sn
such that
Select state qn-1 in sn-1
such that:
qn-1 qn
n
Select state q1 in s1 such
that:
s q1
1
qn is favorable in DFA
We want:
s
1
q1
2
…
n
qn
NFA:
We have:
Dealing with e-transitions
 (S, )
e
P’
e
P’’
e …

(S, )

P’

P’’
…
D:
… States
in
NFA
s’
1
s1
2
…
n
sn
DFA:
We want:
s
’1
q1
’2
…
’m
qm
NFA:
We have:
m  n
each ’i is either an j or e
n
qn-1
.
.
.
P’
.
.
.
qm
P
.
.
.
n-1
sn
qn-2
e
e
…
e
…
e
Main Result
The other direction is very simple (do it!):
For each w accepted by N, w is also accepted by D
Theorem. Given any NFA N, then there exists a DFA D
such that N is equivalent to D

More Related Content

Similar to NFAvsDFA.ppt

Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Srimatre K
 
FiniteAutomata (1).ppt
FiniteAutomata (1).pptFiniteAutomata (1).ppt
FiniteAutomata (1).pptssuser47f7f2
 
FiniteAutomata.ppt
FiniteAutomata.pptFiniteAutomata.ppt
FiniteAutomata.pptRohitPaul71
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfSergioUlisesRojasAla
 
Materi 3 Finite State Automata
Materi 3   Finite State AutomataMateri 3   Finite State Automata
Materi 3 Finite State Automataahmad haidaroh
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examplesankitamakin
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examplesankitamakin
 
0227 regularlanguages
 0227 regularlanguages 0227 regularlanguages
0227 regularlanguagesissbp
 
Nondeterministic Finite Automat
Nondeterministic Finite AutomatNondeterministic Finite Automat
Nondeterministic Finite AutomatAdel Al-Ofairi
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata parmeet834
 
Finite automata(For college Seminars)
Finite automata(For college Seminars)Finite automata(For college Seminars)
Finite automata(For college Seminars)Naman Joshi
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automatonSampath Kumar S
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdfshruti533256
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Akila Krishnamoorthy
 

Similar to NFAvsDFA.ppt (20)

Finite automata
Finite automataFinite automata
Finite automata
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 
Dfa
DfaDfa
Dfa
 
Automata
AutomataAutomata
Automata
 
FiniteAutomata (1).ppt
FiniteAutomata (1).pptFiniteAutomata (1).ppt
FiniteAutomata (1).ppt
 
FiniteAutomata.ppt
FiniteAutomata.pptFiniteAutomata.ppt
FiniteAutomata.ppt
 
Nondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdfNondeterministic Finite Automata AFN.pdf
Nondeterministic Finite Automata AFN.pdf
 
Fsa
FsaFsa
Fsa
 
Materi 3 Finite State Automata
Materi 3   Finite State AutomataMateri 3   Finite State Automata
Materi 3 Finite State Automata
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 
Finite automata examples
Finite automata examplesFinite automata examples
Finite automata examples
 
0227 regularlanguages
 0227 regularlanguages 0227 regularlanguages
0227 regularlanguages
 
Nondeterministic Finite Automat
Nondeterministic Finite AutomatNondeterministic Finite Automat
Nondeterministic Finite Automat
 
Nondeterministic Finite Automata
Nondeterministic Finite Automata Nondeterministic Finite Automata
Nondeterministic Finite Automata
 
Finite automata(For college Seminars)
Finite automata(For college Seminars)Finite automata(For college Seminars)
Finite automata(For college Seminars)
 
Nfa to-dfa
Nfa to-dfaNfa to-dfa
Nfa to-dfa
 
Nfa to-dfa
Nfa to-dfaNfa to-dfa
Nfa to-dfa
 
1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton1.3.1 deterministic finite automaton
1.3.1 deterministic finite automaton
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf
 
Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)Automata theory - Push Down Automata (PDA)
Automata theory - Push Down Automata (PDA)
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 

NFAvsDFA.ppt

  • 1. NFA vs DFA q For every state q in S and every character  in , one and only one transition of the following form occurs: q’  For every state q in S and every character  in   {e}, one (or both) of the following will happen: q q’  •No transition: occurs •One or more transitions: q q’  occurs p  … DFA: NFA:
  • 2. NFA vs DFA (2) Given a nondeterministic automaton, it is always possible to find a an equivalent deterministic automaton “doing the same”? That is, given an NFA M = (Q,, ,s,F) does there exists an equivalent DFA M’ = (Q’,, ’,s’,F’)? : Q × (  {e}) × (Q) ’: Q’×   Q’ YES! All deterministic automata are non deterministic We are going to construct the DFA by using the given NFA
  • 3. Equivalence of NFA and DFA Definition. Two automata A and A’ are equivalent if they recognize the same language. Theorem. Given any NFAA, then there exists a DFAA’ such that A’ is equivalent to A
  • 4. Idea of the Transformation: NFA  DFA We would like: For every transition in NFA: q qi  qj There is a transition in the equivalent DFA: Qi  Qj where Qi (or Qj) is related to qi (or qj)
  • 5. Idea (2): Remove Non Determinism q q  q1  q2 . . .  qn q q  q1 q2 . . . qn NFA DFA This is the set: (q, ) The states in the DFA will be elements in (Q)
  • 6. Step 1: Assign Arcs  q1 q2 . . . qn p1 p2 . . . pm DFA: If in the original NFA: q qi  pj
  • 7. Step 1 : Variation Let S be an state formed by {q1, q2, …, qn}, we denote the set (S, ) as the set of all states that are reachable from states in S by reading   q1 q2 . . . qn (S, ) DFA:
  • 8. Step 2 : Eliminating e-Transitions  (S, ) e P’ e P’’ e …  (S, )  P’  P’’ … DFA:
  • 9. Step 3: Handling Undetermined Transitions Suppose that  = { a, b} and we have only a transition for a: q qi a qj What should we do for b? DFA: NFA: q qi a qj b a b 
  • 10. Step 4: Determining Favorable States We will make states favorable in the DFA only if they contain at least one state which is favorable in the NFA q1 q2 . . . qn DFA: NFA: qi
  • 11. Examples s q r q b r > b a b s q r q e r > b a b
  • 12. Proof Given an NFA M = (Q,,,s,F) suppose that we use the procedure discussed to obtain a DFA M’ = (Q’,, ,s’,F’). What needs to be shown to prove that M and M’ are equivalent? •For each w accepted by M’, w is also accepted by the NFA •For each w accepted by M, w is also accepted by the DFA We will show the first one for a “generic” word: w = 1 2 … n Where each i is in 
  • 13. Proof (2) •Proof by induction on the length n of the word w = 1 2 … n  n = 1  n = k  n = k+1 •Suppose that w is accepted by the DFA, what does this means? s’ 1 s1 2 … n sn Where s’ and each si and s’ are states in the DFA (i.e., elements in (Q); where Q are the states in the NFA) D:
  • 14. Construction  q1 q2 . . . qm (S, ) D: Where S = {q1, q2, …, qm}, states in the NFA Assume no e-transitions for the moment
  • 15. s 1 s1 2 … n sn DFA: s1 = (s, 1) sn-1 = (sn-2, n-1) … sn = (sn-1, n) Select state qn in sn such that Select state qn-1 in sn-1 such that: qn-1 qn n Select state q1 in s1 such that: s q1 1 qn is favorable in DFA We want: s 1 q1 2 … n qn NFA: We have:
  • 16. Dealing with e-transitions  (S, ) e P’ e P’’ e …  (S, )  P’  P’’ … D: … States in NFA
  • 17. s’ 1 s1 2 … n sn DFA: We want: s ’1 q1 ’2 … ’m qm NFA: We have: m  n each ’i is either an j or e n qn-1 . . . P’ . . . qm P . . . n-1 sn qn-2 e e … e … e
  • 18. Main Result The other direction is very simple (do it!): For each w accepted by N, w is also accepted by D Theorem. Given any NFA N, then there exists a DFA D such that N is equivalent to D