Ict Toc
Ict Toc
Department of CSE
ICT -1
Semester & Branch: IV / CSE Time: 3.00 Hours Date:24.5.24
Subject Code/Name:CS3452/Theory of Computation Max. Marks: 100
PART A (10x2=20)
Answer all the Questions
1 List down a few properties of recursively enumerable set.
2 Define class P and NP Problems. Give Example
3 When is a language L is recursively enumerable?
4 What are NP hard problems?
5 What are recursive languages?
6 Identify whether ‘Tower of Hanoi’ problem is tractable or intractable. Justify your answer
7 Distinguish between PCP and MPCP? What are the concepts used in Universal Turing
Machine.
8 Illustrate about Time and Space complexity of TM?
9 Describe Post Correspondence Problem.
10 Formulate the 2 problems of recursively enumerable sets which are undecidable?
(or)
b) i) State and describe Rice Theorem 6
ii) Show that the characteristic function of the set of all even number is recursive 7
PART C -(1X15 =15)
16 a) Consider and find the languages obtained from the following
i)Union of two recursive language 6
ii)Union of two recursively enumerable languages 7
iii)Define NP hard and NP completeness Problem 2
(or)
b) i) 8
0S1/A,A
1A0/S/ into an equivalent PDA and check whether 0101 belongs to it. 8
ii Construct an appropriate model to recognize the language L defined by
L={an bm c m d n/n,m>=0} 7
12 a) Construct a DFA for the following language and check whether w=’01101’ is a 13
valid string or not.
L(G)={w|w ε(0,1) and w starts with 1 and have even length.
(or)
b) Explain the DFA minimization algorithm with an example 13
13 a) Convert the following NFA with ε, to a NFA without ε.
0 1 2 ε
qo {qo} {φ} {φ} {q1}
(start) 13
q1 {φ} {q1} {φ} {q2}
a b
p(start) {p} {p,q} 13
q {r} {r}
r {φ} {φ}
14 a) i) Design a PDA that will accept strings(a+b)* in which the number of a’s is greater 7
than the number of b’s given the alphabet ∑={a,b}
ii) .Convert the above PDA to its equivalent CFG 6
(or)
b) Prove that the set of regular language is closed under complementation (i.e).If L is a
regular language then L’ is also a regular language. Give an Example. 13
15 a) Convert the following NFA into R.E 13
(or)
b) Construct a finite automata for the R.E 10 + (0+11) 0* 1 13
a b c
1 {3} φ {2}
2 {1} φ φ
3 {2} {2,3} φ 15
Convert the NFA (N) into DFA (M) that accepts the same language.
(or)
b) Convert the following to regular expression 15
Subject In-Charge HOD IQAC PRINCIPAL