Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
B.Tech. – Semester 5 | December 2024
CD-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) Define closure properties of regular languages and explain important examples of these properties.
1(b) State and prove the mathematical induction theorem.
Question 2
2(a) Minimize the DFA with initial q₀, finals {q₁,q₂,q₄}, and transitions on (0,1): q₀→(q₃,q₁); q₁→(q₂,q₅); q₂→(q₂,q₅); q₃→(q₀,q₄); q₄→(q₂,q₅); q₅→(q₅,q₅).
2(b) Explain Arden’s theorem, derive the regular expression for the given automaton, and discuss applications. The initial state loops on 0 and goes to the accepting state on 1; the accepting state loops on 0 and goes to a dead state on 1; the dead state loops on 0 and 1.
Question 3
3(a) Discuss Chomsky and Greibach normal forms with examples.
3(b) Construct a CFG for L(G)={aⁿbᵐcᵐd²ⁿ | n≥0, m>0}.
Question 4
4(a) Define PDA, discuss its closure properties, and draw a PDA accepting {0¹1ⁿ | n≥0} (exponent as printed).
4(b) Explain the CFG-to-PDA conversion procedure and apply it to S→aABB | aAA, A→aBB | a, B→bBB | A, C→a.
Question 5
5(a) Prove that no algorithm decides whether an arbitrary Turing machine halts on input 101.
5(b) Construct a TM accepting L={0ⁿ1ⁿ2ⁿ | n≥0} over {0,1,2}.
Question 6
6(a) Convert the Mealy machine to an equivalent Moore machine. Initial q₁; transitions (input/output): q₁→q₁ on a/1, q₁→q₂ on b/0; q₂→q₄ on a/1 and b/1; q₄→q₃ on a/0, q₄→q₁ on b/1; q₃→q₂ on a/1, q₃→q₃ on b/1.
6(b) Convert the ε-NFA to an NFA: initial q₀, final q₂; q₀↔q₁ on 1, q₀→q₂ on ε, q₂↔q₃ on 0, q₂→q₄ on 1, q₄→q₂ on 0.
Question 7
7(a) Construct a finite automaton for (0+1)*(00+11)(0+1)*.
7(b) Explain P, NP and NP-complete problems with suitable examples.
Question 8
8(a) Write a short note on undecidable problems (any two of Q8).
8(b) Write a short note on two-way finite automata (any two of Q8).
8(c) Write a short note on NFA (any two of Q8).
8(d) Write a short note on properties of context-free grammar (any two of Q8).
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion