Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
349 views
Unit-3 Handwritten Notes Part-2 Tafl
Uploaded by
Satyam Srivastava
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Unit-3 Handwritten Notes Part-2 tafl For Later
Download
Save
Save Unit-3 Handwritten Notes Part-2 tafl For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
349 views
Unit-3 Handwritten Notes Part-2 Tafl
Uploaded by
Satyam Srivastava
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Unit-3 Handwritten Notes Part-2 tafl For Later
Carousel Previous
Carousel Next
Save
Save Unit-3 Handwritten Notes Part-2 tafl For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 26
Search
Fullscreen
A Guvert the grammer S7AB|a8 , Az aal] eR bbA one CNFE Sl © elummak. Null productions. Nullable get = £93 $7 rg[een A =aab @ = bpAlbb ® elrmmate ant production. ey AwldbalbelaB fA-zaab 8-> bbAl bb @ Sy Alle, A[C2Ca [Cr 8 A? CC By B72 C24 Ales Ce cia Cob Neal fed) Cue S—7 AB SAB | $2023, Ca7QA Pe2aan | [e3aG | $38 $268 S—90y Cn. fo—cmemmcmre| Lon AECL, J APCICY Cu FC iey 89044 | 830, ~~Gaeigach Noval form (@Qne)— A CPA @ IS In QNF tp every preduction ts of the Pam aK a thre Qe € Ke v* Ce be nr’) amd 8—>n ts m @ IP NE LCG), when a € LG) we assume that & des not appear on the R.H.S of any producton. £2 8-yans/e A 60 Bb is im Que. C9 lemma” ot A= CV, 0.9) be a CPG. bet the set oP A productos be AVAL [AK |--- [AG |B, [Bol.--182 CB? ole not start with A), heb be a mew variable. Let G =(VUZ3,2,F,S) where Pts defined a4 follows. (iy The. get of A predluctions are A> Bi(Bo|--- [Bs A> Bz [Bsz[--» (BsZ Ui) The set of z productions ae ZG Zz]... [kz Za kildafece fy, (ii) The precluction for the other Variable are gomeasin P. Then Gy (3 & CFG amd Is eguvalent- to GB, rsa Abbly the Above lemma to A-7aRD/6d8 pale A >aglep” a A->4b0/( 628 /e AW? 2B9=/b0B2 (eZ. z>Bz/9z zhi AugConversion to ANP —> Given CPG mugt be IN oN &! Gnstuct a feammary IN GNP eguvalert to S-yAAla A28b Sol” the. gen Prammar is im enp, ® Rereme the vasiable as g-—y Aj A=zAL New the grammar is Ai 2 As As {4 Aa—2 AcAr(b. SB @ APAsAgla are im segiuvedl Perm (fat Ag such ee 6 Aa7b ts also vegunedl fom. So use fake As—2 Arh, Abbly the lemma to Aaah, ( Reblace Ar wath all ts ~ practuctions ’) Ar—> fafa [ary Now Aa prodyetunte a2 As? ‘b(Ashem (a Ar af Fh RRR A Ag? ahi & het ahZelbZa Za? AaAr Za AshiZg Now As peeductons are Ar precluctios - => New Take Ai—> sha la Petam Avaand ably lemma to Ai As As (rebhce As by th producing) ‘ A199 Aifla|bAa|aAizs fa[b% Ag and Ar 2a = Mow Take Ze predluctons. Zaha [Ariza (Replace As cotth ds poealucttont’) 224A 4] 6A, [ahzrn[bz0h 29 P4Muf2a| bALZ=[aA1ZeA1Zg | bz2 Zs AL i Fn QL, 243, £488,881) fg AR Conver the goammar to NE S— fb ABs /b B> sala gol Rename $ a8 Ar A as Ax Bas AZ The productions Qrwe Ar hah Aa —7 Ash, |b Ax > ArAs [@ Now the prealuctton of Ar € Im vegurrea fam 1@ [Ry —? As Ag isin ane Also [As—> Az Ai lb ts ale. 1m ane w 2Cmsider — Ag—> A Nala le. Aa As Agha (7! Ai? Aes) ” As—y Ag At AsAa| bAeAa (0 Aa Ashi[6+) fo noi Ay preductons are given by Aa—7 Ag Ar fabs [bAg Aa anal , A a 3-78 | Nahe After removing left vecuxsion, Ag froalueting are A3—> bAsAs [a | tas Bae : Ag aZs] bAaipZz [Oe GNF Za-7 AiAgha Novo consicler Ag prealuctuns Za AVA3 As Z3 [az 6] is im GME As—? As A Ag> bAaha Ay [aa,[azsAu | bAaksZ3 A; Go Peal Ap productions are. Aa—zb [Av AM [a [423 Ar [bAaAa Zs Ay Now conser Ay productions Ai? ha AB af Pua bea ate fis [2 Bi avzaA fb Rofl Zof Ag ” GNP | Now cooler Ze, poodlucturs. Za 7A Raha. (A AgheZ3, Za —> bAsAs As | PAghstifalehe b As Aghazs gem Za —> bAahaAiAAsha|bAs Ashish ar23 23> Ail fafs [aA Aa fs hez3 GNF ta QZ, AiAsAsha| az h, AsAshaz3 Za -> bAshs¥3AiAzhahs | bAshaZ3 A AahsAxZ3®3 Cmyoat the follewime Q to equivalent @NE 3-9 xA|B8 8-2 b[88 xb | e0F AV4 Sol — Rename varables as emi A> Aaa [Aafly a-348 Au—? b[AgAy } BQ Aq fav ook Par Au? Ay Ky ol uh tpelated e NP Xz is stamp of 0 or ‘mne variables, Au—7 Ar Ay fu AatisAu [Ay Aa he lb a Ar As As | Auay A Replace Aa wth & | aia itt | Az be fu Autihul & Ag ce Considle A> he he Arf fle amd elrmmate (ett vecusegiyn7, mii) afin Z-7 Ay hal Ay Aa Z. tee “elb fab 334 i Ai sities [bRcAezAu [bz Ay | bay Resurt | Z—> BAe Auf bs faz [bots Ay bases 2] 1y putt bz Au/b2 Mz | [bau] bay z. Au bAs hu] bAshaz/bz/b As—2b As—4Qk Convert to follecs imp to ANE 8> AR A Bs[b B7sAl® some at @.3 BS Convert the Pollocomp to ANE Evert (tr TR TeFIA FF (e)/a Sol" elimmate unit brodluctions evretr[tee/cedla T> Te lce) [a P-9 (e/a Now convert tha to ene, mboduac new vartabley. e-ear(TBF| Ceca Ty rerlcec(a F-Cecla A+ b> & Cy Now sename variables aa fr a— Ag F-Ay TAs E—Ae6 Pol -Guie Now.w x AN ep ~ Ie A E et “NS i e+e Be egy wl | IS reorRS \ roof vl e+€ val g ee VA uol ual rot Lou | +e ud dol dol dol Ty b Se thas Lomgusye 19 onmbgloes. Gn oder 0 define Recoctbiwnly , 8 wed vecnrsion pibblence , Use used levele 8 e2ett/r Tare le £2GtF 14 aud eh2 bese > bexb o> bexb| exp and bes —> | not bexb [Tee {Flse Leff boef~ oR. bexp > bexp OF Fle Lod Pah ove al4 13 Not & [True | Palte hs Eetd [yoSe SRR ER Es . (RB [afbje £-2e4+7/7 T> TE . F2e*[albic try a> Agel 8(B ; i £ @ ade operator C2 0@D 2 Dol I» we @>0 ¢ L#L’@ ED E*F [Pe /e Po e-F quo, ee tat = 1s olefrmedl ap PE aye cel 94 ayht ecole,RECERZ(M — PD left vecessun & Right vect%flm | \ A AX|B Araale A & 4 | — 40 7” Ar hf ey , B * | Lat A | “A oe \ = L\- PO A1@ Téb cloton basger com not Work poopeshy. istth left decertn. So lept sectssiemr need 4 be semoved (tee oe vel 630 enettir — A px B 9 Fe | Non lebt vectsive goarmmeg, piyel+re @® clinmete LePE vece.sgim gga sels , g)—y é [osiss 6 eo) fx v= |} femove lef} secesitm L—us/s L-+ysv ane ry A aft voe/se =eee ee ee ONS a | C AA [AXs/ any! [8.1% [8 [8 “a A> ByA'| B28" | BoA .-- > these leva’. Le Removing lePt Pactewmy —> A-DKB, (Bp [oC By Non aetermmishe goamnes AzekA) L— pedermrstic goemmah. A> Bil&s [By left Petoort: 40 [eeatetes le) Eb SONS [ep erde ME ES eS a 6-7 yee (a A Left Pactorrg does not~vemeve “ees 7 1m bigulty te “ ONT feouse te thoent repels of lazeyg,Remove. Prabyguaty Poem G& preselere] Ce) | Tab So e-yett(T Ta THF le F4(e)lalb a q Q@ Remove Ambiguity Prom A. | 69 ulas[uCases|2- gp up & then S Cb [upc then § else S$ S01" la sl” Te ulm Lob m5 ule mel] upc Then iP & Hen $1 ebeoSg\ yp ule fut Me i Cb ( | g3% gauces|T + ieaveF [F Foe Cb Yhat the CPG given below generates all etormps of falanceol © show pasenthesis ts ambiguous. Give ain equaled unambiguous @ g-yss (sé gol A 5 3 8 re => sost| - | A 8 eh iy a > THEO IN £6433 : é > @ AN bam biguoes bk ‘ ; D Gremmas ie éOs. Me On & UnambiZ-Loug g CFR fer made. exebversiony ( oferatos ! py e , a | tana mn @ a,b,2,¢ ae be possible fo generate boackefs couth yore § rl os tP show AN © Gere dller(-P) Prem yar. gronme 1‘ Poet + as T2 reele/e[e a Fr Fae la 4 phe) Ze ; A> 4] Jo [dle le (Ce) Fr nh S 7 AS fit er bk | b A 4 oy Tf if rd [ H > ! Qa NT aT One?) NT Ae NT NT 7 EQ ett |T | To THe lF ges one > TCA 6-2 Ce) |e agg! J pe ee a §Pumping Lemma Por CFL —Y Theo Pambiay Lerma * . : Let L be a Cmlecct Pree bngusge, Them te com Prd a medural numbern such thet (D vey 2 el with [2[>,n cam be wotten a4 UVisag Por some sfongs Wj, W,0C)4 ; (9) (veel 71 (3) [vworl
an (b8/ Bb By subsrtedton there @—5 aAB| bas 1bB @NP { A ah [bBlb Bb ~~ Seas se “algarttmes A= 3) a cee to delemme te flewoms- @ Empty 21s hee ony tora im L, Question of emblmess ® Pmite 1s b Pmide , Question en @® Anfmde ws + imPrade , Ouerton inbruress @® Membershih » Per a given etary 0, (8 © eELP Membershp. k Besk Cmbtness Jot CPG G= (Vn,2,0,8.) gnersdes b . we. convest it in CME amal let Ye new gramme S, 5 Gus (Maj Z,29.) such thet +061) = Ll@)—é2) amgcle. $ bredluetton of the. goommer , ( stebL 9 8-4, where a é 2 , then q eblGi) So qel. So L ts mon empty eloe goto seb 2 mit ric\ - replace all woutobles y pessible termma® . Now if 8*>419s = © behee @.03. Om, e4 , ¥ LG) ts ron empty otherwise £9 finders & mbes lef G= (Nn, Z,P8) bea CPA, let amverd tt to cue oma the mews goammes be. Gu= Vn 2,23) gach thet Hon= Ll@a)—fe3 toe chars a clveoted goabh wth a yertece For each waduahle. fy edge. Poem Nestea: A to verdace B (s tow (FP we hae a productton ule: A2Ba a A—7aB where A,B 2 Vn, anol ACE. ise clefne. Rane of avasiablen to be the length oP the. tongest path in goaph ath begming ot A. Absence of cycle in graph implies that vamk is Arate FH cycle is Kere vant Ug infrute- 9# also ehoves that a- * recwseatve rules then lompuaye generated Us intirte, else mule. Ch Cosel $58 (A A8el9 By celb 4a @ © Chece. the fnutenen “5 Pome (8) 22. (=) | Bal fincte | —— es)Membeach Ccve flys) OVW; let @=(Vn,€,09) be a cha fox CPt 4" be convert it to ONE amol let new Qt —= Cn A,B) ‘ Ua) = Ma) $63 bet Vi LA hp And, £801%..Am3 onal wo (8 4 edving over. Z . Conswoler all substomys of to. 96 (9g ts a cubetoory of 69 ama Aa >t, fy te calledd Ye preduamp varucble of Wy, There tony | be other vasuables also which precluse Lg , 192 Make sett | Buch wastables . Length. of Substring Substoing breclucing vasa be = Qu, Ma... , Au, Ag. = 6 es | thee epee Ap, fg -— ain A tAx09 ... Few co | Bow anylen te Pmal ehenpees subsbiny of -dength lis) oma lst ef poeducing yoouble. 96 slesterg symbol Sis thoae. wel,yee ben YO gaEae bevehip (eRe Ago) —> dinen a Pd ariel aehoypl im gome. alphabet, ise oom gleciole whethete a not 9 Us m LG). PreoP_by CRE Algo Ae ete tama concent by Teh Cooke amal Subsequently also published dy Tadao Kasami amd Danel H. Younger. - SE SAB t= Qabbh A-BBla orePoe CVE Ale MO Te ee Ce oo me i one |ac ' a boas we |b alee BBR ; aelael? 3 ley bY joloopape ee Bors A et ia closet umcler following operation, 1 -Unton - 2. Concatencdion 8 Kleene StAX 4, Reversal. -3 cPL ts mot clesed under mderection 5 cpl ts not closed wnoler aomplimentation. FL witha RL Isa crFLl. = the wiesectin of al chest. 9P Lr and ba are CPL, then Lila 6% cPL Peok Let Lr bea CPL generaitcal ty CFA a= CWT PS) be a afl generated by CPA Ge 2A, &, fi82) ama Ga into one P Lr amol +2 Stmilarly Le we eam cambme There to goannas Gr grammar. CG thoct will generate the union ol — A new Symbol 8 6 added to & —— Tho nets poe dluctions gi [$2 The Ga( wor 0853 TUT, PUR U ES*SI83 , S Sem generede a etomy of terminals ether by selecting aos symbol $1 Of Gro % oF Ga- Thug & Com generede a atamg Pron Lt or Prom Lo. J b= L (an VE C2) -theows CPL ts Closed under. aneedenatin gp bi ama ba ove crL then So t@ Lily pest bbe cP dlewel by @=C\,T,8,8,) bo wn cee OY Ga= (Ms, 8,82) = ) UN s Lat = (i083, TUTE, A URUSS25.53 2] », S$ SiS Is added ,[The gtaxt Symbol 3 toll! Penesaie & SNe EH 19 the Porm, L9= U9, la: ee | ; lshere. 9) el; | ‘ ise La, | O. bebe, | Theor Kleene Stare | 9 Lis a cel. then L* ts alo a CPL | Beck pot 1 be a epe with Gio (,7,,F,S:) . A new lomptoge L 1s conttouctel Pram bi peohich ts Ly he L=p > A mew symbol 8 1s added to G& oP L —2 Tho mew praductions ove. actbled 8>S38; Boe * preduction $9 83 [e. will generede.a shtny Us ‘ f e where WEL, G Com be usttlen OQ! G= OM, TR USSs8 23, $) CPL le mot eclogecl undler Gurlersectoyr | “thes cpu's me not clesecl under ndeseotion. | feeek Let us eonsidex b= gaye [nm7o ie tio cel Li amd La ‘ ba= Za Per (mm7yo3 Ly is a CPL with @ S5AB Pe en A-sanble Bo cBlepes RE ee Bry be ign YU ley SRB As aale. R—>bBele A sting im Li contams equal no of 4 andl 6. * A atong im Le aondans ron ab Oma * Ash to 2 Ly Nls contams equal no of ates ig equal no of band ec Thos Li Aly =P ABAMnr,0.3 . Prem bumbiry Lemma. Por CPL ya stomg OP Pam Ab"e” com not be Poem CPE, Hence Reveal. “Theor tte set of CPL & mot closed under aompblrmentaten. frook this com be froveol by con tpealiction , £ Jot ta oscume Hof CPL (8 doseel Under amplientosten, “pe iP Ly ts CPL 8 18 Ly f 9@ ds tg cre cos Now Lr fla com be wertien a2 Leg QF the Pormily of CPL is eloseal umdler pet cutting abeve excfoession wotildl be a CPL Par xt ee La. ad a amdaaclic coith cade fave, goat ahouomne the mterssection of too CPL ts, not necerganiy context bee . Hence Agsumpston toas nang , cpus are wot clogeo! males. comblmentatin,
You might also like
Daa Lab Manual
PDF
No ratings yet
Daa Lab Manual
60 pages
Unit 3 TAFL
PDF
100% (1)
Unit 3 TAFL
75 pages
Coa Unit - 1 Important Questions
PDF
No ratings yet
Coa Unit - 1 Important Questions
10 pages
Comprehensive FLAT Question Bank
PDF
100% (1)
Comprehensive FLAT Question Bank
13 pages
Compiler Design Lab Manual
PDF
No ratings yet
Compiler Design Lab Manual
36 pages
Data Structures Design - AD3251 - Important Questions with Answer - Unit 1 - Abstract Data Types
PDF
No ratings yet
Data Structures Design - AD3251 - Important Questions with Answer - Unit 1 - Abstract Data Types
15 pages
Compiler Design Programs
PDF
No ratings yet
Compiler Design Programs
59 pages
Ad3251 Unit 2 Notes Edu Engg
PDF
No ratings yet
Ad3251 Unit 2 Notes Edu Engg
35 pages
Python Programming Quantum
PDF
No ratings yet
Python Programming Quantum
79 pages
Python Ass 2
PDF
No ratings yet
Python Ass 2
7 pages
Problem Solving and Python Programming - GE3151 - Important Questions With 2 Marks Answer - Unit 2 - Data Types Expressions Statements
PDF
No ratings yet
Problem Solving and Python Programming - GE3151 - Important Questions With 2 Marks Answer - Unit 2 - Data Types Expressions Statements
30 pages
Javalab File
PDF
No ratings yet
Javalab File
167 pages
JNTUH FLAT Study Material
PDF
No ratings yet
JNTUH FLAT Study Material
211 pages
Ad3311 - Artificial Intelligence Lab Manual
PDF
No ratings yet
Ad3311 - Artificial Intelligence Lab Manual
30 pages
Jug Problem Python Code DFS Implementation
PDF
No ratings yet
Jug Problem Python Code DFS Implementation
7 pages
Artificial Intelligence Lab Manual: Python
PDF
No ratings yet
Artificial Intelligence Lab Manual: Python
15 pages
ML Unit-3 ppt
PDF
No ratings yet
ML Unit-3 ppt
92 pages
Chapter 9 Undecidability
PDF
100% (1)
Chapter 9 Undecidability
48 pages
Ma3354 DM Unit 4 Part A, B Question and Answer
PDF
No ratings yet
Ma3354 DM Unit 4 Part A, B Question and Answer
8 pages
Classical IPC Problems
PDF
No ratings yet
Classical IPC Problems
15 pages
DCDR Question Bank
PDF
No ratings yet
DCDR Question Bank
4 pages
Institute of Technology & Science, Mohan Nagar, Ghaziabad Compiler Design Model Questions Unit-1
PDF
No ratings yet
Institute of Technology & Science, Mohan Nagar, Ghaziabad Compiler Design Model Questions Unit-1
4 pages
Data Mining and Business Intelligence Lab Manual
PDF
No ratings yet
Data Mining and Business Intelligence Lab Manual
52 pages
DFA To Regular Expressions
PDF
No ratings yet
DFA To Regular Expressions
41 pages
Mca 1 Sem Problem Solving Using C Kca102 2022
PDF
No ratings yet
Mca 1 Sem Problem Solving Using C Kca102 2022
2 pages
Ge3151 16marks QB
PDF
No ratings yet
Ge3151 16marks QB
36 pages
Lecture Zero In108-Updated
PDF
No ratings yet
Lecture Zero In108-Updated
33 pages
DSA Preparation Syllabus - PrepInsta Prime
PDF
No ratings yet
DSA Preparation Syllabus - PrepInsta Prime
1 page
DBMS Handwritten Notes-1
PDF
No ratings yet
DBMS Handwritten Notes-1
204 pages
M6 QA Univ Sol
PDF
No ratings yet
M6 QA Univ Sol
19 pages
Cs2203 Object Oriented Programming Iiird Sem Question Bank Unit - I Part - A (2 Marks)
PDF
No ratings yet
Cs2203 Object Oriented Programming Iiird Sem Question Bank Unit - I Part - A (2 Marks)
6 pages
@vtucode - in Previous Year Merged Paper Solution Automata
PDF
No ratings yet
@vtucode - in Previous Year Merged Paper Solution Automata
42 pages
Engineering Digest DSA Sheet
PDF
No ratings yet
Engineering Digest DSA Sheet
8 pages
Cs8251 Lesson Plan
PDF
50% (2)
Cs8251 Lesson Plan
2 pages
Numpy - Tutorial - Ipynb - Colaboratory
PDF
No ratings yet
Numpy - Tutorial - Ipynb - Colaboratory
9 pages
Variables, Expressions, and Statements: Python For Informatics: Exploring Information
PDF
No ratings yet
Variables, Expressions, and Statements: Python For Informatics: Exploring Information
33 pages
Postfix Evaluation Using Stack
PDF
No ratings yet
Postfix Evaluation Using Stack
2 pages
10 M1 C2 SIC XE Assembler SolvedProblem
PDF
No ratings yet
10 M1 C2 SIC XE Assembler SolvedProblem
392 pages
Java Lab MCA R20 Programs
PDF
No ratings yet
Java Lab MCA R20 Programs
17 pages
Path, Path Products and Regular Expressions - G9
PDF
No ratings yet
Path, Path Products and Regular Expressions - G9
37 pages
IP Full Notes
PDF
No ratings yet
IP Full Notes
652 pages
DAA Unit 4 Notes
PDF
No ratings yet
DAA Unit 4 Notes
87 pages
Dsa Interview Questions
PDF
No ratings yet
Dsa Interview Questions
12 pages
Sonata Software Sample Aptitude Placement Paper Level1
PDF
No ratings yet
Sonata Software Sample Aptitude Placement Paper Level1
7 pages
PCPF Complete
PDF
100% (1)
PCPF Complete
54 pages
CS3492 DBMS Univ - QP Answer AM 2024
PDF
No ratings yet
CS3492 DBMS Univ - QP Answer AM 2024
19 pages
Web Technologies Aktu Notes by Uvesh
PDF
No ratings yet
Web Technologies Aktu Notes by Uvesh
236 pages
CS3391 OOPS Important Questions
PDF
100% (1)
CS3391 OOPS Important Questions
1 page
CS402 Data Mining and Warehousing PDF
PDF
No ratings yet
CS402 Data Mining and Warehousing PDF
3 pages
Ma3354 DM Unit 5 Part A, B Question and Answer
PDF
No ratings yet
Ma3354 DM Unit 5 Part A, B Question and Answer
10 pages
Studocu DAA Unit 1 Notes
PDF
No ratings yet
Studocu DAA Unit 1 Notes
52 pages
DSTL UNIT 5
PDF
No ratings yet
DSTL UNIT 5
5 pages
DATA STRUCTURES DESIGN LAB Manual
PDF
No ratings yet
DATA STRUCTURES DESIGN LAB Manual
50 pages
SEPM Handwritten Notes
PDF
No ratings yet
SEPM Handwritten Notes
14 pages
Gate C Notes
PDF
No ratings yet
Gate C Notes
141 pages
Machine Learning Unit 5
PDF
No ratings yet
Machine Learning Unit 5
43 pages
Algorithm
PDF
No ratings yet
Algorithm
14 pages
Flowchart of Sequential Search: Begin
PDF
No ratings yet
Flowchart of Sequential Search: Begin
2 pages
Predictive Parser
PDF
No ratings yet
Predictive Parser
17 pages
Week2 Lecnote Watermark
PDF
No ratings yet
Week2 Lecnote Watermark
31 pages