Equivalence of NFA and DFA
Main Theorem
Theorem: The class of languages recognised by NFAs equals the class recognised by DFAs.
Proof Outline
DFA NFA
Every DFA is trivially an NFA where each state-symbol pair has exactly one transition.
NFA DFA
The subset construction converts any NFA to an equivalent DFA.
Since subset construction preserves language, any NFA-recognisable language is DFA-recognisable.
Extending to NFA-
NFA- NFA
Given NFA- :
Construct NFA where:
Intuitively: absorb -transitions into labelled transitions.
Proof of Correctness
The extended transition relation is preserved:
- In : via labelled and -transitions
- In : via labelled transitions only
Complete Equivalence
All three models recognise the same languages:
where each is strict in expressive convenience but equal in language-theoretic power.
The Class: Regular Languages
Definition
A language is regular if there exists a finite automaton (DFA, NFA, or NFA-) that recognises it.
Equivalent Characterisations
is regular iff any of:
- for some DFA
- for some NFA
- for some NFA-
- for some regular expression (Kleene’s theorem)
- is generated by a regular grammar
- is the language of a syntactic monoid
Practical Implications
For Design
- NFAs are often easier to design (less constrained)
- NFA- enables modular composition
- DFAs have unique minimal form (useful for optimisation)
For Implementation
- DFAs run in time
- NFAs can be simulated in time
- Subset construction may cause exponential blowup
For Theory
- Closure properties are easier to prove with NFAs
- Decidability results apply to all three
Closure Properties
Regular languages are closed under:
- Union: disjoint union or NFA- construction
- Concatenation: sequential composition
- Kleene star: loop back construction
- Complement: swap accepting/non-accepting in DFA
- Intersection: product construction on DFAs
Summary
- DFA, NFA, and NFA- are equally expressive
- All recognise exactly the regular languages
- Subset construction: NFA DFA
- Epsilon elimination: NFA- NFA
- Each model has practical advantages