













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Application of an NFA, Examples of Kleene theorem, Avoiding loop using NFA, converting FA to NFA, Applying an NFA on an example of maze, Nondeterministic Finite Automaton are the key points and terms you can learn in this lecture. Other related concepts are also explained in this course.
Typology: Slides
1 / 21
This page cannot be seen from the preview
Don't miss anything!
1
2
Build FA corresponding to the concatenation of these two FAs i.e. FA 1 FA 2 where
FA (^1)
a,b
x 1 - x^2 x^3 +
x (^4)
b a,b
a,b
a
a y 1 - y^2 + a
b b
4
Old States
New States after reading a b z 1 - x 1 x 2 z 2 x 2 z (^2)
a,b
x 1 - x^2 x^3 +
x (^4)
b a,b
a,b
a
a y 1 - y^2 + a
b b
5
Old States
New States after reading a b z 2 x 2 x 4 z 3 (x 3 ,y 1 )z (^4) z 3 x 4 x 4 z 3 x 4 z (^3) z 4 (x 3 ,y 1 ) (x 3 ,y 1 ,y 2 ) z 5 (x 3 ,y 1 ) z (^4)
z 5 +(x 3 ,y 1 ,y 2 ) (x 3 ,y 1 ,y 2 ) z 5 (x 3 ,y 1 ,y 2 ) z (^5)
7
8
a y 1 ± (^) y (^2) a
b b
10
It may be observed, from the definition of NFA, that the string is supposed to be accepted, if there exists at least one successful path, otherwise rejected.
It is to be noted that an NFA can be considered to be an intermediate structure between FA and TG.
The examples of NFAs can be found in the following
11
b
a
1 - a
a
5+
2+
3
4
It is to be noted that the above NFA accepts the language consisting of a and ab.
13
14
To eliminate the loop at state 7, the corresponding NFA may be as follows
7
a
10
9
8
6
5
4
…
…
…
…
…
…
b c d
a b c
16
17
Can the structure of above NFA be compared with the corresponding RE?
b
a
a b
- + - b^ +
a, b
19
Build an NFA equivalent to the following FA 2
a
1–
3
6+
4
5
a
a (^) a,b
b
b
b
a (^) b
b
a
20