Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
B.Tech. – Semester 5 | November 2023
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) Design a DFA over {a,b} accepting strings containing at least three a symbols.
1(b) Design a Mealy machine that produces the two’s complement of a binary number.
Question 2
2(a) Design a Moore machine computing the remainder modulo 3 of a binary input.
2(b) Minimize the DFA with initial q₁, accepting q₃ and q₅, and transitions (on 0,1): q₁→(q₂,q₃), q₂→(q₃,q₅), q₃→(q₄,q₃), q₄→(q₃,q₅), q₅→(q₂,q₅).
Question 3
3(a) Construct an NFA equivalent to 01(11+00)0*1.
3(b) Obtain a regular expression for the automaton with initial and final q₁ and transitions (on 0,1): q₁→(q₁,q₂), q₂→(q₃,q₂), q₃→(q₁,q₂).
Question 4
4(a) Define ambiguous grammar and test whether S→aAB, A→bC|cd, B→c|d, C→cd is ambiguous.
4(b) Simplify the grammar S→aA|aBB, A→Aaa|ε, B→bB|bbC, C→b.
Question 5
5(a) Find an equivalent CNF grammar for S→bA|Ab, A→bAA|aS|a, B→aBB|bS|b.
5(b) Construct an NPDA accepting L={wwᴿ | w∈{a,b}*} by empty stack.
Question 6
6(a) Construct a PDA for S→aABB|aAA, A→aBB|a, B→bBB|A.
6(b) Construct a CFG for N(M), where M=({q₀,q₁},{a,b},{x,z₀},δ,q₀,z₀,∅), with δ(q₀,0,z₀)=(q₀,xz₀), δ(q₀,0,x)=(q₀,xx), δ(q₀,1,z)=(q₁,ε), δ(q₁,1,x)=(q₁,ε), δ(q₁,ε,x)=(q₁,ε), δ(q₁,ε,z₀)=(q₁,ε). (Alphabet and z notation as printed.)
Question 7
7(a) Design a Turing machine accepting L={wcwᴿ | w∈(0+1)} (notation as printed).
7(b) Determine whether the PCP instance (0,01), (100,001), (110,10) has a solution.
Question 8
8(a) Write a short note on two-way DFA.
8(b) Write a short note on the Chomsky hierarchy of grammars.
8(c) Write a short note on the Petri net model.
8(d) Write a short note on universal Turing machines.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion