Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
25 views3 pages

Question Paper Code:: (10×2 20 Marks)

This document is a question paper for the B.E./B.Tech. Degree Examinations in Computer Science and Engineering, specifically for the Theory of Computation course. It includes various questions divided into two parts, covering topics such as finite automata, context-free grammars, Turing machines, and recursive languages. The exam is scheduled for three hours and is worth a total of 100 marks.

Uploaded by

ykisanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Question Paper Code:: (10×2 20 Marks)

This document is a question paper for the B.E./B.Tech. Degree Examinations in Computer Science and Engineering, specifically for the Theory of Computation course. It includes various questions divided into two parts, covering topics such as finite automata, context-free grammars, Turing machines, and recursive languages. The exam is scheduled for three hours and is worth a total of 100 marks.

Uploaded by

ykisanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

*X60383* Reg. No.

Question Paper Code : X 60383


B.E./B.Tech. Degree Examinations, NOVEMBER/DECEMBER 2020
Fifth Semester
Computer Science and Engineering
CS 2303/CS 53/CS 1303/10144 CS 504 – Theory of Computation
(Regulations 2008/2010)
(Common to PTCS 2303 – Theory of computation for B.E. (Part-Time) Fifth
semester-Computer science and Engineering – Regulations 2009)

Time : Three hours maximum : 100 marks

Answer all questions

Part – A (10×2=20 Marks)

1. Draw the transition diagram (automata) for an identifier.

2. What is a non deterministic finite automaton ?

3. Construct NFA for the regular expression a*b*.

4. Is regular set is closed under complementation ? Justify.

5. What is a CFG ?

6. Define the term Ambiguity in grammars.

7. State the pumping lemma for CFLs.

8. What are the applications of Turing Machine ?

9. What is meant by recursive enumerable language ?

10. Define PCP.


X 60383 -2- *X60383*

Part – B (5×16=80 Marks)

11. a) i) Construct DFA to accept the language. (10)


L = {w|w is of even length and begins with 11}
ii) Write a note on NFA and compare with DFA. (6)
(OR)
b) i) Convert the following NFA to a DFA. (10)
δ a b
p {p} {p, q}
q {r} {r}
r {φ} {φ}
ii) Discuss on the relation between DFA and minimal DFA. (6)

12. a) i) Explain about Finite automata and Regular expressions. (8)


ii) Discuss about the closure properties of regular languages. (8)
(OR)
b) i) Prove that the following languages are not regular (8)
{0n1m| n ≤ m}
{0n12n| n ≥ 1}
ii) Discuss on equivalence and minimization of Automata. (8)

13. a) i) Is the grammar E → E + E / E *E / id is ambiguous ? Justify your


answer. (6)
ii) Find the context free languages for the following grammars.
1) S → asbs / bsas / ε
2) S → asb / ab. (10)
(OR)
b) i) Construct the PDA for L = {wwR/w is in (a + b)*} (10)
ii) Discuss the equivalence between PDA and CFG. (6)
*X60383* -3- X 60383

14. a) i) Explain Turing machine as a computer of integer functions with an


example. (10)
ii) Remove C
− productions from the given grammar. (6)
(OR)
b) Write short notes on the following :
i) Two-way infinite tape TM. (8)
ii) Multiple tracks TM. (8)

15. a) i) If L1 and L2 are recursive language then L1 U L2 is a recursive language. (6)


ii) Prove that the halting problem is undecidable. (10)
(OR)
b) i) State and prove the post’s correspondence problem. (10)
ii) Write a note on NP problems. (6)

–––––––––––––

You might also like