Thursday, December 2, 2010
Tuesday, March 9, 2010
THEORY OF COMPUTATION
1. What is the difference between DFA and NFA?
2. Give regular set for the following expression: 1(01)*(10)*1
3. For the grammar G defined by S->AB, D->a,A->Aa,A->bB,B->Sb, give derivation tree for the sentential form babab
4. Give pumping lemma to prove that given language L is not context free.
5. Give formal definition of PDA.
6. Give an example of a language accepted by a PDA but not by DPDA.
7. Prove that the function f(n)=n-1 is computable.
8. Design a Turning machine to compute n mod 2.
9. What is undecidability?
10. Differentiate between recursive and recursively enumerable language.
11. Construct a context free grammar for the given language L={anbn|/n>=1}U{amb2m/m>=1} and hence a PDA accepting L by empty stack (16)
12.a) Prove the equivalence of NFA and DFA. (8)
b) Prove that a balanced parenthesis is not a regular language. (8)
(OR)
12.a) Explain in detail with an example the conversion of NDFA to DFA (8)
b) Show that L = {an! : n>=0} is not regular. (8)
13.a) Explain in detail the ambiguity in context free grammar. (8)
b) Convert the grammar S->ABb|a, A->aaA|B, B->bAb into greibach normal form. (8)
(OR)
13.a) Construct a context free grammar for the languages L(G1)={aib2i/I>0} and L(G2)={anban/n>0} (8)
(b) Prove that {op | p is prime} is not context free. (8)
14. Construct a Turing Machine to do the proper subtraction (16)
(OR)
14.a) Construct a Turning machine to perform multiplication (8)
b) Prove the equivalence of two-way infinite tape with standard Turing machine. (8)
15.a) Discuss in detail about universal Turing machine. (8)
b) Prove that halting problem is undecidable. (8)
(OR)
15.a) Prove that the union and intersection of two recursive languages are also recursive. (8)
b) Prove that there exists an recursively enumerable language whose complement is not recursively enumerable. (8)
Thursday, February 25, 2010
THEORY OF COMPUTATION APRIL/MAY 2008
2.What is the principle of mathematical Induction?
3.Construct a DFA for the regular expression aa*/bb*..
4.Construct a DFA over ∑=(a,b) which produces not more than 3 a’s.
5.Let S-> aB/bA
A->aS/bAA/a
B->bS/aBB/b
Derive the string aaabbabba as left most derivation.
6. What is meant by empty production removal in PDA.?
7.State the Pumping lemma for CFG.
8. Define turing machine
9.What is meant by halting problem.
10.What is post correspondence problem?
(ii)construct a DFA that will accept strings on{a,b}where the number of b’s divisible by 3
(or)
(b) (i) Construct a finite automaton that accepts the set of all strings in {a,b,c}* such that the last symbol in input string appears earlier in the string
12 (a) (i) Construct the regular expression to the transition diagram.
(or)
(b)Construct a NFA for regular expression (a/b)*abb and draw its equivalent DFA.
13. (a) Construct a CFG accepting L={ambn/n
(or)
(b)Convert the grammar with productions into CNF A->Bab/λ.
14.(a) Design a deteministic turing machine to accept the language L={aibici/i>=0}
(or)
14. (b)Determine whether the language given byL={An2/N>=1} is a context free or not.
15. (a)Prove that the function fadd (x,y)=x+y
is a primitive recursive
(or)
15. (b)Show there exists aTM for which the halting problem is unsolvable
Friday, July 4, 2008
THEORY OF COMPUTATION 2006 - B.E CSE
PART A – (10 X 2 = 20 MARKS)
1. What is the difference between DFA and NFA?
2. Give regular set for the following expression: 1(01)*(10)*1
3. For the grammar G defined by S->AB, D->a,A->Aa,A->bB,B->Sb, give derivation tree for the sentential form babab
4. Give pumping lemma to prove that given language L is not context free.
5. Give formal definition of PDA.
6. Give an example of a language accepted by a PDA but not by DPDA.
7. Prove that the function f(n)=n-1 is computable.
8. Design a Turning machine to compute n mod 2.
9. What is undecidability?
10. Differentiate between recursive and recursively enumerable language.
PART B – (5 x 16 = 80 MARKS)
11. Construct a context free grammar for the given language L={anbn|/n>=1}U{amb2m/m>=1} and hence a PDA accepting L by empty stack (16)
12.a) Prove the equivalence of NFA and DFA. (8)
b) Prove that a balanced parenthesis is not a regular language. (8)
(OR)
12.a) Explain in detail with an example the conversion of NDFA to DFA (8)
b) Show that L = {an! : n>=0} is not regular. (8)
13.a) Explain in detail the ambiguity in context free grammar. (8)
b) Convert the grammar S->ABb|a, A->aaA|B, B->bAb into greibach normal form. (8)
(OR)
13.a) Construct a context free grammar for the languages L(G1)={aib2i/I>0} and L(G2)={anban/n>0} (8)
(b) Prove that {op | p is prime} is not context free. (8)
14. Construct a Turing Machine to do the proper subtraction (16)
(OR)
14.a) Construct a Turning machine to perform multiplication (8)
b) Prove the equivalence of two-way infinite tape with standard Turing machine. (8)
15.a) Discuss in detail about universal Turing machine. (8)
b) Prove that halting problem is undecidable. (8)
(OR)
15.a) Prove that the union and intersection of two recursive languages are also recursive. (8)
b) Prove that there exists an recursively enumerable language whose complement is not recursively enumerable. (8)



