Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
B.Tech. – Semester 5 | December 2025
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(a) Explain finite automata in their roles as language recognizers and translators.
1(b) Design a Mealy machine producing output 1 for input 1 and output 0 for every other input symbol.
Question 2
2(a) Explain DFA and NFA with examples.
2(b) Convert the NFA to an equivalent DFA: states {q₀,q₁}, alphabet {a,b}, δ(q₀,a)={q₀,q₁}, δ(q₀,b)={q₀}, δ(q₁,b)={q₁}; final state q₁.
Question 3
3(a) Explain regular expressions and Arden’s theorem.
3(b) Give a regular expression over {a,b} for all strings ending in ab.
Question 4
4(a) Explain context-free grammars and derivation trees.
4(b) For S→aSb | ab, derive aabb and draw its parse tree.
Question 5
5(a) Explain grammar ambiguity and methods for removing it.
5(b) Convert the grammar S→AB | a, A→a, B→b into Chomsky normal form.
Question 6
6(a) Explain pushdown automata, including deterministic and nondeterministic PDAs.
6(b) Design a PDA for L={aⁿbⁿ | n≥1}.
Question 7
7(a) Explain Turing machines and techniques used to construct them.
7(b) Design a Turing machine accepting strings over {0,1} with an even number of 1s.
Question 8
8(a) Explain decidable, undecidable, recursive and recursively enumerable languages.
8(b) Define the halting problem and explain its undecidability.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion