Toc Paper BTCS501
Toc Paper BTCS501
of Printed Pages: 02
Roll No. ../..(. Cl
BTCS501
VI Semester Examination, May - June 2022
B. Tech. (CCE/CSE/CSE-AII/CSE-ES/CSE-ICS/CSE-BDAI/CSE-MAlCSE-CMClilT)
B.Tech.+ M.Tech. (CSE/CSE-CC/CSE-CF/CSE-BDAlIT)
B.Tech.+ M.B.A. (CSEIIT)
THEORY OF COMPUTATION
Choice Based Credit System (CBCS)
Time: 3 Hrs. Maximum Marks: 60
Minimum Pass Marks: 24
Note: All questions carry equal marks, out of which part' A ' and'B' carry 3 marks and part 'c' carries 6 marks.
From each question, part 'A' and 'B' are compulsory and part 'c' has internal choice.
Draw neat diagram, wherever necessary. .
Assume suitable data wherever necessary.
06
(C) Explain pumping lemma for regular language. Prove following language is not regular.
L= {ani : nat)
OR
(D) ·Find out the Regular Expression from given DFA
06
Contd ...
1
Q;3(A) Explain Chomsky Normal Form with example. 03
(8) Give Context Free Grammar for Reg~'jar Expressi~n'(011+1)* (01)* 03
(C) Check whether the fO"~~i~g grammar is ambiguous or not. Remove the ambiguity
from. the grammar in case the grammar is ambiguous.
S ~abAB
A~bABI A
B~BAa IAI A
I
OR
(0) Convert the grammar into Greibach Normal Form.
S~ABbl a
A~aaAI B
, . . B~bAb
OR
(0) Construct the PDA for the following example {amb"cm+" m,n ~1} 06
*******