0% found this document useful (0 votes)
13 views48 pages

@vtudeveloper - in TOC Solved Model Question Paper

The document discusses various concepts in the Theory of Computation, including finite automata, regular expressions, and the pumping lemma. It covers the definitions and properties of strings, languages, and grammars, as well as examples of how to construct and analyze them. Additionally, it touches on ambiguity in grammars and the significance of deterministic finite automata (DFA) in recognizing patterns in strings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views48 pages

@vtudeveloper - in TOC Solved Model Question Paper

The document discusses various concepts in the Theory of Computation, including finite automata, regular expressions, and the pumping lemma. It covers the definitions and properties of strings, languages, and grammars, as well as examples of how to construct and analyze them. Additionally, it touches on ambiguity in grammars and the significance of deterministic finite automata (DFA) in recognizing patterns in strings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 48
SMETANA EI ae aa Node! Questfeu Paper Solurrou Theory of Computatfou - BCS 50 3 Fh Mopole-ol pt airings a.a's and b's of bis (mA pasta 4, 2} 9 0bicin DEA to acce of a's and even number haveng odd numbet Lvcdato i counter poi] a satieast tL oh b> ableas © aaaad bbbb 4 odd number even number je { a, aaabb; aalbb aveset ante pyre tess Te : ' ob Stee bboge accor ooh A - IN oS OAL OY \ b) DER to ocent cedmal strings clavisible by 3, co worsible by K petm) m4 pad 44 prep) Tad? ODS 10 poe aiphobe cA)> LO, 8S. g Y aevisor (Kk) = 3 o73 + 0 a4n3 24 grep 2) possible vemtnders =f 0, 1,2 4 273 +9 groes = £ 95,9,, 379 +0 . % 4 449-4 eg . posed om remindey 513. Grovp sFgett ond ; 20e Q 0,3,6,9 = Sod R79 - PTZ. wes 4, 4,4 > 80) scares 25,8 ~ Se) stn) Remind er a | (+ Pad) mode - 5 9 C%, d)- o> o | Cioto fo)mod = 0 SC4o , 0) ~ Lo 0 1 | Crotod mda = | $C Fo © Z, ‘5 (19 0 +9) med > e $C9,,9) © % 4 0 | C10" WROYweds + 8 (4,0) > % \ ie (OEE OF SGy 5 ier to + a | Cro +] tamed s > O gen eo roe oF [PCiowee acd) wands >. SS leg eon) s1g7 : (io? 2 4 1) mod 3” 0 gs, Wag! Dl! ype eda among ht 16 6a. 2) =e, - Step) DRA consywuion Stas Geb => Zo Fivel dob? ovred 2 > Be J > vemondey © at ta cian @ vemos der %> ©, 3,69 0,3,6,9 corp 9919 13 > + >to oe mare tring eset —— 193 73> 7 a-® ——@® =) sty accente) — wan o-Fo e@ os 1c) debrne 6) niebabst A beneEe > ywon-empEy SO ob symbols [ chared es denoted bY & Cerque ) = Bolland beocia Bor Censtiyudeng strPngé- - Symbols Pn ad phaby con b& Letbers, digrts or charecter. exemplé -g~ LO, Bee ge fo teed ein Le tava 2 W) powk® ob alphabet: pene ate dan oh ts He set of all string ie! Repneserd® sqmods dh, aspestic rengen Fe tak gerined using oO od prabd eo > corn OM empt¢ string ie xength © 4 >contan cl skind length + ee ° pes example g-ley a gare? OC gt Sao pore a Lyrdade erty ring) eee ae) p20 4% Ue? cae hs Cenc tude emmy Sraing range? qes " pengte J anbinere gd ob rings over _ og any sobse ob ¢* - Formal danguage obten have ecole yules bor which “Strings aye Prituchd in subset € 4 £ pe TWEE \wobeyins wrth b 4 ha E- [ob a be (by BA NbR book ay ae ) vv) string “Ernet me sped bre sequence Ayano” * Chosen Gao atphe Ce) | EEA ave the haste basiding beocre ch bonguage example > (a b4 vai d StYings inch be 8b, 4 ab ee Y) Paoblen feabediical a question ob writhe decking whether 4 qeven stvin AnQs tS members Ob some particule Lang ways. o Grarte cd prob ee “NE wea aren a obramn e-neh wits wens ga7x?ny cons PSting ol zero O71 more at Bollowed bY aevo ov Mam b'S Gottowedy by 3) zene eN Oe 4 b : cs areca Teroot more oS & q,? Acet 2eVo oF More bs ‘ vo or morers Evel : oc mec ents CaO - AF, 3 ing so " a, 2 accnsing © CU) h Foie, -%, 4 q _ < abe cay rey 2) b) pepe perermmn etic, Fin eee exprain the Sw? paegberd notatPor bor descrh He mg qranertion fundion with example we ( Crean ieee te) Q >? bPrite su ob Uae S gente 5¥_ ob Rip symeoat J _qrensitton Bu prom (OX J to Lo & DMRS greta stab F Ca is ser oboe ng Chinal ) toe Notations oF} DEA 6 arunshlion Dragnam aon apn wich shows BOA HiTlP transitions: Go tvansitfon gun sion 78 Peyine BEA, one Fate of G& kime- O! Qe ak @) > © @> 1 Pecenting GIF rings Gita subbctying ol ®Q Transition obs e S Ceosmend 09 & {current cuaneden ) = Mew “a we cam arepn eens SCrrensik on gu) by usd ATO se*0 Rokte Horak > s > q a eo) gy obkarn DEA boing Lasy evaluckion mh oc. Qt Tmogust 1-7 pars 9) i Oa ©®=-®) Sigh Die gees7 temenys BY = ‘i 2 SRS Sen Beep OLY sip? wen Avonsition table § ° + Sieh veceigt et (2% £959 Ae, 3 ites g Lae sepa Den Avensetiar roble Transrtion page , Cia 5 8, 5) eo Ps oa ow MoDuls - 02 w of RE 2 d en ontKoP sqem 2 abions 3) 0) apputeadto poraFons use few RE wet onic wot Ap pew OP oh Requiar expression = %) KReucdeo is ) Aenea onal! ae qenestan used to degery colen by masewing Lord Levens for Toke cakegorizatior mu ronrguge? glee C= ment ced Pwd bey Easks gq ded paom HTML xn @ wep geter wre URW routing, Re are v Gorm vabithation and erackin Qocu mert & © dodo valrdodi on ee oe R.e are ased to vobdob us ser Pip such on edddaesfer , prone usmbers and passwords Seger @® extraving Avo: ee Eg Re cunee ase) bo el of Sere StTUD ON ext ak clata 6 1071 Serudar WI earls PRerien Yad dndsapa or dake. © Sconcy BReprace coe Re canoe used to gol speugte paler %” ew & vephore rhemutt? chesbovel tewt> Nokation used PN UM op- Aabc + makthes UN starting with “obe” obc $ > Mofthe ¥ en Ling « “ Glebe oO besrowed by ond chowerens, ending, wrth b Ya-2) ~ mokches ang Lowercase Les er \ad 7. matunr ont deg? for RG (ath)* bbCath)* 2 by ebtarn en FA Hoe dus a: Ee aalon Giom’ enwerte So. © BA) te gh RES o£ to aro sR DS io a 0a q s-O oo Se 39) Ra aa Ln Catb)* ou = &O —ON8, £© = OF peo SAN cath)". bh cSt! =. 0 oo Seay oh Sih Corb. bbCatb)* Corby. bb Corby hoo mo) ee O | Bot D > oo 2.0 € Om eA S5 a Necks > 3.c\ pentzed DF A Step!) construk Fabk: bor moving. Hye) ffoced sch x} Xx) ie mah x CI xl eLa crrd| 68.0) | Cre) xa a) | C9, cA, a) 76,0 (radiated t,o) | CA ed) COO) CFG) corr) | C84) Ue, &)| 0,0) of) pystingurshots 3 D> p gpaiishinguishable > CA,%) Car) ord cee sp3]_ pen _boble rat mn sue Tansieem aragne b OY ae (GD) a aa Q a Ce > SS > a () by "6 4a) Define pumping Lemme py Lb Yorb! lied Y nrot regan PL Chov ego song) Spek lb bee regular san quo-qp cw thak for ced StT mg woen lL, Arena exe & constenk k Su such whos Leger chasing ww f€ Jw] SK an Grew rwio 2 srrinY> £-€ WKY? we yrons Rorrovi ng comoth? yy \ugh es w ytoittiee j Gry Bon eo 920, 2 FF Stepy Let & be Requion Rang: oe a**' pr o tong wring Ctrawen f>J ) woorye shod) cotis ty ols der I G) by) er WwW yre wy bn Cor G20, XY % EL Ssepo Le c=3 cee ath? aoasbbh 2s G) yal els ESB Ww yto 47a Str) he 270 => rye2 > a0 (a)? abbb => a aahbb sabe gt ContrawUron (® 0W) assumyVi ony Lis aot re putas Modus 03 5) a) Ambhquors qrommer? “A ammaa G FS aim bhg uous it ond onuy 16 oo ae teow 4+ anng wer for wath Ewo ent by opel rng LMP] po pn of ot more augpere Pore tees crechntques bor red¥dnd ambiqurly en grammare Sais wth ervanyl = gnom avPpthmyrG excep svar ambiguity ce podal ence of ¥ aemoving d &Yy con sidering the can 6% ye move operator err bor ON corde? we PadeuriBiey — 01616 cosgeed) « parant hesis C 4] © mankipyrcaich gar vison 1) Add HOM gsubstradionCt dead Brom tbe to ough: preset died is consi we gaa mmo Y can be wo Eten os roal ble rece) [Fr ret el eser Titel! Reay range We pro auton Brno Cos wyrbo? @spear liewt | tas. ee URL AR a prce) Ee Eealbic. Uap Saving oob 3) BJS Onbiguovs 3-2 aS\ aSbs\e Ss s208 5) ao @.c >aaecbs 6} . ae \ \ € ©. a2 waht =p aah Lo 2 —— 1<~ 32 ogh8 : Oe eS \o = 008! ‘- : = aocbs : 7 ao€b : =p oa b& zpoaob Tens Ak ORAS yree P buaphese > mh? quod Sy CEG a) no more than 3 of er Loby ow any wo of o's & his aleaw 4a go® | 82226 | GaBavan yf) so B\ B> bBlée é en fob, O35 > ae $= oe, > DhabeEoe > §ae _> Hbobut 5 bb Ba BaF aohoke eee wet aiap, OOH bb) HP adorn 4 @) Fo aS [bS1o a: f $f Cab he. S 4 & xa at? achhe bbe 998 soadgh s Gfo.o! goes gt —Saahhs 2700 > aabbo os [esoAle oe > APaA| pale g>oA > oof Saba 5 00bbA L> aabbt == Jos ssaacc A>aBle B>hAlb Coe etep 1) SCG ort 20) ~C%, Se) stepa) Praodudin ob CFA | TERR of Pon grahBc SC%1, os )-C%i,aay) ee §CU1,0,A]~C@,, 6) Nee 6091, oA) C Pe) BoObA 6091, 6.6) COLD Boe §0@1, b> B)-C% se) et Mehac) =e wep) SC¢ 1&5 20) See oe | 2H) Qj : Sah ert s [ABC 2Ale aAl & bela b, B1é a,c /€ a -6-b) -G—>oB\ba A>alas|baa B>b\ bSloBsB Gor string aabbabab Seim Gi) Legernost Derpvoston seo ade S => a 0B tm aabB oabbhd bo > umd P 2 aab > aa bborbs paabbe ba ~S.a0 bho k& ben dG) DerPoatran 140? C Parse tree) WW) Legtmos t Wert vakion Ww Riguimest Pew vation wargames Beauvation orn) ry SSge aid aoa bs > aaB baB aaa hob Gi) Porsearrvee ee ~ “~N @ & an B i ORO ®o§s oe 6: © 8 aS 6 CJ cl Detime cra. "BD conbewd bree Grammar consPsting ob G&Pnite sek of Qrammoy yur Pr o quadruple (vit, PS) Where Vv > vartabl oF snoweter mv nad symbols Tso ob tenrvuna P=> Se ob prodution of fon A> a& gb 7 Staak 54 bot . @ cea ber sub of GU von -pubindyromes ove y £>[a,b3 exrifob x pena ,aabb, bbaa.y s>08o0| BSeU aTblybTe ae T> at | bTWS ¢ I Sraso go ath ere go a bsba >a btb J >a bath eo vee ey” s > ahbab Lote s2 aot We dentvatfon sae . 2 Gere! yooab bib ape g2 ab bath $2 aabbaed so an bhaeh ocented- Gi} ye fora n204 te fy on, ool €x 001 sv oSl =oos\t Sool! anered ae W L- {oe Wa (oe by § ce face, bca, Q0.CaG Oho her 4 s-> ose |b Pa ® eX. abcbo S20 8% §2 0. bSb & S> abcho = shoduie tT Aas Dehn G) pnhevendtt Qe mskey: wormal Fromm) nen vormned Porn: garni quous 22%G w ard) i) A rege ae eid FO Pe puhen ently obi g vows ‘ ps @mbrg work x, on grameman @ Fer zl free ews! O Longuef Pee Senos seen te fang fs ea and He hee bnom rich Cre 200% ¢s demved Fs cated enhenendly arediquors ano wert cau CNG qnammon pm” > fe: al nuler bom on ow de ou owing Ewe Booms: ya, when ore oF eu muenk of Vid rz Bc, we OF 6 Om pe OM BSD, Ne Tn Se Jb) Remove & prcdudPn Bunst Produd ton g> ad\oRs a> anal ®& p> bB\. be 78 Remove E-pnoduckiOn OO ————— nau verpabe-? {Ag ais aft\o8B \o peo AALAA\O Q>2bB\bbC CoB Remove unt produc ion Yeh goof) one] o A>aAA (CAL® — R>hh| bbc co bBIbbG +c) convert into OW Fy Doi ane g> ABLLO A-7 COA \B go> lal crept) obtarn CFS %% ck _pemove vcll Remove md Remove gen eee erode eet g> aat\o s2naa, \e so Am, lo i A>roonl tAl AAA, AL AOR, A> Ar, 1A,M3 B>\a\ Bo AAA B> Am, 4. Aco P Are Ast s a> : |£e MSRBAL | Maa |, sker® Renory G7 Pobl es waa 7 KD SHbsEIVLL Gor A, s A> AA, 1° te ——— 2 4.8 Re Pe. Aes A> Ah, As Me 5 p POR, \ 1A, A3> ASAy A> 1A Ry > oO AES Sy Jone a Ag aoeRa As ; As Kia a gd \> COA 11 As Jao ee Ra Aa > ona Ay > AAS yarn, WG Age 1 Ae svop® Py COR, | 1A) As A> OR, Ae (140, 1° OfAL Ay A A> of} Ving go) wine EME, AMO CAA Pore sve for Vox xy Using qremmer E> +EE level Zee Ixy LD RMD a Re E> tee c> +68 y > + \ EEell aa s Ee > + eee a7 EEE Y => ae -peees p- .Bxy a ea-% Yee sen -EEny >t a-ry He Dra- EM > ba Pyry gore FYRY == or \ parse ttt! M J : > \ Bb) wre CO sr ASBIE A>aAsl® Bosb$ lalb> S1) E\imineds & prode !orn Euro’ pore web sy > ASB \ AB avanglo lor > gb8lalbb| bs |Sbl> 53) etumineding unl prod ukion etimineding AN $7 ASB 1AB A>aaslalaA Boshs| alslalaal bb | bS 1545/4 $9) Remove md paroducion Fae ee ae SeASB IAB A> ALAS | 0 | OA a3 Pash amar cigee ee eee ge eS Kee ( 9 Remove ong Pred Wti90 Bb | g-> AM, 1AB ASA, WY, | a1 AoA R25 ™,) am, lo laa | 23,1 Bs] 94/4 @-c\ convert in Oo cnr gs>oal is asoaal\ 1s) } p>1aR}os|o Go) Remove mw J gz TA | TB A> ran | T,8 ya R> Bel Tse Ty 0 TT. ae w) Remove Lo” q preclusion eae tic ae Ge Y > TAI TS ASEM, LTS 11 Bory) ToS 10 Ty. 0 Module 5 Q. a) pehene Turrrg mochin , with Block clragram wo HIS Ng oh Basic Turing machen (O08, 1 8¢o OF 9 Q -> eenite sek og grater ob Gensie cond iol 5 7 Bente se fog tipsy mbot > pvt! Sees Symbol ® S es olwmyp subset ob o § > kransetion 6 argument ob SCC) Gversote @ and a xeape Symbol ¥ vols of Mmmm r ded» FS kvipte ( Ps ea DJ SOizer (on ¥ Ssymbo! new Yak 4-2 Srort Grave 6 ive b> Asani symbol, presen in T bay net in’ & CP cur of Binal or o coving uate Surat ob D pooeting 60% corel unt oa Einete conn geass eo | wares Gen 3d) woe + ates) lt U ReadJwaste Head Seops © stare %O do @ geod Gy mmbol ander hood Qvorkt new Symbo| @ sweet Leet [ aeght Gener pew srou Ve gb) pesing TM Yo accent a seh oh pabindnome : oe Lops Drow Transtion table 4 75 ans/ton Lia gnom. seq for ababe a Even length -> 0 odd length -2.Goaw 9+ whioP a ae. SS iN adh A) pares Bat roe bo as 2, Boe — ‘to BR BRA, BRe, %, | are, bre, ave: a BLa, = Qs ara, bbq. ba 2% | oR% beg, a a, 2 BLY, BRO, we a = 3 babe Dee Fo owes © 6%, bobs 8 05%, B® 0 b9,0% pPA ISS 5 batbe ET ET SO fb? O ba Re | ‘ gb o be fe B BP Jo 8B v2 aBBe B hab’,% B 5 Cae g b0%, 5 eb 540043 BL wb BS go de 3%? he ®B UP See 989289 ae bare 8 omy bar ® 8 664,38 95 3 ; ae be 6 458% bos Bry 1084 Ba ap = q.c} wore ow CO muthiple Turing machent goers eee o Ginte se g& O ako + om enetcal gtob Zo a subs F & @ called of feral ercder +O Se © A tape symbol So jew Syrmeol by nok Pn P cots dD the biani< synod l nse OLE 9. CTond bEL thee are k taper, each aarded into cals Fenete conrol DA move Gependa on — oS mY | Camnnenr ade Gs tape symbols under k tape hoadcbs- h)von - peer minstic Turing mactvry =cyupie! CO Si T.8 ae un 9 ogenere pone pty set ob gob es Tbr se nonemptd se ob Tape 89 moet So Bro ee cou Roe symbol 5 wowenpett subs& Reba I cobtd wet 06 HP comb ayune Wo bd & Q, Preah ee : f° SO " Ws ob gino ro mo $10 O yx i into § mo porsver Gunuvi power se OF Oxr% fun 3 spon Qebey unset e +W : r con) = TOM) ore wen Th wis 5 aver mk © am mc sut ay hess & lo} od Brigrey expo tee TM construdion. Appa cation oh TM - thee ove 4 esernboues, £0 consirad TM © Turvery4 macht “Tope head BOS tn 4 posPtFon hele tape mover g bsad re worth stakPonavy hood. & . Stenpsi Gres mach ne desegu be avopclin mMovement* &q > Checking 1h O SA bape whrle head yemorn sratfonory ying of 4s hag even fength by moving @ Storage en the got Enformation Peogsored en machene’s saber rather than On he bape. wresenh Ssh. Baro oY Condftrons. -gach srate TEP Lx-> gkaker yepresenk dondher © or | encountered while process Ng vas heen © Muktfple trock TM -use muttiple tab oF Aya JK data _ pettthg = musriple openadion simulasaneouwy. trols & Storing reso exo AdAIN bine 15 of Sepaaod ey eae vy narnte OW anothen track. © Svbyowines @ yeu sob se on 4 tape to woicl 55 g uence oh sear & sPmpH ey gee fats g rebusny fe previors ee! calling & ct wring % palindnome by mbolF compovingy pa vs ob sy ‘Appsrcakions ah Na lige as ined BAN GaEGE REcey nPtPon © Fr i ere en oT Bor ATES ANF cot an even nurnoey ob ds er ovr’ aw Wren gose, when penne uk 4 hE ey ons (ELOY) ko Nev? groke- cucker reading every poet Rts S| Tt vetr 10 pniticd Stat © compab dive hae eee Btn pnobiem - VP TORS conearumed 19 edd. whethes another TIM hodt® Ow 0 give SIP O Al gortthen Ses F gr aud Ayoby's en padincbion cheding Ran hed CNIS sgn 6 paradneme o (eae ex stmole samsirnnion CF phen - BH ay >to devsop CI abgorith™ © Quorum comping ip b) TM bore She forb™ [net 4 Taansitio dagram | mows o& agaaabbbb Le fob , aabh » aaabbh % Tape Sybol Ppreserd b te oe \929, | yes Neg PRG, 419, | Sbi Seu Qa Goabbbb. f fo Qaaobbbb) xq, aaabbhb F OG 0k bla 4004, abbbb yaaa a bbbb yaagaybhb xaqgaa ybbb xGaaay bh % xaaaybbh 4G, 00a Ybbd xe Ge aaybbb UXO @aybbhb 7 AG 4, ybbb 1x adY@?, bbs rwIareyyhb Xk Od G4 bb 2%Q 2ayYbb % qr aayyhs Y% 90a YYbs 1k ae aYYbb LXQAQ Y%YbS UXAAIDYbSA LXOOT YO a rrardtygh AAAG Byy Ib WIA AYYY aT aayy Yh UZ raayyyh 1% g,00 4494 HH 4, AYYIS yer a |g, y¥yh 21 XOYR, 99H KYL AIYYD YL UXLAYIYE S MAM OYygyT YEG oydy ee UU Es. AXE ayyyd 119, FO yyyd HAG, 9 YF exe %9, 9994 yrXxe 44499 yx ek IIBYY WARE Y IVEY arerxyydy?, WAHIIT YG Dg poms = \o) cJ fm te aaa au string ending with 000. aaansittem dogem seb £D bo W~l0 10009 veh | Steqaotore) L(t.,,ie1029) Ue 38430110, 2OONE (2) What is the language accepted by the following FA. 7 38 ‘The state qpdsthe final state and at this point it can accept any number of 0's which ean be repre- sented using notation as o gq is also the final state, So, 4 reach q one eam input any number of O's followed by 1 and followed by any number of 1's and can be represented as om So, the final regular expression is obtained by adding 0° and 0°11". So, the regular expression is RE=0 401 o(e+ Vy =O(e+ I") sO y=or 3. Design £-0FA thot accep Set of all strings consisting Of yexo or morc a's followed by yere or more bs followed by geno Oe more e's | eo b ¢ OO? CO) aS & & & G4 KIO £- closure Uo) = 1%.%.%, 95). €- docure O%) = 1%.%. V3}, E- clocure C%) = Ls, Va} €-doture (43) = foyy}. Dept. of ISE- Dr. HN, PM, JBN SS See

You might also like