RGPV CS-501 Theory of Computation May 2023 Solved Paper

December 4, 2026 · Team EasyExamNotes · 2 min read (est.) · 0 comments

Share on WhatsApp

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.

View Answer →


Question 2

2(a)(i) Construct a DFA over {a,b} accepting strings with exactly one a.

View Answer →

2(a)(ii) Construct a DFA over {a,b} accepting strings with at least one a.

View Answer →

2(a)(iii) Construct a DFA over {a,b} accepting strings with at least one a followed by exactly two b symbols.

View Answer →


Question 3

3(i) Give a regular expression for strings containing 1100 as a substring.

View Answer →

3(ii) Give a regular expression for binary strings ending in 00.

View Answer →

3(iii) Give a regular expression for {ε,a,aa,aaa,aaaa,…}.

View Answer →


Question 4

4(a) Explain Arden’s theorem and the pumping lemma.

View Answer →

4(b) Define ambiguity and explain it using two examples.

View Answer →


Question 5

5(a)(i) Design a CFG for L(G)={aⁱbʲcᵏ | i≠j or j≠k}.

View Answer →

5(a)(ii) Design a CFG for L(G)={aⁱb²ʲ | i≥0} (condition as printed).

View Answer →

5(b) Define context-free grammar with an example.

View Answer →


Question 6

6(a) Explain DPDA and NPDA with suitable examples.

View Answer →

6(b) Explain recursively enumerable languages and decidability.

View Answer →


Question 7

7(i) Design a PDA for aⁿb³ⁿ, n≥1.

View Answer →

7(ii) Design a PDA for wwᴿ where w∈{a,b}².

View Answer →


Question 8

8(i) Write a short note on the halting problem (any three of Q8).

View Answer →

8(ii) Write a short note on Turing machines (any three of Q8).

View Answer →

8(iii) Write a short note on Chomsky normal form (any three of Q8).

View Answer →

8(iv) Write a short note on two-way DFA (any three of Q8).

View Answer →

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion