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)
12 views
TC1
Imp questions
Uploaded by
THANUSHREE M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save TC1 For Later
Download
Save
Save TC1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
12 views
TC1
Imp questions
Uploaded by
THANUSHREE M
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save TC1 For Later
Carousel Previous
Carousel Next
Save
Save TC1 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 18
Search
Fullscreen
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
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6134)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brene Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (935)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8215)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2923)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4973)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1988)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2641)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1994)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2544)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
CN_important questions
PDF
No ratings yet
CN_important questions
1 page
CN-BCS502-Module2-Notes
PDF
No ratings yet
CN-BCS502-Module2-Notes
11 pages
d1204707-24b9-4338-b475-8bc7d8d59803
PDF
No ratings yet
d1204707-24b9-4338-b475-8bc7d8d59803
1 page
Lect8
PDF
No ratings yet
Lect8
9 pages
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)