Question

Consider the NFA N with states labeled q1, q2 and q3, where q1 is the start state and q3 is the only final (accepting) state.

The transition function for N is δ(q1,a) = {q1}, δ(q1,b) = {q1,q2}, δ(q2,a) = {q3}, δ(q2,b)= ∅, δ(q3,a)= ∅, and δ(q3,b)= ∅.

Let L be the language recognized by N i.e. L(N).

a) Draw the state diagram for N.

b) Describe in plain English what's in the language L.

c) Via the construction NFA to DFA, draw the state diagram for a DFA corresponding to the NFA. Your DFA should recognize the same language L that the NFA recognizes. Remember, each state of your DFA will be labeled by a set of states from the original NFA.

Answer #1

Consider the NFA N with states labeled q1, q2 and q3, where q1
is the start state and q2 and q3 are the final (accepting)
states.
The transition function for N is δ(q1,a) = {q1}, δ(q1,b) =
{q1,q2}, δ(q2,a) = {q3}, δ(q2,b)= ∅, δ(q3,a)= ∅, and
δ(q3,b)= ∅.
Let L be the language recognized by N i.e. L(N).
a) Draw the state diagram for N.
b) Describe in plain English what's in the language L.
c) Via the construction NFA to...

N is a NFA with s states, all of which are reachable from the
start state, and a single accepting state. M is a DFA obtained by
applying from N.
How many states in M will be reachable from the start state? How
many accepting states in M will be reachable from the start
state?

Let M be defined as follows: M = ({q0, q1, q2, q3}, Σ = {a, b},
∆, s = q0, F = {q2}) and ∆ = {(q0, a, q1), (q1, b, q0), (q1, b,
q2), (q2, a, q0)}
1. (2pts) Draw the diagram of M
2. (13pts) Evaluate all relevant steps of the general method of
transformation the NDFA M defined above into an equivalent DFA M0 .
Do it in the following STAGES. STAGE 1 (3pts) For all q...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 16 minutes ago

asked 21 minutes ago

asked 25 minutes ago

asked 28 minutes ago

asked 35 minutes ago

asked 46 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago