Attempt any Eight questions.
[8*5=40]
4.
Differentiate Kleen closure from positive closure. Compute positive and Kleen closure of {ab}. [5]
5.
Design a Mealy machine over {a, b} that generates output 'A' if the input string ends with aa else output 'B' if the string ends with bb. [5]
6.
Construct regular expression over {1,2,...,9} that represents a. strings of even numbers with length 4 starting with 2 and ending with 8. b. strings starting with odd numbers and ending with even numbers. [5]
7.
Prove that th language is not a context free grammar. L={anbncn∣n≥0} [5] 8.
Construct a PDA that accepts string over Σ={a,b} that contains equal number of a's followed by equal number of b's. Show acceptance of aabb and aab. [5] 9.
Describe how multi-stack TM is different from the semi-infinite tape TM? [5]
10.
What is intractability? Define time and space complexity of turing machine. [5]
11.
How is conversion of PDA to CFG done? Illustrate with example. [5]
12.
State Arden's theorem. Convert following DFA into its regular expression using Arden theorem. →∗Q1Q2Q30Q1Q3Q11Q2Q2Q2 [5]