Professional Documents
Culture Documents
Theory of Computer Science
Theory of Computer Science
Theory of Computer Science
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