Á An NFA Is A TG With A Unique Start
Á An NFA Is A TG With A Unique Start
|
á An NFA is a TG with a unique start
state and a property of having single letter as
label of transitions. An NFA is a collection of
three things
1) Finite many states with one initial and some
final states
2) Finite set of input letters, say, ë={a, b, c}
3) Finite set of transitions, showing where to
move if a letter is input at certain state ( is
not a valid transition), there may be more than
one transition for certain letters and there may
not be any transition for certain letters.
u
2+
a
1è a
3
a
b
4 5+
a, b a,b
a a
1è 2 3+
|
r t is to be noted that according to the Kleene¶s
theorem, if a language can be accepted by an FA,
then there exists a TG accepting that language.
Since, an NFA is a TG as well, therefore there
exists an NFA accepting the language accepted
by the given FA. n this case these FA and NFA
are said to be equivalent to each others.
Following are the examples of FAs to be
converted to the equivalent NFAs
Ñ
|
a
2 4
a a
b a,b
a b
b a b
3 b 5
|
è 1 2 3
a a
a a a
a a
4 5
a a a a
a a a
6 8 7 9 +
a a a
Ñ
|
|
{
|
{
|
|
á f in an NFA, is allowed to be a
label of an edge then the NFA is called NFA
with (NFA- ).
An NFA- is a collection of three things
2 Finite many states with one initial and some
final states. 2 Finite set of input letters, say,
ë={a, b, c}. 2 Finite set of transitions, showing
where to move if a letter is input at certain state.
There may be more than one transitions for certain
letter and there may not be any transition for a
certain letter. The transition of is also allowed
at any state.
Ñ
- b +
1
,a a
è 1 +
1- 4
b a
3
Using the method discussed earlier, the above
NFA may be equivalent to the following FA
Ñ
[
2
a b
1- 4+
b a
3 1- a
2
b
b 4+ a
a a, b
3 b
ë a, b
Ñ
b b b
1- 2 3 4+
b b b
1- 2 3 4+
b b b
1- 2 (3,4)+ 4+
a a a a,b
ë
a, b