lo
Sy ABla
A> aab
BAC
Souk-y:
Chomsky Nowmed fourm Conf):
A Context free Frammoc is Sais
Phe prvclucHens ane of phe Form APACE mae
When A,B,C ane inv
Ow In TT
Conversion of given CES fo cNF!
oer poieeny ae ae
SABA
A> aab
| BAC
|
ah Ha above grammes, 52 Coed
b> AB INCNE
Bor Ac wm WF
Let AIPA yen SABA
Suan V
| Q..DeFfine Chomsky
{s322¢8154
Normal foomCc nF): Atse conver}
The Fonawing cpa te CNFP
4o be in CNE TF oy
Bie A> MA,
BAC
lor Ar AA Shen $s AB]a
A> ALBEC th CNF
R>AC
CAL He prroctuetios 0 F CNF OOS
S—> ABO
A> Ar’)
Qg>AC
Ao
by b
Ba AA BLM: PS)
V=dS,A, &, Av, Bi, Ar§
Tela bs
© scanned with OKEN Scanner
\
|
|
|» Begin INith the qoamm
s-safa] babJé
A->clo
p> clb
C-cpeE lt
D—->aA]Blob
WS Eliminafe & - forthe os .
fe ohewete any] Umit poovcL iain 5s jy Hae veothing
secre P ; ;
iS Eliminate ony Useless Symbols in the wefutting
frammevs ’
Seiution:-
» Eliminaten of €- pooauietions : ae
Im the given grammar coe ond Boe cs
ond $5 hort BCS Nutable \enewles
Ss anal bhb| b>
—>p° .
ae | DE
D— Alab
. ee
ii Efiminatin of Coat ee me an possi
Tn He coo 4A
production ote
cy aha|bBb|bb
Aa
B—)b
C9 che | DE
pm aAlab
© scanned with OKEN ScannerSE Nani neuen of Lbetess gyn bels
Dh Ha cibare Grammer ~C eloernof frroturec
deremy nets 2. C 1S Wtettas
JHerer frroolueHn are
S-panal sab [bb
Ama
Rob
Cee poe
b> a|abo
Th fyis proctuutin 1s Not reached aso)
Sfowt Stake Haren paleo Ubcrd)
poroctuLotien ane
S— aha | bob] bb
Ka
R—b
»
© scanned with OKEN Scanner: a. Design a PDA tr the Tollowing language : Le iw)
WEL a b3T3, Also domw the chemo cletq rem to
+ CHshve'led PDA. Worile the meterlaneous CLD)
desea plion -for he shing 'abbbba:
Sols L= Laba aabbpa, bb, abba, bab... F
| 8: & Cqs,,2) = Cqo, az)
& (4s, b 2) = (qo, bz)
§ (46,0,4),= 40-44)
§ (40, bay = (40, bb)
| & (qa'ba) = Cqaba)
| §Cqe, ab) = (Go, ab)
| § Coy aa) = Gy, €)
SCav bb) = qr, 8)
& C462 > 2,2)
2) 42 Jaz bole
o bz] bz @& aale
aa eé €,z)z
bb) €
Balaa
bby bb
Ablab
bal br
Instertaneous Desexiplian (ID) for Sting mabbbba!:
C Fo, abbbba, 2) |-C %o,tbbba, az)
KC C4, bbba, ba 2)
|
| KK Cqo, bba, bbaz)
K Cq) ,a, bbaz)
1c Cq €, baz)
KC C qa, €& az)
© scanned with OKEN ScannerConvert the following 9 CFG to PDA that accepls
the same language by empty 6 ack.
Es E+E /EXxE/€)/T
—> Tal] Tb} 10 /n falb
Given,
Fo EE/ExE/©)/ +
I> Ta/16/ 40 /1t}alb
S: $a €,9 = Che EFF)
ie a) (qe Ek €)
§ (Jo, & ©
= Gs ©)
sq § & = Cyn D
o~
D
oO
2
| 5C4s, €,T) = Ce Ia
§C4o €& I) = Ch, TD)
& C4. € DT) = (qo 1d
$C we TD = ads)
& Gs €, LT) = Gs, 4)
& (qo, & TD) = Ga b)
& C4, 4, 9) C4e, &)
| S C4ob8) = Cqa &)
| § GaGcod = Go €)
§ Cw IY = Ga €)
§ (qn 1H = Ga
§ C46, 7k) = Go-wye)
€ (qn 0) = Cqa
$ C4 Vb) = Cqo
For non - terminal, Foe Tormmead
An &
§ Ch, 6A) = CG) S@,T ,t) =e)
© scanned with OKEN Scanneriva Shawkans Vor peeve
b Shivas 7c SIERO
@ Show that the language L={xEfay*l la
[Oo isa perfect square} 1S not context- free.
Statement: Let 'L’ be a context fe languagy,
| then there exists @ constant n C pam ing lemma,
| Length), ach that for sbing ‘W' “m
L
Wh bk \Wl >n, we am watln a6
| We uvxye
Such that
| 1) lvay) sm
| WY) tvy) 2p Certs vor y ‘a rean—erply)
| (in) ¥ pi2e the Sng uviayiz wom L
| Cc Shing WMA “IH 4 lemguage
atti poping Y amd y).
| Gw L= XE CaNF]p xl 4 perfect
| en: Ls D¥ [Jacl va Agiion J
| Le oon, 1616, NG, - }
i Step:
LeL'L’ 16 the context free | cepted
‘by the PDA contains the vr abe °
let sting = 000 }I)o0) EL
Step2: Note that length of x, Ix] = IT 2n
oe NEF
and now we can split j
such that ae : wt wg?
Gi) I Vatyl
Jas
and b pop
Aggic2: road a> 4 push
& Cz, a, 2)
S$ C48, 44)
& (4b 9
& (4, 44)
§ (4, & 2)
= @e
= @y ©)
= (qr, ©)
= G, ©)
ae bale
aafaag
Cqo, 24 20)
gaa)
Koa type of PbdA ‘that has unig
cach combmaertion of mm put aymbel,
2, FF
mC F141, Va) g 4 by { 2,43, 5
ee e))
© scanned with OKEN Scanner@ scanned with OKEN Scanner
(wp thy (0 Fb) &
© Cgize Shp + (2 Fb) 8
Cyzt Fb) =(27"6) &
gihirhs 7h ib) ¢
(nz! ®h) + (z'tb)
(az) = (2'%) 8
(ath ob) (hb) &
(ain 19%) =¢x/8%) @
(910 '%b) = (o/&4)
Cath’ ®h 7 = (hr 84) @
(979%) = (gt) ¢
(9'2/%b) + (91h )8
(a9 he) = (g ELP
Cah &) ='b)8
(greb)=(o bye
(g'x'by=(v'abpg
29g9g eI
hve wo pod ua reco bryeng. hg
spor sargun rg awl) by cw) 9 vu? Fw]
phen ley, 40f— PBIPOL baseny v bed
Pogyrey,} serebuss nung Pair “4
52 Sam miggml be
C2EZ Ahead Gy |
COG ez kannyg
(ze ZAAxx)4
C2z"%KAxK)4
es
(2zAk PAX JA
CZzAa x®*4y 74
CZ2zhh xx 7A
CZZAEAR KXDF
Czz®@% KAKA
(ob ehhax)
(OZ AK 4K) 4
(929 b4, 4x7) 4
(ezgh wo %%) A
cozghex%y) 4
(2zgh vito x ) 4
CIZGA 40x) 4
(229% hex) 4
(22% gh vn) 4
2 94% Aex) 4
(229 9'b v X) 4
(29 99 wit x.y
(22ggve lob)
22 99°
~~
MZ) z. vol oS oe
rely In ta? “
lA [A +
wglg wale
g)- “Y ) inh
C) C4) an
ae Vv, Aly
“ z) q ¢ Asx 7 dq
b)
Ulan esdanury “Hy
suo
“Suia\Qoad
dN anos OF |jocod ur syyod Uorpoyndwuer \\0 Bursoydxo
‘Fyre sup nus sopoys aplizimus opt UouSued wa
auyroy bUANL OVS wala ~ YON Ac!
“ypduy
ay Yo squtod judsayppi[? po suorpor2da snoaud}jnwie
buyqoue « speay afdipmuy ypto ado, abus Vv
SUDO DUAL PEaH- IN °%
dutssod 3
buspos 4! | suey oad 204 surypsg bye 4M! EFA BOD -250)
“aUyroH! Bunny odo -ajburs
cuoyeindiug, sajsu} Gujqjoua “suas
° OL parodwo)
DYE {UApIP A}. 999220 [a\jorod smoyo gc :Ayyouospuns
poo ajim| pear umo oH 4H
sey aula Cun, osu : uarpliaagee
+ BUIYIOW Cina, adap \Pn
yoo ‘Gade. ajdiyynus
“ SOUIYDOYA
Purr te S{uonwen uyordxo ‘ wesbore youu 0 yam (¥
Jambrsy
bh
Za
@ scanned with OKEN Scanner“Tay
5. Alternat nq q_Hachine
A Nexiant the non- olslerministic machine with
AND & OR States, wseful for Complexity theory &
charadteriaing Claages like AP.
hs '
© scanned with OKEN Scannerapes eho, = marl
ayes ada 2 atrmvl,
@ scanned with OKEN Scanner
aE? HAZ oe
(2 s)he abel =A
-o udhow warn cnermoaL 7 3
Whg2ertbhy parole lag 2 >
Tra poaboowe 74 ob oes yas acy = G
pee a7 rbokuoy - Wo
Carp b els
“beguigiy] 2 Woe Pep & pa mame Cue tye
weet, remay (C
once
of fporapyenay a or EIS
we antes = ae spray, 90 sy AL mr ty.
“Grets ee
ano pron ~yR! WrBuol m~p ubs
“To oa "by bebe we mhovo (at) aL ot yr
spaealpo wo sane Rup fy Pie yp robe y-
eae) Cage ug hinitetdoaaly- abenbry q
rare =, __ reanov\A bm Q
oboe ¥ banigoclasy- Pelee Uy eat
‘Youre Cure
qy wRarp joro banstoidorayp aBonlomoy wits @edampvS pau a
mpm bar Hay:
MH onp 2 etO
| cae fuen obol
| waged, ame by seaeun «
| Ime fern Le lnwBreojo \s sdaty ae
Beabieg wats mip de binemy mele «
“HBAS footwera-
22h cotopedmen {a ptm forma & ropmagls
Deg, aL by, rbelmonpl-
amty tin us aiken Wo lg? He | aolugs
penal APY an he Roar to koe AMee\yy Koso es
Rasrbuo MH by You. Ct
AS
toy] [row +74 AeQaro| ™m Mtg Reuts ne ar
44 He. Bora) o nrdeny wo mpro Gyenk b
2ambaray, th tdr2a\p- ©
ned with OKEN Scanner
© scan‘va te
[oquihs 4x>4s pout mr 29 92 DUMsre wm 427 7 days
“vou Ta apats ygojs mp aq % awmsso v1 477 5 dats
[2-21 ound aay
{xa} Uop to Four, Me auros St YO le gaqoud\y +) days
“Udd yay ADUILLLD DA fenUED OF s dats
4 te yas m= 4
. Ui 49 Spots Qusidaro%
ere joquits Hots mL = 02
aps pos = 9b
‘uoIDUNy VoYpIwsUoAp WL = F
“paqoydjo pws aay y=
sjoquais anduy bo $25 auy =z
apes ps atl r void
“sbuyuo7 buremoyog @Mr aNey SpEvedwo> 2UL
Gat G's 46340) =d vad
S= apps HOS
ose ¥
vyes—S
id
fare} = 2
Bust =AS= Ganj
Rpoaay> Ss awunesd uanh au “sup
“ALS
hyde fy abonbuw, euros aut sya four YoY bs
2 |ga|sos— ¥
v¥e <—S Arwwob ayy Nonues
-antg La wiog OE uw
{
|
|
|
|
|
|
|
@ scanned with OKEN Scannerfe = 4s ops Burydaoo ML +1 dag
bv's oz} StF S9pn\uy yoors ayy = a dais
Ubon} =D 25 dats
Gee) = @2'9%B) s
T
@b)< Cv'ee) g
Git) = W'gney g
Gie)= (yee) 3
Ged = Cs'ee'b) 8
CSB): CII s
“YAd UG sdolpowsuns, pus vidas
@ scanned with OKEN Scannerojsar | g94 s— 8
e|gae s—
vye| aaye<— $s
6! vowwrosB 2uL
“ays AAAS
gous Ssapsn Sp 0S~ 2
‘Wort jooyer 40U 1 2
ANOURY -&
“uoysnpord 589) 2K
oo?
bane |9aF —3
e|cae <—¥y
wel gave —-G
sptwuysd uantb amp ut os enpard piun YE anowa &
“uoyanpord 2 ou Sy Proulx
AND OF apuuarosd uantB Mr —-ranuoy
“wide JN Ul 2
jon owurod aye fad sy ob romuros my fuanior OL,
Git) = Cz'9%)S ch dats
-poquahs profs [PLEME 24h 24 OZ +97 Ee days
| rapes Hops aut 2G %b, 427 5 days
fyoyeZ~
srounuresB 224 LX24U09 want
@ scanned with OKEN Scanner
la spourma, ayt So 2uips Sf Usidl te yaqoudyy :4 days =]S
es 95
yjaay — 9
© |Aa0 — y
vye|aaye <— >
pos Adu he abonbuny aus ayy
220 4204b VOL OF JowunosD Euwmoytoy, Bu, aanuo:SEE SoCECS] _ yga%p ouysy
BEISI CES) -Q Ure!
Se ’ 4°
SITTLS | hppa any Dusryuioy
otisreasst “WS [Pd
tha momar
{*el =y
fay ‘sted sa
PLS 'y' oy} Yo
Gi) = G9 Ws
Gre) = bor ‘DS
Gab) = Gon)
Ga) = @'4"D)s
OMe) FY whys
@a‘'y) = (vl v'b)s
vat) =(ste'bs
Gavi) = Cs'e'b) g
Gre) > G29") ¢
aw SuOLPWSuvr DA
“yng Ue Sh
Cawtauph sup au 6472S" V uareg Mr la ee
6
@ scanned with OKEN Scanner