Theory of Computer Science

You might also like

Download as pdf
Download as pdf
You are on page 1of 1
Paper / Subject Code: 38905 / THEORETICAL COMPUTER SCIENCE, SE, SEM IV COMP / CREDIT BASE (4Q}, 2019 14.12.2018 (1eeieenson 7 NB. _(1)Question No. 1 is compulsory (2) Attempt any three out of remaining five questions ACE (3) Assumptions made should be clearly stated LSS 1. (a) Write short note on Myhill Nerode theorem ( Say, "} 5 (b) Differentiate between NFA and DFA. aSB|aA A> AalSala (b) Construct PDA for a language L={wew® | we {albjand w* is reverse of w} 10 4. (a) Construct TM to check palindrome over £=(0,1) 10 (b) Design a DFA which accepts all strings not having more than 2 a’s over S=(a, b} 10 5. (a) Convert (+1) (01)"(O+€) into NFAwwith'€-moves and obtain DFA. 10 (©) Design Mealy Machine that acé&pts am input from (0+1)* ifthe input ends in 101, Wo output A; if the input ends if 11, output B, otherwise C. then convert into Moore Machine. 6. (a) Draw a parse tree for the string “abaaba’ for the CFG given by G where 10 ~ S>aSa S>bSb S>albleh . Also Determine whether the given CFG is ambiguous or not. | (b) Write'short note on following 10 4) Hahing problem ii) Rice’s Theorem 57624 Page 1 of 1 [EO76FB882SDF20E77897 14A9EG4ES468

You might also like