Define 1) Parse tree 2) Ambiguous grammar
[3 marks]Prove by mathematical induction: for every n>=1, 1 + 3 + 5 + … + (2n - 1) = n2
[4 marks]Consider the grammar: SABA, AaA | , BbB | Is given grammar ambiguous? If so then remove ambiguity
[7 marks]Design Moore machine to generate 1’s complement of binary number.
[3 marks]Write Regular Expression over the alphabets {a, b} consisting strings: Second last character as ‘a’ Starting with ‘a’ and ending with ‘b’
[4 marks]Find context free grammar for the following language. L ={aibjck | i = j + k}, L = (011+1)* (01)*, L =(0+1)1*(1+(01)*)123
[7 marks]Draw FA for following languages: L1 = {w | 00 is not substring of w} L2 = {w | w ends in 01} Find FA accepting languages (i). L1 L2 and (ii). L1 L2
[7 marks]Give the left linear grammar for RE (10)*1
[3 marks]Minimize the given DFA: State / Transition a b 1 {3} {2} 2 {4} {1} 3 {5} {4} 4 {4} {4} 5 {3} {2}
[4 marks]Eliminate useless symbols, -productions and unit productions for the following grammar: S0A0 | 1B1 | BB, AC, BS | A, CS |
[7 marks]Consider the grammar: S aAS | a A SbA | SS | ba Derive left most and right most derivation of string aabbaa using given grammar.
[3 marks]Give CFG for following languages: 1). L = a*b* 2). L = {an+2 bn | n >= 0}
[4 marks]Construct finite automata for following left linear grammar: S X0 | Y11 X Y1 Y Y0 | 1
[7 marks]Compare PDA with FSM
[3 marks]Write a note on DPDA and NPDA
[4 marks]Design a pushdown automata to check well-formed parenthesis.
[7 marks]Give the formal definition of Turing machine. Also compare the power of DFA, NFA, DPDA, NDPA and TM
[3 marks]Write a note on post machines.
[4 marks]Design a Turing machine to reverse the string over alphabet {0, 1}
[7 marks]Compare and contrast push down automata and Turing machine.
[3 marks]Enlist limitations of Turing machines.
[4 marks]Design a Turing machine which accepts the language consisting string which contain aba as a substring over alphabets {a, b}
[7 marks]Discuss universal Turing machine
[3 marks]Write a short note on Halting problem
[4 marks]What is decidability? How to prove that the given language is undecidable? List some undecidable problems.
[7 marks]