SlideShare a Scribd company logo
1 of 47
AAddmmiissssiioonn iinn IInnddiiaa 22001155 
By: 
admission.edhole.com
FFiinniittee AAuuttoommaattaa aanndd 
NNoonn DDeetteerrmmiinniissmm 
http://cis.k.hosei.ac.jp/~yukita/ 
admission.edhole.com
finite automaton 
Q S 
d 
q F 
A is a 5 - tupple ( , , , , ), where 
states 
Q 
1. is a finite set called the , 
alphabet 
S 
2. is a finite set called the , 
transition function 
Q ´S® 
Q 
d 
3. : is the , 
start state 
q Î 
Q 
4. is the , and 
0 
set of accept states 
F Í 
Q 
5. is the . 
0 
DDeeffiinniittiioonn 11..11:: FFiinniittee AAuuttoommaattoonn 
admission.edhole.com 3
0 1 
1 0 
SSttaattee DDiiaaggrraamm ffoorr MM11 
4 
qq 3 1 q2 
0, 1 
admission.edhole.com
Q = 
q q q 
1. { , , } 
1 2 3 
S = 
2. {0,1} 
d 
3. is described as 
q 
4. is the start state, and 
1 
F = 
q 
5. { }. 
, 
0 1 
2 
q q q 
1 1 2 
q q q 
2 3 2 
q q q 
3 2 2 
DDaattaa RReepprreesseennttaattiioonn ffoorr MM11 
admission.edhole.com 5
1. Implement M1 with your favorite 
programming language. 
2. GUI 
• Two buttons for input 0 and 1 
• State chart with the current state 
highlighted 
TTaasskk 0011 
DDFFAA 
admission.edhole.com 6
M L M 
language of machine 
The , written as ( ), 
is the set of all strings that machine accepts. 
M A 
We can say that . 
1 L M w w 
( ) { | contains at least one 1 and 
an even number of 0s follow the last 1} 
LLaanngguuaaggee ooff MM11 
M 
= 
recognizes 
admission.edhole.com 7
0, <RESET> 0 
2 
SSttaattee DDiiaaggrraamm ffoorr MM55 
8 
q2 
q1 
q0 
0 
1 
1 
2 
2, <RESET> 
1, <RESET> 
admission.edhole.com
Q = 
q q q 
1. { , , } 
0 1 2 
S = 
2. { RESET ,0,1,2} 
d 
3. is described as 
R 
q q q q q 
0 0 0 1 2 
q q q q q 
1 0 1 2 0 
q q q q q 
2 0 2 0 1 
q 
4. is the start state, and 
0 
F = 
q 
5. { }. 
, 
0 1 2 
0 
DDaattaa RReepprreesseennttaattiioonn ffoorr MM55 
admission.edhole.com 9
M5 keeps a running count of the sum of 
the numerical symbols it reads, modulo 3. 
Every time it receives the <RESET> 
symbol it resets the count to 0. 
M5 accepts if the sum is 0, modulo 3. 
IInnffoorrmmaall DDeessccrriippttiioonn ooff MM55 
admission.edhole.com 10
A language is called a regular language 
if some finite automaton recognizes it. 
DDeeffiinniittiioonn 11..77:: RReegguullaarr 
LLaanngguuaaggee 
admission.edhole.com 11
E2 recognizes the regular language of all 
strings that contain the string 001 as a 
substring. 
0010, 1001, 001, and 1111110011110 
are all accepted, 
but 11 and 0000 are not. 
EExxaammppllee 11..99:: AA ffiinniittee aauuttoommaattoonn EE22 
admission.edhole.com 12
You 
1. haven’t just seen any symbols of the 
pattern, 
2. have just seen a 0, 
3. have just seen 00 or, 
4. have just seen the entire pattern 001. 
Assign the states q,q0,q00, and q001 to these 
possibilities. 
FFiinndd aa sseett ooff ssttaatteess ooff EE22 
admission.edhole.com 13
0 0, 1 
1 
1 
DDrraaww aa SSttaattee DDiiaaggrraamm ffoorr EE22 
14 
q00 q001 
1 
q 0 0 
0 
q 
admission.edhole.com
A B 
Let and be languages. 
A È B = x x Î A x Î 
B 
: { | or }. 
A B = xy x Î A y Î 
B 
: { | and }. 
Union 
Concatenation 
* 
 
A x x x k x A 
k i = ³ Î 
: { | 0 and each }. 
1 2 
binary 
 
Star 
The first two operations are operations, 
unary 
and the last one a operation. 
RReegguullaarr OOppeerraattiioonnss oonn 
LLaanngguuaaggeess 
admission.edhole.com 15
Let the alphabet be {a,b, , z}. 
= = 
Let {good, bad} and {boy, girl}. Then, we have 
{good, bad, boy, girl}, 
A B 
È = 
{goodboy, goodgirl, badboy, badgirl}, and 
= 
A B 
{ , good, bad, goodgood, goodbad, badbad, 
 
* 
goodgoodgood, good goodbad, goodbadgood, 
goodbadbad,  
}. 
EExxaammppllee 11..1111 
 
= e 
S 
A 
A B 
admission.edhole.com 16
TThheeoorreemm 11..1122 CClloosseeddnneessss ffoorr 
UUnniioonn 
The class of regular languages is closed under 
the union operation. 
In other words, if and are regular languages, 
so is . 
1 2 
1 2 
A A 
A A 
È 
admission.edhole.com 17
M A M = Q S 
d 
q F 
Let recognize , where ( , , , , ), 
1 1 1 1 1 1 1 
M A M = Q S 
d 
q F 
and recognize , where ( , , , , ). 
2 2 2 2 2 2 2 
M A È 
A 
Construct to recognize , 
M = Q S 
d 
q F 
where ( , , , , ). 
1 2 
Then, check the correctness of the construction. 
PPrrooooff ooff TThheeoorreemm 11..1122 
admission.edhole.com Proof of Th 1.12 18
Q = Q ´ Q = r r r Î Q r Î 
Q 
1. {( , ) | and }. 
1 2 1 2 1 1 2 2 
M M 
2. We can assume that and have the same 
S 
alphabet . (Why?) 
1 2 
r r Q a r r a r a r a 
" Î " ÎS = 
d d d 
3. ( , ) , ; (( , ), ) ( ( , ), ( , )) 
1 2 1 2 1 1 2 2 
q = 
q q 
4. ( , ). 
0 1 2 
F = F ´ Q È Q ´ F = r r r Î F r Î 
F 
5. ( ) ( ) {( , ) | or }. 
1 2 1 2 1 2 1 1 2 2 
CCoonnssttrruuccttiioonn ooff MM 
admission.edhole.com Proof of Th 1.12 19
You should check the following. 
1. For any string recognized by M1 is 
recognized by M. 
2. For any string recognized by M2 is 
recognized by M. 
3. For any string recognized by M is 
recognized by M1 or M2. 
CCoorrrreeccttnneessss 
admission.edhole.com Proof of Th 1.12 20
The class of regular languages is closed under concatenation 
A A 
operation. In other words, if and are regular languages, 
A A 
so is  
. 
1 2 
1 2 
TThheeoorreemm 11..1133 CClloosseeddnneessss ffoorr 
ccoonnccaatteennaattiioonn 
admission.edhole.com 21
To prove Theorem 1.13, we need 
nondeterminism. 
Nondeterminism is a generalization of 
determinism. So, every deterministic 
automaton is automatically a 
nondeterministic automaton. 
NNoonnddeetteerrmmiinniissmm 
admission.edhole.com 22
A nondeterministic finite automaton can 
be different from a deterministic one in 
that 
◦ for any input symbol, nondeterministic one can 
transit to more than one states. 
◦ epsilon transition 
NFA and DFA stand for nondeterministic 
finite automaton and deterministic finite 
automaton, respectively. 
NNoonnddeetteerrmmiissttiicc FFiinniittee AAuuttoommaattaa 
admission.edhole.com 23
0,1 
NNFFAA NN11 
24 
1 0,e q4 
qq 3 1 q2 
0,1 
1 
admission.edhole.com
PPaarraalllleell wwoorrlldd aanndd NNFFAA 
25 
... 
... 
accept 
admission.edhole.com
0,1 
1 0,1 q4 
EExxaammppllee 11..1144 NNFFAA NN22 
26 
qq 3 1 q2 
0,1 
Let language A consist of all strings over {0,1} containing a 1 in the third 
position from the end. N2 recognizes A. 
admission.edhole.com
0 
0 0 q110 
1 q111 
AA DDFFAA eeqquuiivvaalleenntt ttoo NN22 
27 
qq 010 000 q100 
qq 011 001 q101 
1 
0 
1 
0 
0 
1 
1 0 
1 
1 0 
1 admission.edhole.com
e 
0 
0 
0 
EExxaammppllee 11..1155 NNFFAA NN33 
28 
e 
0 
0 
Let language A consist of all strings 0k , where k is a multiple of 2 or 3. N3 
recognizes A. 
admission.edhole.com
0 q0 
AA DDFFAA eeqquuiivvaalleenntt ttoo NN33 
29 
0 q 0 q 0 q0 qq1 2 3 4 
5 
0 
q-1 
1 1 
1 1 1 
1 
0, 1 
admission.edhole.com
EExxaammppllee 11..1166 NNFFAA NN44 
30 
q1 
q2 q3 
a 
b 
a,b 
e 
a 
N4 accepts e, a, baba, and baa. N4 does not accept b, nor babba. 
admission.edhole.com
nondeterministic finite automaton 
A is a 5 - tupple ( , , , , ), where 
states 
Q 
1. is a finite set called the , 
alphabet 
2. is a finite set called the , 
transition function 
Q 
3. : 2 is the , 
start state 
q Î 
Q 
4. is the , and 
0 
5. is the . 
DDeeffiinniittiioonn 11..1177:: NNFFAA 
0 
set of accept states 
F Q 
Q q F 
Q 
Í 
´S ® 
S 
S 
e d 
d 
admission.edhole.com 31
Q = 
q q q q 
1. { , , , }, 
1 2 3 4 
2. {0,1} 
3. is given as 
0,1 
q q q q 
1 1 1 2 
1 0,e 
q q q 
2 3 3 
q q 
Æ Æ 
3 4 
q 
4. is the start state. 
0 1 
{ } { , } 
{ } { } 
{ } 
{ } { } 
EExxaammppllee 11..1188 NNFFAA NN5. { }. 11 
4 
1 
4 4 4 
F q 
q q q 
= 
Æ 
Æ 
Æ 
S = 
e 
d 
32 
qq 3 1 q2 
0,1 
q4 
1 
admission.edhole.com
Von Neumann machines are deterministic. 
However, there are many cases where 
machine specification is all we need. 
IInn wwhhaatt ssiittuuaattiioonn iiss NNoonn 
DDeetteerrmmiinniissmm rreelleevvaanntt?? 
admission.edhole.com 33
Every nondeterministic finite automaton 
has an equivalent deterministic finite 
automaton. 
◦ Def. The two machines are equivalent is they 
recognize the same language. 
TThheeoorreemm 11..1199 
admission.edhole.com 34
N = Q S 
d 
q F A 
Let ( , , , , ) be the NFA recognizing some language . 
0 
N 
e 
Let us assume first that has no arrows. 
= ¢ S ¢ ¢ ¢ 
M Q d 
q F 
Construct ( , , , , ) such that 
¢ = 
Q 
Q 
1. 2 , 
¢ = 
R a r a 
d d 
2. ( , ) ( , ), 
¢ = 
r Î 
R 
q q 
3. { }, and 
0 0 
0 
¢ = Î ¢ Ç ¹ Æ 
F R Q R F 
4. { | }. 
PPrrooooff ooff TThh.. 11..1199 
admission.edhole.com Proof of Th 1.19 35
E R = 
q q R 
( ) { | can be reached from by traveling along zero or 
more e 
arrows.} 
We modify d 
¢ 
as follows. 
¢ ( R , a ) = { q Î Q | q Î E ( ( r , a )) for some r Î 
R 
}. 
We modify as follows. 
d d 
q 
¢ 
0 
¢ = 
q E q 
({ }). 
0 0 
We omit the correctness p 
roof. 
IInnccoorrppoorraattee e aarrrroowwss 
admission.edhole.com Proof of Th 1.19 36
A language is regular if and only if some 
nondeterministic finite automaton 
recognizes it. 
CCoorroollllaarryy 11..2200 
admission.edhole.com 37
N = 
a b d 
Given {{1,2,3},{ , }, ,1,{3}}, we want to construct 
4 
D D 
an equivalent DFA . The 's state set may be takes as 
{1,2,3} 
= Æ 
2 { ,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}. 
b 
EExxaammppllee 11..2211 NNFFAA NN44 ttoo DDFFAA 
38 
1 
2 3 a 
a,b 
e 
a 
admission.edhole.com
1. Write a program that simulates N4. 
2. GUI 
◦ Three buttons for input 0, 1, and epsion. 
◦ State chart that reflect the branching of the 
world. 
TTaasskk 0022 
PPaarraalllleell WWoorrlldd 
admission.edhole.com 39
The start state is E({1}) = {1,3}. 
The set of accept states is {{3},{1,3},{2,3},{1,2,3}}. 
The state diagram is given as follows. 
SSttaarrtt aanndd AAcccceepptt ssttaatteess 
admission.edhole.com 40
f {1} {2} {1,2} 
{3} {1,3} {2,3} {1,2,3} 
TThhee ssttaattee ddiiaaggrraamm ooff DD 
41 
a,b 
a,b 
a 
a 
a 
a 
a 
a 
b 
b b b 
b 
b 
admission.edhole.com
TThheeoorreemm 11..2222 TThhee ccllaassss ooff rreegguullaarr 
llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee uunniioonn 
ooppeerraattiioonn.. 
42 
N1 
N2 
N 
e 
e 
admission.edhole.com
N = Q S 
q F A 
Let ( , , , , ) recognize , and 
1 1 1 1 1 1 
N Q q F A 
( , , , , ) recognize . 
2 2 2 2 2 2 
N Q q F A A 
Construct { , , , , ) to recognize . 
Q q Q Q 
1. { } 
  
0 1 2 
2. The state is the start state of 
F F F 
d 
ì 
ï ï 
í 
q a q Q 
( , ) for 
1 1 
q a q Q 
( , ) for 
2 2 
q q q q a 
{ , } for and 
ï ï 
Î 
Î 
1 2 0 
Æ = ¹ 
î 
= 
3. 
PPrrooooff ooff TThh.. 11..2222 
= = 
= 
= 
= S 
= S 
e 
for and . 
4. ( , ) 
0 
1 2 
0 
0 1 2 
e 
d 
d 
d 
d 
d 
q q a 
q a 
q N. 
 
 
admission.edhole.com 43
TThheeoorreemm 11..2233 TThhee ccllaassss ooff rreegguullaarr 
llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee ccoonnccaatteennaattiioonn 
ooppeerraattiioonn.. 
44 
N1 N2 
N e 
e 
admission.edhole.com
N = Q S 
q F A 
Let ( , , , , ) recognize , and 
1 1 1 1 1 1 
N Q q F A 
( , , , , ) recognize . 
2 2 2 2 2 2 
N Q q F A A 
Construct { , , , , ) to recognize . 
1. 
2. The start state is the same as that of . 
3. The set of accept states is the same as that of 
d 
ì 
ï ï 
d e 
í 
d e 
ï ï 
î 
q a q Q q F 
( , ) for and 
1 1 1 
q a q F a 
( , ) for and 
1 1 
q a q q F a 
( , ) { } for and 
1 2 1 
PPrrooooff ooff TThh.. 11..2233 
Î Ï 
Î ¹ 
Î = 
Î 
= 
= 
= S 
= S 
( , ) for . 
4. ( , ) 
2 2 
2 
1 1 
1 2 
1 2 1 2 
q a q Q 
q a 
N 
q N 
Q Q Q 
d 
d 
d 
d 
d 
 
 
 
admission.edhole.com 45
TThheeoorreemm 11..2244 TThhee ccllaassss ooff rreegguullaarr 
llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee ssttaarr 
ooppeerraattiioonn.. 
46 
N1 
N 
e e 
e 
admission.edhole.com
N = Q S 
q F A 
Let ( , , , , ) recognize . 
1 1 1 1 1 1 
N Q q F A 
Construct { , , , , ) to recognize . 
1. { } 
 
2. The start state is the new start state. 
F q F 
ì 
ï ï ï 
q a q Q q F 
q a q F a 
d e 
q a q q F a 
d e 
í 
ï ï ï 
Î Ï 
( , ) for and 
1 1 1 
Î ¹ 
( , ) for and 
1 1 
Î = 
( , ) { } for and 
1 1 1 
q q q a 
{ } for and 
1 0 
Æ = ¹ 
î 
= 
3. { } 
PPrrooooff ooff TThh.. 11..2244 
= = 
= 
= 
= S 
e 
for and . 
4. ( , ) 
0 
0 1 
0 
0 1 
* 
0 1 
e 
d 
d 
d 
d 
q q a 
q a 
q 
Q q Q 
 
 
admission.edhole.com 47

More Related Content

What's hot

On Some Double Integrals of H -Function of Two Variables and Their Applications
On Some Double Integrals of H -Function of Two Variables and Their ApplicationsOn Some Double Integrals of H -Function of Two Variables and Their Applications
On Some Double Integrals of H -Function of Two Variables and Their ApplicationsIJERA Editor
 
Identidades trigonometricas fundamentales
Identidades trigonometricas fundamentalesIdentidades trigonometricas fundamentales
Identidades trigonometricas fundamentalesElmerUgartePMP
 
Proyecto parcial iii_ proyecciones lineales
Proyecto parcial iii_ proyecciones linealesProyecto parcial iii_ proyecciones lineales
Proyecto parcial iii_ proyecciones linealesJOSUESANTIAGOPILLAJO
 
Derivatives of Trigonometric Functions, Part 2
Derivatives of Trigonometric Functions, Part 2Derivatives of Trigonometric Functions, Part 2
Derivatives of Trigonometric Functions, Part 2Pablo Antuna
 
The chain rule
The chain ruleThe chain rule
The chain ruleJ M
 
Partial differentiation B tech
Partial differentiation B techPartial differentiation B tech
Partial differentiation B techRaj verma
 
Week3 ap3421 2019_part1
Week3 ap3421 2019_part1Week3 ap3421 2019_part1
Week3 ap3421 2019_part1David Cian
 
Ruby on rails presentation
Ruby on rails presentationRuby on rails presentation
Ruby on rails presentationSynbioz
 
Partial differentiation
Partial differentiationPartial differentiation
Partial differentiationTanuj Parikh
 
College textbook business math and statistics - section b - business mathem...
College textbook   business math and statistics - section b - business mathem...College textbook   business math and statistics - section b - business mathem...
College textbook business math and statistics - section b - business mathem...Praveen Tyagi
 

What's hot (17)

Chapter 5 assignment
Chapter 5 assignmentChapter 5 assignment
Chapter 5 assignment
 
On Some Double Integrals of H -Function of Two Variables and Their Applications
On Some Double Integrals of H -Function of Two Variables and Their ApplicationsOn Some Double Integrals of H -Function of Two Variables and Their Applications
On Some Double Integrals of H -Function of Two Variables and Their Applications
 
O2
O2O2
O2
 
Fourier transforms
Fourier transformsFourier transforms
Fourier transforms
 
Identidades trigonometricas fundamentales
Identidades trigonometricas fundamentalesIdentidades trigonometricas fundamentales
Identidades trigonometricas fundamentales
 
Identidades
IdentidadesIdentidades
Identidades
 
Chapter2b
Chapter2bChapter2b
Chapter2b
 
1st and 2nd Semester M Tech: VLSI Design and Embedded System (Dec-2015; Jan-2...
1st and 2nd Semester M Tech: VLSI Design and Embedded System (Dec-2015; Jan-2...1st and 2nd Semester M Tech: VLSI Design and Embedded System (Dec-2015; Jan-2...
1st and 2nd Semester M Tech: VLSI Design and Embedded System (Dec-2015; Jan-2...
 
A04 07 0105
A04 07 0105A04 07 0105
A04 07 0105
 
Proyecto parcial iii_ proyecciones lineales
Proyecto parcial iii_ proyecciones linealesProyecto parcial iii_ proyecciones lineales
Proyecto parcial iii_ proyecciones lineales
 
Derivatives of Trigonometric Functions, Part 2
Derivatives of Trigonometric Functions, Part 2Derivatives of Trigonometric Functions, Part 2
Derivatives of Trigonometric Functions, Part 2
 
The chain rule
The chain ruleThe chain rule
The chain rule
 
Partial differentiation B tech
Partial differentiation B techPartial differentiation B tech
Partial differentiation B tech
 
Week3 ap3421 2019_part1
Week3 ap3421 2019_part1Week3 ap3421 2019_part1
Week3 ap3421 2019_part1
 
Ruby on rails presentation
Ruby on rails presentationRuby on rails presentation
Ruby on rails presentation
 
Partial differentiation
Partial differentiationPartial differentiation
Partial differentiation
 
College textbook business math and statistics - section b - business mathem...
College textbook   business math and statistics - section b - business mathem...College textbook   business math and statistics - section b - business mathem...
College textbook business math and statistics - section b - business mathem...
 

Similar to Admission in india 2015

Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp scienceRaghu nath
 
Orthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processOrthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processgidc engineering college
 
Deterministic finite automata
Deterministic finite automata Deterministic finite automata
Deterministic finite automata Muhammad Love Kian
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdfshruti533256
 
E041046051
E041046051E041046051
E041046051inventy
 
free Video lecture
free Video lecture free Video lecture
free Video lecture Edhole.com
 
On Double Elzaki Transform and Double Laplace Transform
On Double Elzaki Transform and Double Laplace TransformOn Double Elzaki Transform and Double Laplace Transform
On Double Elzaki Transform and Double Laplace Transformiosrjce
 
0227 regularlanguages
 0227 regularlanguages 0227 regularlanguages
0227 regularlanguagesissbp
 
Engineering Analysis -Third Class.ppsx
Engineering Analysis -Third Class.ppsxEngineering Analysis -Third Class.ppsx
Engineering Analysis -Third Class.ppsxHebaEng
 
Numerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsNumerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsAmos Tsai
 
Admissions in India 2015
Admissions in India 2015Admissions in India 2015
Admissions in India 2015Edhole.com
 
Location of Zeros of Polynomials
Location of Zeros of PolynomialsLocation of Zeros of Polynomials
Location of Zeros of Polynomialsijceronline
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxSohaibAlviWebster
 

Similar to Admission in india 2015 (20)

Automata Theory
Automata TheoryAutomata Theory
Automata Theory
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp science
 
Finite automata
Finite automataFinite automata
Finite automata
 
Orthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processOrthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth process
 
3rd Semester Computer Science and Engineering (ACU - 2022) Question papers
3rd Semester Computer Science and Engineering  (ACU - 2022) Question papers3rd Semester Computer Science and Engineering  (ACU - 2022) Question papers
3rd Semester Computer Science and Engineering (ACU - 2022) Question papers
 
Deterministic finite automata
Deterministic finite automata Deterministic finite automata
Deterministic finite automata
 
6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf6-Nfa & equivalence with RE.pdf
6-Nfa & equivalence with RE.pdf
 
E041046051
E041046051E041046051
E041046051
 
free Video lecture
free Video lecture free Video lecture
free Video lecture
 
Analytic dynamics
Analytic dynamicsAnalytic dynamics
Analytic dynamics
 
On Double Elzaki Transform and Double Laplace Transform
On Double Elzaki Transform and Double Laplace TransformOn Double Elzaki Transform and Double Laplace Transform
On Double Elzaki Transform and Double Laplace Transform
 
0227 regularlanguages
 0227 regularlanguages 0227 regularlanguages
0227 regularlanguages
 
Teori automata lengkap
Teori automata lengkapTeori automata lengkap
Teori automata lengkap
 
Engineering Analysis -Third Class.ppsx
Engineering Analysis -Third Class.ppsxEngineering Analysis -Third Class.ppsx
Engineering Analysis -Third Class.ppsx
 
Numerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsNumerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special Functions
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Conference ppt
Conference pptConference ppt
Conference ppt
 
Admissions in India 2015
Admissions in India 2015Admissions in India 2015
Admissions in India 2015
 
Location of Zeros of Polynomials
Location of Zeros of PolynomialsLocation of Zeros of Polynomials
Location of Zeros of Polynomials
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptx
 

More from Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

More from Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Admission in india 2015

  • 1. AAddmmiissssiioonn iinn IInnddiiaa 22001155 By: admission.edhole.com
  • 2. FFiinniittee AAuuttoommaattaa aanndd NNoonn DDeetteerrmmiinniissmm http://cis.k.hosei.ac.jp/~yukita/ admission.edhole.com
  • 3. finite automaton Q S d q F A is a 5 - tupple ( , , , , ), where states Q 1. is a finite set called the , alphabet S 2. is a finite set called the , transition function Q ´S® Q d 3. : is the , start state q Î Q 4. is the , and 0 set of accept states F Í Q 5. is the . 0 DDeeffiinniittiioonn 11..11:: FFiinniittee AAuuttoommaattoonn admission.edhole.com 3
  • 4. 0 1 1 0 SSttaattee DDiiaaggrraamm ffoorr MM11 4 qq 3 1 q2 0, 1 admission.edhole.com
  • 5. Q = q q q 1. { , , } 1 2 3 S = 2. {0,1} d 3. is described as q 4. is the start state, and 1 F = q 5. { }. , 0 1 2 q q q 1 1 2 q q q 2 3 2 q q q 3 2 2 DDaattaa RReepprreesseennttaattiioonn ffoorr MM11 admission.edhole.com 5
  • 6. 1. Implement M1 with your favorite programming language. 2. GUI • Two buttons for input 0 and 1 • State chart with the current state highlighted TTaasskk 0011 DDFFAA admission.edhole.com 6
  • 7. M L M language of machine The , written as ( ), is the set of all strings that machine accepts. M A We can say that . 1 L M w w ( ) { | contains at least one 1 and an even number of 0s follow the last 1} LLaanngguuaaggee ooff MM11 M = recognizes admission.edhole.com 7
  • 8. 0, <RESET> 0 2 SSttaattee DDiiaaggrraamm ffoorr MM55 8 q2 q1 q0 0 1 1 2 2, <RESET> 1, <RESET> admission.edhole.com
  • 9. Q = q q q 1. { , , } 0 1 2 S = 2. { RESET ,0,1,2} d 3. is described as R q q q q q 0 0 0 1 2 q q q q q 1 0 1 2 0 q q q q q 2 0 2 0 1 q 4. is the start state, and 0 F = q 5. { }. , 0 1 2 0 DDaattaa RReepprreesseennttaattiioonn ffoorr MM55 admission.edhole.com 9
  • 10. M5 keeps a running count of the sum of the numerical symbols it reads, modulo 3. Every time it receives the <RESET> symbol it resets the count to 0. M5 accepts if the sum is 0, modulo 3. IInnffoorrmmaall DDeessccrriippttiioonn ooff MM55 admission.edhole.com 10
  • 11. A language is called a regular language if some finite automaton recognizes it. DDeeffiinniittiioonn 11..77:: RReegguullaarr LLaanngguuaaggee admission.edhole.com 11
  • 12. E2 recognizes the regular language of all strings that contain the string 001 as a substring. 0010, 1001, 001, and 1111110011110 are all accepted, but 11 and 0000 are not. EExxaammppllee 11..99:: AA ffiinniittee aauuttoommaattoonn EE22 admission.edhole.com 12
  • 13. You 1. haven’t just seen any symbols of the pattern, 2. have just seen a 0, 3. have just seen 00 or, 4. have just seen the entire pattern 001. Assign the states q,q0,q00, and q001 to these possibilities. FFiinndd aa sseett ooff ssttaatteess ooff EE22 admission.edhole.com 13
  • 14. 0 0, 1 1 1 DDrraaww aa SSttaattee DDiiaaggrraamm ffoorr EE22 14 q00 q001 1 q 0 0 0 q admission.edhole.com
  • 15. A B Let and be languages. A È B = x x Î A x Î B : { | or }. A B = xy x Î A y Î B : { | and }. Union Concatenation *  A x x x k x A k i = ³ Î : { | 0 and each }. 1 2 binary  Star The first two operations are operations, unary and the last one a operation. RReegguullaarr OOppeerraattiioonnss oonn LLaanngguuaaggeess admission.edhole.com 15
  • 16. Let the alphabet be {a,b, , z}. = = Let {good, bad} and {boy, girl}. Then, we have {good, bad, boy, girl}, A B È = {goodboy, goodgirl, badboy, badgirl}, and = A B { , good, bad, goodgood, goodbad, badbad,  * goodgoodgood, good goodbad, goodbadgood, goodbadbad,  }. EExxaammppllee 11..1111  = e S A A B admission.edhole.com 16
  • 17. TThheeoorreemm 11..1122 CClloosseeddnneessss ffoorr UUnniioonn The class of regular languages is closed under the union operation. In other words, if and are regular languages, so is . 1 2 1 2 A A A A È admission.edhole.com 17
  • 18. M A M = Q S d q F Let recognize , where ( , , , , ), 1 1 1 1 1 1 1 M A M = Q S d q F and recognize , where ( , , , , ). 2 2 2 2 2 2 2 M A È A Construct to recognize , M = Q S d q F where ( , , , , ). 1 2 Then, check the correctness of the construction. PPrrooooff ooff TThheeoorreemm 11..1122 admission.edhole.com Proof of Th 1.12 18
  • 19. Q = Q ´ Q = r r r Î Q r Î Q 1. {( , ) | and }. 1 2 1 2 1 1 2 2 M M 2. We can assume that and have the same S alphabet . (Why?) 1 2 r r Q a r r a r a r a " Î " ÎS = d d d 3. ( , ) , ; (( , ), ) ( ( , ), ( , )) 1 2 1 2 1 1 2 2 q = q q 4. ( , ). 0 1 2 F = F ´ Q È Q ´ F = r r r Î F r Î F 5. ( ) ( ) {( , ) | or }. 1 2 1 2 1 2 1 1 2 2 CCoonnssttrruuccttiioonn ooff MM admission.edhole.com Proof of Th 1.12 19
  • 20. You should check the following. 1. For any string recognized by M1 is recognized by M. 2. For any string recognized by M2 is recognized by M. 3. For any string recognized by M is recognized by M1 or M2. CCoorrrreeccttnneessss admission.edhole.com Proof of Th 1.12 20
  • 21. The class of regular languages is closed under concatenation A A operation. In other words, if and are regular languages, A A so is  . 1 2 1 2 TThheeoorreemm 11..1133 CClloosseeddnneessss ffoorr ccoonnccaatteennaattiioonn admission.edhole.com 21
  • 22. To prove Theorem 1.13, we need nondeterminism. Nondeterminism is a generalization of determinism. So, every deterministic automaton is automatically a nondeterministic automaton. NNoonnddeetteerrmmiinniissmm admission.edhole.com 22
  • 23. A nondeterministic finite automaton can be different from a deterministic one in that ◦ for any input symbol, nondeterministic one can transit to more than one states. ◦ epsilon transition NFA and DFA stand for nondeterministic finite automaton and deterministic finite automaton, respectively. NNoonnddeetteerrmmiissttiicc FFiinniittee AAuuttoommaattaa admission.edhole.com 23
  • 24. 0,1 NNFFAA NN11 24 1 0,e q4 qq 3 1 q2 0,1 1 admission.edhole.com
  • 25. PPaarraalllleell wwoorrlldd aanndd NNFFAA 25 ... ... accept admission.edhole.com
  • 26. 0,1 1 0,1 q4 EExxaammppllee 11..1144 NNFFAA NN22 26 qq 3 1 q2 0,1 Let language A consist of all strings over {0,1} containing a 1 in the third position from the end. N2 recognizes A. admission.edhole.com
  • 27. 0 0 0 q110 1 q111 AA DDFFAA eeqquuiivvaalleenntt ttoo NN22 27 qq 010 000 q100 qq 011 001 q101 1 0 1 0 0 1 1 0 1 1 0 1 admission.edhole.com
  • 28. e 0 0 0 EExxaammppllee 11..1155 NNFFAA NN33 28 e 0 0 Let language A consist of all strings 0k , where k is a multiple of 2 or 3. N3 recognizes A. admission.edhole.com
  • 29. 0 q0 AA DDFFAA eeqquuiivvaalleenntt ttoo NN33 29 0 q 0 q 0 q0 qq1 2 3 4 5 0 q-1 1 1 1 1 1 1 0, 1 admission.edhole.com
  • 30. EExxaammppllee 11..1166 NNFFAA NN44 30 q1 q2 q3 a b a,b e a N4 accepts e, a, baba, and baa. N4 does not accept b, nor babba. admission.edhole.com
  • 31. nondeterministic finite automaton A is a 5 - tupple ( , , , , ), where states Q 1. is a finite set called the , alphabet 2. is a finite set called the , transition function Q 3. : 2 is the , start state q Î Q 4. is the , and 0 5. is the . DDeeffiinniittiioonn 11..1177:: NNFFAA 0 set of accept states F Q Q q F Q Í ´S ® S S e d d admission.edhole.com 31
  • 32. Q = q q q q 1. { , , , }, 1 2 3 4 2. {0,1} 3. is given as 0,1 q q q q 1 1 1 2 1 0,e q q q 2 3 3 q q Æ Æ 3 4 q 4. is the start state. 0 1 { } { , } { } { } { } { } { } EExxaammppllee 11..1188 NNFFAA NN5. { }. 11 4 1 4 4 4 F q q q q = Æ Æ Æ S = e d 32 qq 3 1 q2 0,1 q4 1 admission.edhole.com
  • 33. Von Neumann machines are deterministic. However, there are many cases where machine specification is all we need. IInn wwhhaatt ssiittuuaattiioonn iiss NNoonn DDeetteerrmmiinniissmm rreelleevvaanntt?? admission.edhole.com 33
  • 34. Every nondeterministic finite automaton has an equivalent deterministic finite automaton. ◦ Def. The two machines are equivalent is they recognize the same language. TThheeoorreemm 11..1199 admission.edhole.com 34
  • 35. N = Q S d q F A Let ( , , , , ) be the NFA recognizing some language . 0 N e Let us assume first that has no arrows. = ¢ S ¢ ¢ ¢ M Q d q F Construct ( , , , , ) such that ¢ = Q Q 1. 2 , ¢ = R a r a d d 2. ( , ) ( , ), ¢ = r Î R q q 3. { }, and 0 0 0 ¢ = Î ¢ Ç ¹ Æ F R Q R F 4. { | }. PPrrooooff ooff TThh.. 11..1199 admission.edhole.com Proof of Th 1.19 35
  • 36. E R = q q R ( ) { | can be reached from by traveling along zero or more e arrows.} We modify d ¢ as follows. ¢ ( R , a ) = { q Î Q | q Î E ( ( r , a )) for some r Î R }. We modify as follows. d d q ¢ 0 ¢ = q E q ({ }). 0 0 We omit the correctness p roof. IInnccoorrppoorraattee e aarrrroowwss admission.edhole.com Proof of Th 1.19 36
  • 37. A language is regular if and only if some nondeterministic finite automaton recognizes it. CCoorroollllaarryy 11..2200 admission.edhole.com 37
  • 38. N = a b d Given {{1,2,3},{ , }, ,1,{3}}, we want to construct 4 D D an equivalent DFA . The 's state set may be takes as {1,2,3} = Æ 2 { ,{1},{2},{3},{1,2},{1,3},{2,3},{1,2,3}}. b EExxaammppllee 11..2211 NNFFAA NN44 ttoo DDFFAA 38 1 2 3 a a,b e a admission.edhole.com
  • 39. 1. Write a program that simulates N4. 2. GUI ◦ Three buttons for input 0, 1, and epsion. ◦ State chart that reflect the branching of the world. TTaasskk 0022 PPaarraalllleell WWoorrlldd admission.edhole.com 39
  • 40. The start state is E({1}) = {1,3}. The set of accept states is {{3},{1,3},{2,3},{1,2,3}}. The state diagram is given as follows. SSttaarrtt aanndd AAcccceepptt ssttaatteess admission.edhole.com 40
  • 41. f {1} {2} {1,2} {3} {1,3} {2,3} {1,2,3} TThhee ssttaattee ddiiaaggrraamm ooff DD 41 a,b a,b a a a a a a b b b b b b admission.edhole.com
  • 42. TThheeoorreemm 11..2222 TThhee ccllaassss ooff rreegguullaarr llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee uunniioonn ooppeerraattiioonn.. 42 N1 N2 N e e admission.edhole.com
  • 43. N = Q S q F A Let ( , , , , ) recognize , and 1 1 1 1 1 1 N Q q F A ( , , , , ) recognize . 2 2 2 2 2 2 N Q q F A A Construct { , , , , ) to recognize . Q q Q Q 1. { }   0 1 2 2. The state is the start state of F F F d ì ï ï í q a q Q ( , ) for 1 1 q a q Q ( , ) for 2 2 q q q q a { , } for and ï ï Î Î 1 2 0 Æ = ¹ î = 3. PPrrooooff ooff TThh.. 11..2222 = = = = = S = S e for and . 4. ( , ) 0 1 2 0 0 1 2 e d d d d d q q a q a q N.   admission.edhole.com 43
  • 44. TThheeoorreemm 11..2233 TThhee ccllaassss ooff rreegguullaarr llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee ccoonnccaatteennaattiioonn ooppeerraattiioonn.. 44 N1 N2 N e e admission.edhole.com
  • 45. N = Q S q F A Let ( , , , , ) recognize , and 1 1 1 1 1 1 N Q q F A ( , , , , ) recognize . 2 2 2 2 2 2 N Q q F A A Construct { , , , , ) to recognize . 1. 2. The start state is the same as that of . 3. The set of accept states is the same as that of d ì ï ï d e í d e ï ï î q a q Q q F ( , ) for and 1 1 1 q a q F a ( , ) for and 1 1 q a q q F a ( , ) { } for and 1 2 1 PPrrooooff ooff TThh.. 11..2233 Î Ï Î ¹ Î = Î = = = S = S ( , ) for . 4. ( , ) 2 2 2 1 1 1 2 1 2 1 2 q a q Q q a N q N Q Q Q d d d d d    admission.edhole.com 45
  • 46. TThheeoorreemm 11..2244 TThhee ccllaassss ooff rreegguullaarr llaanngguuaaggeess iiss cclloosseedd uunnddeerr tthhee ssttaarr ooppeerraattiioonn.. 46 N1 N e e e admission.edhole.com
  • 47. N = Q S q F A Let ( , , , , ) recognize . 1 1 1 1 1 1 N Q q F A Construct { , , , , ) to recognize . 1. { }  2. The start state is the new start state. F q F ì ï ï ï q a q Q q F q a q F a d e q a q q F a d e í ï ï ï Î Ï ( , ) for and 1 1 1 Î ¹ ( , ) for and 1 1 Î = ( , ) { } for and 1 1 1 q q q a { } for and 1 0 Æ = ¹ î = 3. { } PPrrooooff ooff TThh.. 11..2244 = = = = = S e for and . 4. ( , ) 0 0 1 0 0 1 * 0 1 e d d d d q q a q a q Q q Q   admission.edhole.com 47