Pcc-Cse 502 (New)
Pcc-Cse 502 (New)
Group A
4X5=20
(Answer any four questions from Q. No. 1 to 6)
1. Convert the following Mealy machine into its equivalent Moore machine: 5
𝑛
5. Construct a Turing Machine M to compute 𝑘=1 𝑘 for a given positive integer n. 5
Group B
5X10=50
(Answer any five questions from Q. No. 7 to 13)
7. Consider the following NFA with ϵ-transitions. Assume „p‟ to be the initial state and 10
„r‟ as the final state.
Compute the ϵ-closure of each state and list all the strings of length three or less
accepted by the automata. Also convert the automaton to its equivalent DFA.
L = {0p 1p pp + q | p ≥ 1, q ≥ 1}
(b) Construct an NFA (Q, ∑, ∂, q0, F) for the following regular expression:
(b) Convert the following CFG into Greibach Normal Form (GNF):
S → AB | 0
A → BX | 1
B → CD | 2
C → AD | 0
D→1
10. Design a top-down parser to implement the following CFG and parse the string 10
“0102313010”.
S → 0S0 | 1S1 | A
A → 2B3
B → 23 | 31
11. Construct a Post Machine M over {0,1} such that L(M) = {0 n1n0n | n ≥ 1}. Show 10
diagrammatically the correspondence between a Turing Machine and a Post
Machine.
12. Design a Turing Machine M to convert a binary-coded decimal number into a unary 10
number. Validate the design for “1001” and “0000”.
13. Prove or disprove the following theorem statements in the context of Decision 2X5=10
Problems and/or Undecidability: