Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
B.Tech. – Semester 5 | November 2019
CS-501 (CBGS) – Theory of Computation
Time: 3 hours | Maximum marks: 70
Attempt five questions. Each main question has equal weight (14 marks). In case of ambiguity, the English version takes precedence.
Questions restated for study purposes.
Question 1
1(a) Explain closure properties of regular languages and define important closure operations.
1(b)(i) Obtain a regular expression for all strings over Σ = {a,b} containing exactly two a symbols.
1(b)(ii) Obtain a regular expression for L = {aˣ | x is divisible by 3 or 5}.
Question 2
2(a) Prove that regular sets are closed under intersection.
2(b) Let A and B be context-free languages over the same alphabet Σ. Prove that A ∪ B is context-free.
Question 3
3(a) Find Chomsky Normal Form for the CFG: S → ABA; A → aA | ε; B → bB | ε.
3(b) Convert the grammar to GNF: A₁ → A₂A₃; A₂ → A₃A₁ | b; A₃ → A₁A₂ | a.
Question 4
4 Explain Mealy and Moore machines briefly and describe their differences.
Question 5
5 Design a PDA accepting L = {aⁿbᵐaⁿ | m,n > 0}.
Question 6
6 Explain recursively enumerable languages and describe the Turing machine and its properties.
Question 7
7 Describe NFA and DFA briefly and explain construction of a DFA for r = (0+1)*(00+11)(0+1)*.
Question 8
8(i) Write a short note on reducibility.
8(ii) Write a short note on epsilon transition.
8(iii) Write a short note on the halting problem of a Turing machine.
8(iv) Write a short note on NP-complete problems.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion