Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
B.Tech. – Semester 5 | May 2023
CS-501 (GS) – 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 Convert both Moore machines to Mealy machines. Both start at q₀/0 and have q₁/1. Machine (i): q₀ loops on a, moves to q₁ on b; q₁ loops on a,b. Machine (ii): both printed arrows labelled a,b point from q₀ to q₁; no outgoing transition from q₁ is shown.
Question 2
2(a)(i) Construct a DFA over {a,b} accepting strings with exactly one a.
2(a)(ii) Construct a DFA over {a,b} accepting strings with at least one a.
2(a)(iii) Construct a DFA over {a,b} accepting strings with at least one a followed by exactly two b symbols.
Question 3
3(i) Give a regular expression for strings containing 1100 as a substring.
3(ii) Give a regular expression for binary strings ending in 00.
3(iii) Give a regular expression for {ε,a,aa,aaa,aaaa,…}.
Question 4
4(a) Explain Arden’s theorem and the pumping lemma.
4(b) Define ambiguity and explain it using two examples.
Question 5
5(a)(i) Design a CFG for L(G)={aⁱbʲcᵏ | i≠j or j≠k}.
5(a)(ii) Design a CFG for L(G)={aⁱb²ʲ | i≥0} (condition as printed).
5(b) Define context-free grammar with an example.
Question 6
6(a) Explain DPDA and NPDA with suitable examples.
6(b) Explain recursively enumerable languages and decidability.
Question 7
7(i) Design a PDA for aⁿb³ⁿ, n≥1.
7(ii) Design a PDA for wwᴿ where w∈{a,b}².
Question 8
8(i) Write a short note on the halting problem (any three of Q8).
8(ii) Write a short note on Turing machines (any three of Q8).
8(iii) Write a short note on Chomsky normal form (any three of Q8).
8(iv) Write a short note on two-way DFA (any three of Q8).
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion