Toc Assignment
Toc Assignment
These
Hence
1t s Dot
ambguous gromm a4 .
too).
`tecaHon r more
doonQutomahg or
Com plez machfnay ke 4a bush
Toming mchne
Hee's the donguage
S- as
The res
gram me% ensUres tat stng wwe qeneate d,
duhene can be qny shhg conshng a! o's and b's:
u) defan bn ce | k3
A¬
B bBc
The any SAfrg genented by
grammqr ensoe hat for
three cs a tor te
notching
te
genesates te longage dose|>s? þrove
| )det d1 be a CeL nd (2 be a tequao
that n L2 Js CeL
C)
() Corsde a CPG G(vn,, P,s) doheeN={s,A?,o, ,
ras AA, A AAA)Aj Asl61, S=fs?.Corctns oRMD ond
LMD s the 110D00 1 ond olso nd banse ee.
Sanguage
Sol;- dettmact Deßvoon
CAMD)
The
Ü) S-
S-’ AA (S AA)
(i7) AAA ( AAA)
A> 1AA (A’1A)
(v) A 11A (A’ 1A)
|v) A’ 11o (A’d)
(vi) A 1l06 (A’0)
(vi) A’ 1)00 olA» 0)
vi?) A 1j o0004 (A’ 1)
So, he
lettrmact doivahon tor the sting 1400001 ;
S’ AA AAA 1AA 1J A’ 910 ’ 9100’ll000
’ 1900001
No,
Riqht mast Dervobon CemD)
The gfven Sting Ps ’ 1100004.
(i) s AA (S AA)
(9) 1AIA (A’ AAA)
( ) A 1AA(A AAA)
((v) A AAA (A AAA)
(V) A’ 4A 4AOA (Ao)
(vì)- A’ JA JA 00 (As0)
Vi) A JAJ000 (A ’ o)
(vir) A 1400001 (A 1).
'he Riahtmast deivo Hon er stong I10000 IE
9AA0o
S’ AA’ 1A1A’ 1AA4 ’ 9ABAA’ JAJAoA
PaRsE TREe
-A A
A’ XXY
B’ AZ.4’ in eN f.
Hgaîn
det'
T’ AB
Subshhte Value in 0
S TX
A’ wY
B AZ
T’ AB
W XX
Noo
Hence 9romma
CN.
lent
() ConsPde a gromma 6 and obtafn an
equfve
JDom mastcontoPhrg aynbd A zy=/xy"
Sol'
A-2ye|
Remove Z om qrom ma
A
Y-syyelYz
YoyYy|X.
( ) Convert te
6s
follung qromynas oto GN. he qromnaH
delthed qs Ge(A1,A2, A33,o, bj,, A1 ), ohete P
Consists o! As ’ A2 A3, A2 A3 As]b, A3AJ A2 l9
1. Ifrnate
Ret ReeuYe'on
A1A2 A3
A2 A3 A4 |b
A3 ALA2|9
A J’A2 A3
A2> bA3 AAR
A3a A422
2.
deg+ qaclorirg
A1 A2 A3
A2 blaAsR
A3’a bA2
R E
3. Coyeyt to toN:
A1 bx 4y
A2 b laAS 2
A3 alb A22
X’ A3
Y ’AA3.
3
Mealg nhut asynchronous
4. Exorm ble :
ol ol 2
ol1
Moose
1. Gutout deben de on
an resent shote A & Brdeben dent
On nbot.
2
4 Exom ble :
Qnd brove he adens theorem whot
appcohon:
SoL: X AX+8 X= AR
A’ *logne Closure
The esprecsi'on X
hesrem Stotes tat we hoe Heguha
yhe eguabon XAx+ B, we con sieonte x r
terms ! Aand Busing He conco tenahon opetohor and
he kleene closure ().
ohexatr
Pove'
and Q Regula ex þreac'ons.
P does not dontan null 3hng RÕ0+ RP has Unhue
Qolubon hot is p=gp*
= Q+ 9P+ RPP
Re g p*
Hen ce brovec