0% found this document useful (0 votes)
11 views

Atc 2

The document describes a finite state machine (FSM) that accepts a regular language. It defines the states, transitions, and alphabet of the FSM. It also proves that the described language is regular by showing the FSM accepts it.

Uploaded by

Chethu forever
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Atc 2

The document describes a finite state machine (FSM) that accepts a regular language. It defines the states, transitions, and alphabet of the FSM. It also proves that the described language is regular by showing the FSM accepts it.

Uploaded by

Chethu forever
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

ASSIGNMENF I

Datun Ragulas pasuen


a
g
unute th
Reqla aptissen bor ollur lanauag
Ao he accepd ky DFA
NEA mdE- FA

dalltd
larguage
ulas larguage aregilase Leguge can wan 6 a
oltscrbed uiung Ceruay
optiiiord cenuustirg the ymb
Auh a rugular

alphabets an 2, the patos


duh as +amd
btan a
* YhthLL epuatos at used te glan
eaptesiein axe
* (operato
cpnato ean alle a denetbd by Uunuen cpsalon (lat
pcden

epenet o) concatnatuen opArato (nixtliast pterdena


operatsn) cletoe epetato (hghust ptucudamta)

Afwe fa,b}:lwl a wen


O2tt 6 Caatab tbatbb)
aa aa abjaabate-(Ca+b)Catb))
(it) {a"a b" |mzI,nzinm 3} Z
Soln (a) bCb)*
Case- Anca nmB, 0 I,bhem m.23
a bbb6
case-2 An nmz3, 4mal nz 3
aaaa b
Cale 3-RE Lune nm73,n22,m2
aaa LbbX
RE abbbB+aaaa b +aad bbb
A1a" min wenn
Cuen Ocld +eren Odd
een
wt
odd tdd
ren
RE(aa) (bb)+a laa) b(bb)

baj
)A1w efab3 w dos nt tnd urtA

RE (a+b)(ab aa t bb)
)k1a"b"'ny 4 me
m-O6'sIb 26s +3b's
n-aa aa¥
KE aaaat aaaab +aaaa bb t aaaa"bb
os md 'smdunY
of 0S omds wun Tthnne comlutue pha

o
vi) s0uGs

R-Eo+1) 0oo
aa
wit) Avrurt o as 6b's havung Auhsbung

Seen RECa tb) aa (a+b)*

Xe a's suuh tnat thud Aupribot


(yini) acapt drurys t,bs

hem 9ugat As a cud Kouwth deprboe


2
thgd Ca tbya(at b) RE-(04b) a la+hXotb)
puwth Catb)a (a+6)3 Rt: Cotb) a(atb)Mo15ya
h)

Buld ctular poson tquivalent to DFSM gwm belur

Oa
Jotn
upl
Akep l: A0 dad skate net valud
Akp2! auepuny tatu a thou net vald
dkte e
Mop3 Atant
Atart tat C

a
Caeat
Slep 4 thve
nal
nt meie kam
Alate
mate d
accspliry
erial
dtati
ttato s hen-fnat ttl

t final dtate)
(Start Stats
Slap 6 SS+F:S
6: llmmiate C
Alep

(b+ aa
aatb

Almnat -2
4
,
bt aab)
aCbtadb)
aE)-a
(0+€)
a
-1
elmnnali

Ela (bt aar b))*(E ta)


hnal
R.e a (b+aatb 7 (ab + aa a"b)+ (Eta)
+(a +E)

RECab+aa ab)+(Era)
Baid a FSmhat acapes the lenguage debmeo by

gulr apposen lbuab)


FSM aa
M m
a.b

bU ab
m

(bUab FS M Cb Uab)
22

4 onsictu ue fSM M1 ule bmm to sguo algoiuthma do


Zo
aP lan
hat disoibu UM) gurn
proGrm had
Censisud

belowr

b
C
a
dap ne dead stak
Falid
Sap-2 aLcepang stats,not Cuon
Qe
hau nnemwlg
tat dou na
n3.
tep stoto
valrd
nvalid
4nly
5 Ss F.s.
Atup
ene accptuing

hot valu d
Atats

Aap minae 2
C

Ca +bb)

oluriunab3

a4b)b"a

RE (a +bb)b"a eA (aubb)b"a

5 Stalt poove
ppeng ttuorinn o uguulan lomguag

dr uem L
(t agulor langua,
w eb, uhRe ol
hon;
Sbury kNIa (w1y2

n (Air Lwher a >en (1u,v,w


E nd ta-aza
(xuVu
fuvl-n, v#E omd Hi -o(%uv'w eL)))

Proo
M
s ugular thon M auuptud by Aeme DFSM
Let h EQ (el nto stale)
. z be amy abumg k ot lengr n gualn
Let

k
B thuoremn o eng Mourg foe kepalud lalu t atap
M mut bauone at leait once
Lome Loop
cawe 1 the name V ta jurt
We dam uP andaign
dubsburny
te douue M thoeugh a lsep

her us the pat e that ptucaods v amd 'w 4 he pa


e ha otl V &an
he lat hue Cendilens mult hod
We Mou that tach

avl =n a loofP
M must net kaves thog a loep

wntheut geuralung any ttabs


con riad n-I chanacts
a tatt
charaden urll take M to nrdided biyo
Bcut n
VEE
4 ume M
0(uv'wEL)
V an he
pumped
must be in
delvnmnuui c,

et
b
once
ane no leopt braunud by

amd be tulultiny dturg


E

sleps
ko pree languagp a nat rugeiler b Cenbadieue mthod

4
3
p
Cheese

dplul
pumpung
a strng
nto t uv'w
5 Cheose aValue honduh tnat uv'w
,
hromn
utou
tot

Bush
L
u ger mg
md ttlal>=n
tat uv lavlk=n
ii not nL
and V£E

G Ou aumpaen is uneng and hene he


guutnlamuagu

6.
u net

hathat
agular
e Language -1a b"Inzo} nat togeular

soln lap -1:s k be a ul 02pronuen n be n


Alals m FA
Za , b

Atep
Coniudu

Sunis 1zl n >n ,Aptit ito cLvw Auch


vl t as heun bleu
hat uvlcen and VFEie
aaaaaa a bbbbbb,
n

aaaaaaabbbbbb b
whwu Jul n-
luv n I+1 n

dccodry pumping ma au'w hilorg ko


L
ton l,2,3
ep3 l-0 the V dosnot appear de he no o% a's

ustit be ou than no e bs
uv'w L
he atliast one Aoung m L that huls to
the Corndiuens theowm
saluyy purrplng

40L :
Aa"6"|nzo
gulo
ta st,f are agulas krgnagur
u not

aguag
Hegulas

,thun prae t
Zheom:- L& PCegulasu
ave nugular Uhin l4 OC2 ,4 2,L*

Bree
enius
JE utn
urn at 446
P
ake kugular
Auh at
o thu

lglar ptessien
ugulan
4-MR)
wt haue
By detiniutuon Rugla aprsien
R+R2 A ugular pamen Cousprding to L,ut2

R Ra ragulen oprastio CovUsperrdiny to L L


KR sKegular eoprresse denolrg L,*
de the ogulan languog a cleted undur.

tnuer(i)Cencatnaloa)
Ktan () patemd

FDeyne Conteat teegammas (aCFG


Avu
e
gnammat
Cordet L
dehned
Grammar
c follous
alle caDlec pe 2
dehniben Conlias e
grammau C CFG)G a4tple
uadrupla ) denets hy G (V,T PS)
whure
o V A Aut Tuablu
Tis et o lumnal
PA At o rodutiens (auo calld rules)

0S s the Atart Aymbol

ek CFG 6ot4 tollouing lamguagu


(i)L-fw :lwlmad 3 -o etrtt Z-a
SE
S Taaa S
)A-fo'b' |i-j+1 L-a b :n>oy

b
jro}
S-aSb
aa S a
Git)A-w efa,bina Cw) -npCw)
1d6aSb asb] ne a ne o b (any odu)
b Sa
S aS aa Sb6Las8J asb S
S bSa bSa SaSSL LS-~ aSb]
SE bb Soa Ls>b Sa)
bhao S>EJ
S aasb asbb (€]
S aa babb
SSS bSo sa S SS
baSba [sasb]
baba sJ S aSb bSa [sTaSb\hsa
S abba l>E]

(w) o° Inzi
S Ob
n2 o S oSI
(v L-oM M ml ond n 2o03

AB

(vi) aB A

b|nz3y
OA

aaaA
aa
aa 3
A n3
n-4
Laaa
Laaaa
A
S

A
Oar
a Ab
n-5 aaa aab b
(VIU) Xo gintat kho
larguage o all palnduwme
ababa
S- aSa
S aSa
S bSb S a bsbalsbsb]
S-a a S a ba ba S |sabba
S b
[s

(Viti) L- {a b 1
n>o}

a bb S a Sbb

(ix) Zo generate
Aut o toungs oy O'sE 1s havma Cubsbing 000

S A D00 A
foo0o (110)
A 0A
A 0
A E
Cenudu he amman
q.Pehue nbigudy
EtE
fand the
the
Legtmost
stung td
Rghdmnost duvratien
tcdecd beur that the
ame pau
hammmcu
a
i
fo
Hon

ambiguuous

vs he timunala o
Avs out
olu4inmbron prous ot ohtaunimg abunm
omd e nen-kumminal em
he Attart dymbo
by
rera-l

applyeny
pechuetms)
dem At
a lallld
peduuctions
duwwalen
t may melude all

Lept neit oui vatien

d+
d
kn

cd
(d+ Eid
t EYE
+idElE
dxid [tid
[Ekt €

(d]

ytelc
td + id
id td

khqht mmest Buuation Parse u


td [E-> ta]
Cd

td
d id
xcd
leia]
xid
l a]
id

ald td +tdkcc

bmi hre ane we pati tus he


hon thi

dborg
luro casen
td tcd tid
duth

by nd
u
rmd n b e tases
grammal ambi guous
Ombtq uus K G(vT P,s) be a
Certext

4 cmdonly
e
rama
ghamman
hee
gamma
exust allecst
ambiguou
me Abung wET
on which
lavo mote dyront pane bur aists
b applpnq ulhw he aye-roit leruabon o legid-mo
dewaten
To whal i CNE ? obtan i Golleuing namman m ClF
SASBle
A aA S/a
Sbsla |bb
Oblaun ramman n CNE
S a Bla A
aB
alaA
b abd

You might also like