CS2303 Theory of Computation AIM
CS2303 Theory of Computation AIM
AIM
To have a introductory knowledge of automata, formal language theory and
computability.
OBJECTIVES
To have an understanding of finite state and pushdown automata.
To have a knowledge of regular languages and context free languages.
To know the relation between regular language, context free language and
corresponding recognizers.
To study the Turing machine and classes of problems.
UNIT I AUTOMATA
9
Introduction to formal proof – Additional forms of proof – Inductive proofs –Finite
Automata (FA) – Deterministic Finite Automata (DFA)– Non-deterministic Finite
Automata (NFA) – Finite Automata with Epsilon transitions.
UNIT V UNDECIDABILITY 9
A language that is not Recursively Enumerable (RE) – An undecidable problem that is
RE – Undecidable problems about Turing Machine – Post’s Correspondence Problem -
The classes P and NP.
TOTAL : 45
TEXT BOOK
1. J.E.Hopcroft, R.Motwani and J.D Ullman, “Introduction to Automata Theory,
Languages and Computations”, Second Edition, Pearson Education, 2003.
REFERENCES
1. H.R.Lewis and C.H.Papadimitriou, “Elements of The theory of Computation”,
Second Edition, Pearson Education/PHI, 2003
2. J.Martin, “Introduction to Languages and the Theory of Computation”, Third
Edition, TMH, 2003.
3. Micheal Sipser, “Introduction of the Theory and Computation”, Thomson
Brokecole, 1997.
ANAND INSTITUTE OF HIGHER TECHNOLOGY
KAZHIPATTUR-603103
DEPARTMENT OF COMPUTERSCIENCE AND ENGINEERING
LESSON PLAN
Subject :Theory Of Computation/CS2303 / CSE-A
Academic Year :2013-2014
Definition : The theory of computation is the branch of computer science
that deals with whether and how efficiently problems can be solved
on a model of computation, using an algorithm. The field is
divided into two major branches: computability theory and
complexity theory, but both branches deal with formal models of
computation.
Objective: :
To have an understanding of finite state and pushdown automata.
To have a knowledge of regular languages and context free languages.
To know the relation between regular language, context free language and
corresponding recognizers.
To study the Turing machine and classes of problems.
Theory Class :
Along with the above the following activities are also to be planned and included:
Assignment-3
Turing machines (12/9/2013)
LESSON PLAN
Subject :Theory Of Computation/CS2303 / CSE-B
Academic Year :2013-2014
Definition : The theory of computation is the branch of computer science
that deals with whether and how efficiently problems can be solved
on a model of computation, using an algorithm. The field is
divided into two major branches: computability theory and
complexity theory, but both branches deal with formal models of
computation.
Objective: :
To have an understanding of finite state and pushdown automata.
To have a knowledge of regular languages and context free languages.
To know the relation between regular language, context free language and
corresponding recognizers.
To study the Turing machine and classes of problems.
Theory Class :
Along with the above the following activities are also to be planned and included:
Assignment-3
Turing machines (12/9/2013)
THEORY OF COMPUTATION(CS2303)
Question Bank
Є
q0 q1
Є-closure(q0)={q0,q1}
14.Construct a r.e for the language which accepts all strings with atleast two c‟s over
the set Σ={c,b}
(b+c)* c (b+c)* c (b+c)*
15.Construct a r.e for the language over the set Σ={a,b} in which total number of
a‟s are divisible by 3
( b* a b* a b* a b*)*
+
16.what is: (i) (0+1)* (ii)(01)* (iii)(0+1) (iv)(0+1)
(0+1)*= { Є , 0 , 1 , 01 , 10 ,001 ,101 ,101001,…………………}
Any combinations of 0‟s and 1‟s.
(iv)Set of all strings that end with „1‟and has no substring „00‟
(i)(0+1)* 0101(0+1)*
(ii)11(1+a+b)* ab
(iii)(a+b)* bbb (a+b)*
(iv)(1+01)* (10+11)* 1
19. What are the applications of Regular expressions and Finite automata
Lexical analyzers and Text editors are two applications.
Lexical analyzers:The tokens of the programming language can be expressed
using regular expressions. The lexical analyzer scans the input program and separates the
tokens.For eg identifier can be expressed as a regular expression as:
(letter)(letter+digit)*
If anything in the source language matches with this reg exp then it is
recognized as an identifier.The letter is{A,B,C,………..Z,a,b,c….z} and digit is
{0,1,…9}.Thus reg exp identifies token in a language.
Text editors: These are programs used for processing the text. For example
UNIX text editors uses the reg exp for substituting the strings such as:
S/bbb*/b/
Gives the substitute a single blank for the first string of two or more blanks in a
given line. In UNIX text editors any reg exp is converted to an NFA with Є –transitions,
this NFA can be then simulated directly.
20.Reg exp for the language that accepts all strings in which „a‟ appears tripled over
the set Σ ={a}
reg exp=(aaa)*
23.Reg exp for the language such that every string will have atleast one „a‟ followed
by atleast one „b‟.
+ +
R=a b
Theory of Computation 5
24.Write the exp for the language starting with and has no consecutive b‟s
reg exp=(a+ab)*
Regular
Expression
(a)
11. Find CFG with no useless symbols equivalent to : S→AB | CA , B→BC | AB, A→a ,
C→aB | b.
S-> AB
S->CA
B->BC
B->AB
A->a
C->aB
C->b are the given productions.
* *
A symbol X is useful if S => αXβ => w
S->a
S->Ab
S->aBa
A->b A->Є B->b B->A are the given set of production.
Theory of Computation 8
13. What are the three ways to simplify a context free grammar?
By removing the useless symbols from the set of productions.
By eliminating the empty productions.
By eliminating the unit productions.
n n
17.Construct the grammar for the language L={ a b a | n>=1}.
The grammar has the production P as:
S->aAa
A->aAa | b
The grammar is thus : G=( {S,A} ,{a,b} ,P,S)
18. Construct a grammar for the language L which has all the strings which are all
palindrome over Σ={a, b}.
G=({S}, {a,b} , P, S )
P:{ S -> aSa ,
S-> b S b,
Theory of Computation 9
S-> a,
S->b,
S->Є } which is in palindrome.
21. (a)CFL are not closed under intersection and complementation –True.
(b)A regular grammar generates an empty string –True.
(c) A regular language is also context free but not reverse–True.
(d)A regular language can be generated by two or more different grammar –True.
(e) Finite State machine(FSM) can recognize only regular grammar-True.
23. Let G= ( {S,C} ,{a,b},P,S) where P consists of S->aCa , C->aCa |b. Find L(G).
S-> aCa => aba
S->aCa=> a aCa a=>aabaa
S->aCa=> a aCa a=> a a aCa a a =>aaabaaa
n n
Thus L(G)= { a ba ,where n>=1 }
25.What is a parser?
A parser for grammar G is a program that takes as input a string w and produces
as output either a parse tree for w ,if w is a sentence of G or an error message indicating
that w is not a sentence of G.
Theory of Computation 10
NFA PDA
1.The language accepted by NFA is the The language accepted by PDA is
regular language. Context free language.
2.NFA has no memory. PDA is essentially an NFA with
a stack(memory).
3. It can store only limited amount of It stores unbounded limit
information. of information.
4.A language/string is accepted only It accepts a language either by empty
by reaching the final state. Stack or by reaching a final state.
4.What are the different types of language acceptances by a PDA and define them.
For a PDA M=(Q, Σ ,Ґ ,δ ,q0 ,Z0 ,F ) we define :
Language accepted by final state L(M) as:
*
{ w | (q0 , w , Z0 ) |--- ( p, Є , γ ) for some p in F and γ in Ґ * }.
Language accepted by empty / null stack N(M) is:
*
{ w | (q0,w ,Z0) |----( p, Є, Є ) for some p in Q}.
5.Is it true that the language accepted by a PDA by empty stack and final states are
different languages.
Theory of Computation 11
No, because the languages accepted by PDA „s by final state are exactly the
languages accepted by PDA‟s by empty stack.
12. State the equivalence of acceptance by final state and empty stack.
If L = L(M2) for some PDA M2 , then L = N(M1) for some PDA M1.
If L = N(M1) for some PDA M1 ,then L = L(M2) for some PDA M2.
where L(M) = language accepted by PDA by reaching a final state.
N(M) = language accepted by PDA by empty stack.
13. State the equivalence of PDA and CFL.
Theory of Computation 12
NPDA DPDA
Theory of Computation 13
Turing Machine
In one move ,TM depending upon the symbol scanned by the tape head and state
of the finite control:
Changes state.
Prints a symbol on the tape cell scanned, replacing what was written there.
Moves the R/w head left or right one cell.
This is implemented by using an extra track on the tape with symbols Blank or √.
PDA TM
1. PDA uses a stack for 1. TM uses a tape that is infinite .
storage.
2.The language accepted by 2. Tm recognizes recursively
PDA is CFL. enumerable languages.
24. When a recursively enumerable language is said to be recursive ? Is it true that the
language accepted by a non-deterministic Turing machine is different from recursively
enumerable language?
A language L is recursively enumerable if there is a TM that accepts L and
recursive if there is a TM that recognizes L. Thus r.e language is Turing acceptable and
recursive language is Turing decidable languages.
No , the language accepted by non-deterministic Turing machine is same as
recursively enumerable language.
Undecidability
16 marks
1.Prove that ,if L is accepted by an NFA with є-transitions, then L is accepted by an NFA
without є-transitions.
Refer page no:26,Theorem 2.2
2.Prove that for every regular expression there exist an NFA with є-transitions.
Refer page no:30,Theorem 2.3
3.Construct the NFA with є-transitions from the given regular expression.
If the regular expression is in the form of ab then NFA is
a b
є a є
є b є
є a є
Find the equation of the final state with only the input symbols.
Made the simplifications if possible
The equation obtained is the required regular expression.
R
11.Design a PDA that accepts the language {ww | w in (0+1)*}.
Refer page no:112,Example 5.2
12. Prove that if L is L(M2) for some PDA M2,then L is N(M1) for some PDA M1.
Refer page no:114,Theorem 5.1
13.If L is a context-free language, then prove that there exists a PDA M such that
L=N(M).
Refer page no: 116,Theorem 5.3
20. Explain how a TM can be used to determine the given number is prime or not?
It takes a binary input greater than 2,written on the first track, and determines
whether it is a prime. The input is surrounded by the symbol $ on the first track.
Theory of Computation 24
To test if the input is a prime, the TM first writes the number 2 in binary on the
second track and copies the first track on to the third. Then the second track is subtracted
as many times as possible, from the third track effectively dividing the third track by the
second and leaving the remainder.
If the remainder is zero, the number on the first track is not a prime.If the
remainder is non zero,the number on the second track is increased by one.If the second
track equals the first,the number on the first track is the prime.If the second is less than
first,the whole operation is repeated for the new number on the second track.
24.Prove that if a language L and its complement are both recursively enumerable, then L
is recursive.
Refer page no: 180,Theorem 8.3
.
Department of Computer Science and Engineering
UNIVERSITY QUESTIONS
UNIT-I AUTOMATA
PART-A
1. List any four ways of theorem proving. (nov/dec 2008)
2. Define Alphabets. (apr/may 2009)
3. Write short notes on Strings.(apr/may 2008, nov/dec 2009)
4. What is the need for finite automata? (apr2010, nov 2011)
5. What is a finite automaton? Give two examples. (apr 2007,nov 2010)
6. Define DFA. (nov 2011, apr 2008, nov2007)
7. Explain how DFA process strings. (nov 2009)
8. Define transition diagram. (nov 2009, apr 2011)
9. Define transition table.(apr 2008)
10. Define the language of DFA. (apr 2007)
11. Construct a finite automata that accepts {0,1} .(nov/dec 2008)
12. Give the DFA accepting the language over the alphabet 0,1 that have the set of all
strings ending in 00. (nov 2011)
13. Give the DFA accepting the language over the alphabet 0,1 that have the set of all
strings with three consecutive 0‟s. (nov 2011)
14. Give the DFA accepting the language over the alphabet 0,1 that have the set of all
strings with 011 as a substring. (apr 2007)
15. Give the DFA accepting the language over the alphabet 0,1 that have the set of all
strings that either begins or end(or both) with 01. (apr 2012)
16. Give the DFA accepting the language over the alphabet 0,1 that have the set of all
strings such that the no of zero‟s is divisible by 5 and the no of 1‟s is divisible by 3. (
Apr 2012)
17. Define NFA. (nov 2010)
18. Define the language of NFA. (nov 2009)
19. Is it true that the language accepted by any NFA is different from the regular
language? Justify your Answer. (apr 2008)
20. Differentiate DFA and NFA (nov 2010)
21. List the applications of FA.(apr 2007)
22. Define E- closure (apr 2010)
23. what is inductive proof? (nov 2012)
24. What are the two way to represent FA? (nov 2012)
PART B
1. If L is accepted by an NFA with ε-transition then show that L is accepted by an
NFA without ε-transition. (nov/dec 2011)
2. Construct a DFA equivalent to the NFA.
M=({p,q,r},{0,1}, δ,p,{q,s})
Where δis defined in the following table. (nov/dec 2008)
Δ 0 1
P {q,s} {q}
Q {r} {q,r}
R {s} {p}
S - {p}
3. construct equivalent DFA to the NFA given below: (10) (nov/dec 2008)
0 1
P {p,q} P
Q r R
R s -
S s S
4. Define NFA with ε-transition. Prove that if L is accepted by an NFA with ε- transition then
L is also accepted by a NFA without ε-transition. (Nov 2011, apr 2009)
5. Draw the NFA to accept the following languages. (nov/dec 2008)
(i) Set of Strings over alphabet {0,1,…….9} such that the final digit has appeared before.
(8)
(ii)Set of strings of 0‟s and 1‟s such that there are two 0‟s separated by a number of positions that is a
multiple of 4.
6.a) Prove that a language L is accepted by some ε–NFA if and only if L is accepted by
some DFA. (8) (apr 2008)
b) Consider the following ε–NFA.Compute the ε–closure of each state and find it‟s equivalent DFA.
(8) (apr 2008, nov 2011, nov 2007)
ε A b C
p {q} {p} Ф Ф
q {r} Ф {q} Ф
*r Ф Ф ф {r}
7.a) Prove that a language L is accepted by some DFA if L is accepted by some NFA.
(nov 2012)
b) Convert the following NFA to it‟s equivalent DFA
0 1
p {p,q} {p}
q {r} {r}
r {s} ф
*s {s} {s}
8.a) Explain the construction of NFA with εtransition from any given regular expression.
(nov 2012)
b) Let A=(Q,∑, δ, q0 ,{qf ) be a DFA and suppose that for all a in ∑wehave δ(q0,
a)= δ(qf ,a). Show that if x is a non empty string in L(A),then for all k>0,
UNIT-II REGULAR EXPRESSIONS AND LANGUAGES
PART-A
2.a)Construct a Regular expression corresponding to the state diagram given in the following
figure. (nov/dec 2008)
i i
b) Show that the set E={0 1 |i>=1} is not Regular. (6)
b)Obtain the regular expression that denotes the language accepted by the following
DFA. (nov/dec 2008)
4.a)Construct an NFA equivalent to the regular expression ((0+1)(0+1)(0+1))* (apr 2012, nov 2009)
b)Construct an NFA equivalent to 10+(0+11)0*1
5.a)Obtain the regular expression denoting the language accepted by the following
DFA (8) (nov 2010, apr 2012)
b)Obtain the regular expression denoting the language accepted by the
k
following DFA by using the formula Rij
10.Find whether the following languages are regular or not. (apr 2008, nov
2010)
R
(i) L={w ε{a,b}|w=w }.
n m n+m
(ii) L={0 1 2 ,n,m>=1}
k 2
(iii) L={1 |k=n ,n>=1} . (4)
(iv) L1/L2={x | for some y εL2,xy εL1},where L1 and L2 are any two languages and
L1/L2 is the quotient of L1 and L2.
2
11.a) Find the regular expression for the set of all strings denoted by R 13 from the
deterministic finite automata given below: (nov 2011, apr 2007)
b)Verify whether the finite automata M1 and M2 given below are equivalent over {a,b}.
12.Construct transition diagram of a finite automaton corresponding to the
regular expression (ab+c) b. (nov 2012)
13.a)Find the regular expression corresponding to the finite automaton given below.
(nov 2012)
2
b)Find the regular expression for the set of all strings denoted by R 23 from the
deterministic finite automata given below.
PART-A
11. Construct a derivation tree for the string 0011000 using the grammar
S->A0S |0 | SS , A-> S1A | 10. (nov 2009)
12. Give an example for a context free grammar. (nov 2008, apr 2011)
13. Let the production of the grammar be S-> 0B | 1A, A-> 0 | 0S | 1AA, B-> 1|1S |
0BB.for the string 0110 find the right most derivation. Nov 2009
14. What is the disadvantages of unambiguous parse tree. Give an example.
15. Give an example of PDA. (Nov 2008,nov 2012)
16. Define the acceptance of a PDA by empty stack. Is it true that the language accepted by a
PDA by empty stack or by that of final state are different languages. (nov 2010, apr 2009)
17. What is additional featurePDA has when compared with NFA? Is PDA
superior over NFA in the sense of language acceptance? Justify your answer. (nov 2007)
18. Explain what actions take place in the PDA by the transitions (moves)
δ(q,a,Z)={(p1,γ1),(p2, γ2),…..(pm, γm)} and δ(q, ε,Z)= {(p1,γ1),(p2, γ2),…..(pm,γm)}.(
Nov 2007)
19. What are the different ways in which a PDA accepts the language? Define them. Is a true
that non deterministic PDA is more powerful than that of deterministic
PDA? Justify your answer. (apr 2010)
20. Explain acceptance of PDA with empty stack. (nov 2012, apr 2010)
21. Is it true that deterministic push down automata and non deterministic push down automata
are equivalent in the sense of language of acceptances? Justify your answer. (nov 2012)
PART-B
1. a) Let G be a CFG and let a=>w in G. Then show that there is a leftmost derivation of
w. (apr 2010, nov 2008)
b) Let G=(V,T,P,S) be a Context free Grammar then prove that if S=> αthen there is a
derivation tree in G with yield α.
2. Let G be a grammar s->OB/1A, A->O/OS/1AA, B->1/1S/OBB. For the string
00110101 find its leftmost derivation and derivation tree. (nov 2009)
3) a) If G is the grammar S->Sbs/a, Show that G is ambiguous. (apr 2009)
b) Give a detailed description of ambiguity in Context free grammar
4. a) Show that E->E+E/E*E/(E)/id is ambiguous. (6) (nov 2007)
b)Construct a Context free grammar G which accepts N(M), where M=({q0,
q1},{a,b},{z0,z},δ,q0,z0,Φ) and where δis given by
δ(q0,b,z0)={(q0,zz0)}
δ(q0, ε,z0)={(q0, ε)}
and consider the following diagram.
5. a)If L is Context free language then prove that there exists PDA M such that
L=N(M). (apr 2007)
b)Explain different types of acceptance of a PDA.Are they equivalent in sense of language
acceptance? Justify your answer.
6. Construct a PDA accepting {a b a /m,n>=1} by empty stack. Also construct
the corresponding context-free grammar accepting the same set. (nov/dec 2008)
7. a) Prove that L is L(M2 ) for some PDA M2 if and only if L is N(M1) for some PDA M1.
(nov/dec 2008)
b)Define deterministic Push Down Automata DPDA. Is it true that DPDA and PDA are
equivalent in the sense of language acceptance is concern? Justify Your answer. (nov/dec
2008)
8.a) Construct a equivalent grammar G in CNF for the grammar G1 where G1
=({S,A,B},{a,b},{S->bA/aB,A->bAA/aS/a, B->aBB/bS/b},S) (nov/dec 2008)
b)Find the left most and right most derivation corresponding to the tree.
PART-A
1. Explain the Basic Turing Machine model and explain in one move.What are the actions take place
in TM? (nov/dec 2008)
2. Explain how a Turing Machine can be regarded as a computing device to compute integer
functions. (apr 2008)
3.Describe the non deterministic Turing Machine model. Is it true the non deterministic
Turing Machine model‟s are more powerful than the basic Turing Machines? (In the sense of
language Acceptance). (nov 2009)
4.Explain the multi tape Turing Machine mode.Consider the following diagram and write its
transition functions (nov 2011)
5. What is meant by a Turing Machine with two way infinite tape. (apr 2010)
6. Define instantaneous description of a Turing Machine. (apr 2012)
7. What is the class of language for which the TM has both accepting and rejecting
configuration? Can this be called a Context free Language? (apr 2010)
8.The binary equivalent of a positive integer is stored in a tape. Write the necessary
transition to multiply that integer by 2. (apr 2011)
9.What is the role of checking off symbols in a Turing Machine? (apr 2009)
10.State Pumping lemma for Context free language. (apr 2009)
11.Define a Turing Machine. (nov 2012,nov 2009)
12.Mention any two problems which can only be solved by TM. (nov 2010)
13.State Pumping lemma and its advantages. (nov/dec 2012)
14.What are useless symbols in a grammar. (apr 2011)
PART-B
2.a)Show that the language {0 1 2 /n>=1} is not a Context free language. (6) (nov 2010)
b)Convert the grammar S->AB, A->BS/b, B->SA/a into Greibach NormalForm. (10)
3.a)Construct a equivalent grammar G in CNF for the grammar G1 where G1
=({S,A,B},{a,b},{S->bA/aB,A->bAA/aS/a, B->aBB/bS/b},S) (12) (nov 2011)
b)Obtain the Chomsky Normal Form equivalent to the grammarS->bA/aB, A-
>bAA/aS/a, B->aBB/bS/b. (4)
4.a)Begin with the grammar (nov 2011)
S->0A0/1B1/BBA->CB->S/AC->S/ ε
and simplify using the safe order Eliminate ε-Productions Eliminate unit production Eliminate
useless symbols Put the (resultant) grammar in Chomsky Normal Form (10)
5.a)Let G be the grammar S->aS/aSbS/ ε. Prove that L(G)={x/each prefix of x has atleast as
many a's as b's} (6) (apr 2009)
b)Explain the Construction of an equivalent grammar in CNF for thegrammar
G=({S,A,B}{a,b},P,S)
where P={S->bA|aB, A->bAA|aS|a, B->aBB|bS|b} (10)
6.a)Find a Context free grammar with no useless symbol equivalent to S->AB/CA,
B->BC/ABA->a, C->aB/b. (6) (nov/dec 2008)
b)Show that any CFL without εcan be generated by an equivalent grammar in
Chomsky Normal Form. (10)
7.a)Convert the following CFG to CNF S->ASA|aB A->B|S B->b| ε(12) (nov/dec 2008)
8..State and Prove pumping lemma for Context free languages. (16)(nov 2009)
9.a)Design a Turing Machine M to implement the function “multiplication” using the
subroutine „copy‟. (12) (apr 2012)
b)Explain how a Turing Machine with the multiple tracks of the tape can be used to determine
the given number is prime or not. (4)
10)Describe the following Turing machine and their working. Are they more powerful than
the Basic Turing Machine? Multi-tape Turing Machine Multi-
Dimensional Turing Machine (nov 2011)
11. Non-Deterministic Turing Machine. (6) (nov 2012)
12.a) Define Turing machine for computing f(m,n)=m-n ( proper subtraction). (10)
(apr 2011)
b)Explain how the multiple tracks in a Turing Machine can be used for testing given positive
integer is a prime or not. (6)
UNIT-V UNDECIDABILITY
PART-A
PART-B
1.a)Show that union of recursive languages is recursive. (nov/dec
2008)
b)Define the language Ld and show that Ld is not recursively enumerable language. (8)
c)Explain the Halting problem. Is it decidable or undecidable problem
(4)
2.Define Universal language Lu.Show that Lu is recursively enumerable but not recursive.
(nov 2010)
3.a)Obtain the code for the TM (nov 2011)
M=({q1,q2,q3},{0,1},{0,1,B}, δ,q1,B,{q2}) With the moves
δ(q1,1)=(q3,0,R) δ(q3,0)=(q1,1,R) δ(q3,1)=(q2,0,R) δ(q3,B)=(q3,1,L)
δ(q3,B)=(q3,1,L)
4.Show that Ln is recursively enumerable. (nov 2010)
5.a)Define Ld and show that Ld is not recursively enumerable. (12) (nov
2010)
b)Whether the problem of determining given recursively enumerable language is empty or
not? Is decidable? Justify your answer.
6.Define the language Lu. Check whether Lu is recursively enumerable? or Lu is recursive?
Justify your answer. (16) (apr 2008, nov 2011)
7.a)Show that the language Ld is neither recursive nor recursively enumerable. (12) (nov 2010)
b)Describe how a Turing Machine can be encoded with 0 and 1 and give an example.
8.a)Show that any non trivial property J of the recursively enumerable
languages is undecidable. (8) (apr 2011)
b)Show that if L and L are recursively enumerable then L and L recursive.
9.Define the universal language and show that it is recursively enumerable
but not recursive. (apr 2008,nov 2011)
10.Prove that the universal language Lu is recursively enumerable. (16) (apr 2008,nov 2011)
11.State and Prove Rice‟s Theorem for recursive index sets. (16) (apr 2008)
12.a)Show that the following language is not decidable. L={<M>| M is a TM that accepts the
string aaab}. (8) (apr 2009, nov 2011, apr 2010)
b)Discuss the properties of Recursive and Recursive enumerable languages. (8)
13.Define Post correspondence problem with an example. (8) (nov/dec 2008)
14.a)Define the language Ld.Show that Ld is neither recursive nor recursively
enumerable. (12) (nov 2010)
b)Show that if a language L and its complement L are both recursively enumerable then L is
recursive. (4)
15.a)What are the features of a Universal Turing Machine? (4) (nov 2009, apr 2010)
b)Show that “If a language L and its compliment L are both recursively
enumerable,then both languages are recursive”. (6)
16.a)Show that it is undecidable for arbitrary CFG‟s G1 and G2 whether
L(G1)∩L(G2)Is a CFL. (8) (apr 2008)
b)Show that “finding whether the given CFG is ambiguous or not” is undecidable by reduction
technique. (8)
17.Find whether the following languages are recursive or recursively enumerable.
(Nov 2007, apr 2009, nov 2012)
(i) Union of two recursive languages. (4)
(ii) Union of two recursively enumerable languages. (4)
(iii) L if L and complement of L are recursively enumerable. (4)
(iv)Lu (4)
18.Explain the Post‟s Correspondence Problem with an example (16)
(nov2012)