Professional Documents
Culture Documents
1. Design an NFA with no more than five states for the set
n n
{abab : n ≥ 0} U{aba : n ≥ 0} .
n n
3. Find an NFA with four states for L = {a : n ≥ 0} U{b a : n ≥ 1} .
4. Which of the stings 00,01001,10010,000,0000,are accepted by the
0 1
q q2
q0
1
0,
0,1
following NFA?
*
5. Find an NFA that accepts {a} and is such that if in its transition
graph a single edge is removed (without any other changes), the
resulting automaton accepts {a}.
6. An NFA in which (a) there are no λ -transitions, and (b) for all q ∈ Q
and all a∈ ∑ , δ (q, a) contains at most one element, is sometimes
called an incomplete DFA. This is reasonable since the conditions make
it suck that there is never any choice of moves.
For ∑ ={a,b}, convert the incomplete DFA below into a standard
b
a a
DFA..
7. Convert to a DFA the following NFA:
0 1
p {p,q} {q,s}
q {r} {r}
r {s} {s}
*s {s}
0 1
p {q}
*q {q,r}
r {p}
*s {p}
0 1
p {p,q} {p}
*q {r,s} {t}
r {p,r} {t}
*s
*t
q0 q1 q2
λ,0 0,1