TE CS - TOC @PuneEngineers
TE CS - TOC @PuneEngineers
OR
Q2 A Prove that the language 06 03 1,2,3 1,2,3 2,3
L={ap | p is a prime} is not context free language. ,12
B Construct left linear and right linear grammar for the 06 03 1,2,3 1,2,3 4,5
language. ,12
0*(1 ( 0+1 ) )*
C Convert the grammar given below to its equivalent CNF: 06 03 1,2,3 1,2,3 02
S → PQP | ∈ ,12
P → 0P | ∈
Q → 1Q | ∈
OR
Q6 A Design TM that recognizes occurrence of substring ‘101’ 06 05 1,2,3 1,2,3 02,4
and replaces it with 110. ,4,12
B Design a TM to recognize an arbitrary string divisible by 06 05 1,2,3 1,2,3 02,4
4, given ∑ ={0,1,2}. ,4,12
C Construct a TM that accepts a language L,a*ba*b. 05 05 1,2,3 1,2,3 02,4
,4,12
Q7 A Write a short note on Post Correspondence Problem? 06 06 1,2,3 1,2,3 2,3
,4
B What are Tractable and Intractable problems? Explain it? 06 06 1,2,3 1,2,3 2,3
,4
C Differentiate between P-class problems and NP-class 05 06 1,2,3 1,2,3 2,3
problem? ,4
OR
Q8 A What is Travelling Salesman Problem? Justify that it is a 06 06 1,2,3 1,2,3 2,3
NP-class ,4
Problem.
B Write a short note on Node-Cover Problem? 06 06 1,2,3 1,2,3 2.3
,4
C What is Polynomial Time Reduction? Explain It with 05 06 1,2,3 1,2,3 2,3
suitable example? ,4