Notes: Nondeterministic Finite Automata: cs302 Theory of Computation
Notes: Nondeterministic Finite Automata: cs302 Theory of Computation
Upcoming Schedule
This week: Finish reading Chapter 1
Wednesday, 30 January (9:30-10:30am): Theory Coffee Hours (Wilsdorf Coffee
Shop)
Wednesday, 30 January (6-7pm): Problem-Solving Session (Olsson 226D)
Thursday, 7 February: Problem Set 2 is due at the beginning of class. Problem
Set 2 is longer and harder than Problem Set 1. Don’t wait to get started on it.
Example 1: Draw a NFA that recognizes the language of all strings in {0, 1}∗ that start and
end with the same symbol.
δ ∗ (q, ) = {q}
For w = ax where a ∈ Σ and x ∈ Σ∗ , δ ∗ (q, ax) = qi ∈δ(q,a) δ ∗ (qi , x)
S
NFA-1
Equivalence of NFAs and DFAs. Show that the set of languages that can be recognized by
some NFA is equal to the set of languages that can be recognized by some DFA.
2. Every NFA has an equivalent DFA. (Proof by construction below, and in book, Theo-
rem 1.39)
Given N = (Q, Σ, δ, q0 , F ), and NFA recognizing some language A. We prove that every
NFA has an equivalent DFA by showing how to construct a DFA N 0 from N that recognizes
the same language A. N 0 = (Q0 , Σ0 , δ 0 , q00 , F 0 ) defined as:
4. q00 = E(q0 )
Suppose language A can be recognized by an NFA with n states. What can we say about
the number of states a DFA that recognizes A must have?
NFA-2