Theory of Automata Unit 1 Handwritten Notes
Theory of Automata Unit 1 Handwritten Notes
Theory Of Automata & Formal Languages (Dr. A.P.J. Abdul Kalam Technical University)
mathemati caly
Appicakions
igital circuit design
- .
CompileX dAsign
han a ttL
E:E 0, =(0+ )
IwI =6
Length &tring IwI): w a bbe de,
he &tring olunggth0.
Null L4ring (e ot :
LO =0 0
t Eu Ltrin whwuas Let)
Downloaded by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
CoCatenation 01O
onqth-0
(610)'o1O anh -3
COIO) o100 0 nth G
ven
lwl= m
nd ntnng h u
Ro voLLe
On
a2,
w an ,Cn-I
XY
twR txy)R yEx*
Downloaded by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
PalindHome 10 1
wuR even
R o dd O
Suwbstng
Anu ARqane Con&etudi ve bymbol4 o m w (any strino)
doq
Sublo $e,d,0, do, 0g, dog
But dg not pat
o o sub- &tring. It will
be a
OL H S.
ab 3I 2
Symbo Ls as Lami
aa 2+1
PHax nd SulxX
Px oong tTin
on no ng but sit
mjuaa*
Symbe2 om to uight R iven
ting
sux Cuo) E,d,
do,doq Y +1)
-
ta+1)
Sax to):{E.g.cgdogJno.su pHx
eco ase pHLentin both
Pouou Lting
0. t .
Opadions on lonauaq
L o, 10,11
La 1, 101, 1 10ot
LUL 0, 10, I1, 11, 1o}
L Y- L
(o+) -L Se, 1, 0,o0,.
JR ,uEL
L 1, 10 1, OIu}
Downloaded by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
Architectute Automata
p Team Tape
Control
|- urt
9 incS)tuple machine2
Finite Automota CFA) is a
O E,6, 9o , F)
wheHe 0 Finite set sta
e-tot
2Finite set ot ehaa
ToQsiti0 n untion
9Single Iritioi Stati
FO
yb
a,b
F 92
Ve}>2 !a (mon - dutei nisti
XE
nit Cutomata)
Sa b S:(90
S:Cb
St9.a)-q
S t9b->9
S:a)-q
S:C9b)-q
Di ne b/w ma and da
No Choites ddL olowed. Choigae aloweo
E -tronithon not allow edu)E tronsiton U allowede
) Dead coniqwl Otien is ) Dead tonig wiation iz
mot uo e. alo wed
dve 1.
I.
ang uage exg
oexoty ty lngth
ltngth
Cnnstbing
So,
0, 13 =(o +)
L
o,
,
X
0, 0,
> dja)
x Valid ma chin
n vau d ma chne
L
O,
, dummy &tate
L 0 (o+ 1)*
E,0, , o 0.
o
0,00,0l,
0*
O*o =C*
isyou ate Cookinm
qou m
onguoce
ofhe Athat base Ehen
The base is
oH UniveLol ongua2 Ang 4tring
Cn
dn om
Co uning
b
qven
Ot ot O.0 0*0
3 o, 0, o0o, ,
0tnt: o,00, O00 ..
Downloaded by HIMANSHU SHARMA ([email protected])
7, 00+
lOMoARcPSD|42053009
e, 0, o0, 0 00,.
COD -o)n-, Ot
to0t)»?
L So
Lo0
0,o0}
L S0,
LD+1 0,1
e,o,
o,
L o+11
NFA lwithout E traunstion) to DA Convs1On
,b b
0,b
93
2
b b
a,b
a
a,
Comv * v2n NFA inko DFA
etato O
State|
Sq
1 O
O,
O
Dummy o t7aP_state
*Vumm Stata uwi tl aluw ays be in dAa..DumMy
.Dumm wil aluo ag be exa ctly o e tate in
State
be initia&non ina
yany ill mon- State
machinoDUmnu state
Dum tate ShouAd mot have onu outgoing
e eoe n pet
Downloaded Symbo
by HIMANSHU 0.
SHARMA ([email protected])
imou
lOMoARcPSD|42053009
alh.
Dummu statr ust have o ne too or
Symbole Aor owch machino as oluneo.
Convt lto wing NFA machi n Äto Rquu valont 0FA
Qa,b
D
Lo,
a,b
a,b
a
1 b b
b
b b
(( 1
a
2,
to.1
O
Q
Downloaded by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
a b b
wih¬-tranaition to
COn vent ti given ma
awih out E tns itlon.
O
ia, b}
ve Yp habe£
he
aor
A
Stina with ab
a
DHa
bao,. ... 2
abb,a
a, b aba,
Sa b,
ab la+b)
b
9
b
a,b e2t
Ov
Ov alphab et
org uagethe mst
must
a da
forhatvoy strin
brauo ad Such
Drauo
tring.
So,1 a substo
subs
as
oo
kave
0,y
o oo,
100 , dhl,
06(0+ 1)* Soo,
(0 0,1
o,
S- ctoswe q) = q«,9q11
Clo w Cq)
cO& tq)- *q9 c
(q»3)
-
cLoswre (q, p
- clo &wu
t9,)
-closuwetq)= q2
b-clo&wl (qo,
qu,q2) Clo& wo tq o) U
6-clo Rue Cq)u
0- choLue Cq2)
o,1, 2
Clo&uAO A
, B,
SA, B,c 9
- clo swe oA
oB A, B,
- cloDownloaded of
e by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
B,cY
=¥A,
-clo&ue
(A
6, c?
9A,6,c
A,
CY|$a, 8, c}
gSA,
B,
0,1
0+)
-clos w A A 6,e}
eloswe A SA,B,C
-closune B {cy
-Clog WL
closwe
e clo&we A = A, B, C
8,cy A, B, t
6,
QB,C c.
o,
o,
Puntitioning Method
DI&tmguushable 2 Indistingishable &tate
Orm0 than to O st&tIS in dh machi stote
ne
nosti
ng uuhable i or the s0 ma in
pwj
uoe
0
ao
qutti output t i nal or all nonnol
tuoia gta a distinq tshable
aL disti nquts halbleo inlput co
6 C90,w) F =
MF
Cq w) F NE
K-2quivalon be
4-9
ble or
deod ta or ible
ac ca4 ible stat
stat
cha
ULa ny Stat us n0t
Ctomate,
.
mse
he ve n
.Mn 0,
C E F
A B
E
A D
F
E
Downloaded F
by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
no A,B,f, e,D,t}
1, {A,B}, F, c, D, E13
2 A, B'}, {F4, 1C,b, E
A,b) c,b
F F
C,D,E E F
Thuorem
Mo Hill Nanod
on by
nimisti
i
do all
pous
pous etati
8tats q
pP2
brauoa
table dor PEFA0¢F
hat
pain P,o kuh
al pouisohee
Hae unman uad hen
hun
Ony eed
I the 5( 0, «)
s uloacy may
abraady
&L'P, , CP,0)
als0. Can he
Con be
na k pai Unit
Mo m i ng
esA
this Pro
Rebea as
hom
Madi. make
alun mau k paul
Coubine
9ingle state Mo
Ma Hill
usina Hil
given oya by
usin
the
Mini mile
Nauoo Theo Hom
A D EF
A
C
D
EF Vv
ce,E), (D,E)
A,B CC,D)
C,D, E)
Q
o sing
poutionu nq &
pautioni ng
cQNinise he gven dla by
mthdd.
Ma Hill Nawoole
b
=2, 191 =
I
101 8, É ={a, b}, IEl
FI 1,
b
a b 5
X
Downloaded by HIMANSHU SHARMA ([email protected])
lOMoARcPSD|42053009
5, 9T, Sqs}
,
o,6t, q, , 1*, sq 1%
b
q91
a
Qb b
pautio ni ng 4
he 9ven 4a by
.Uu is metuol.
Hil Nasuode
Ma
b a