CST301 QP
CST301 QP
PART A
(Answer all questions; each question carries 3 marks) Marks
1 Draw transition diagram for NFA (with or without є-moves) for strings starting
3
with ‘10’ or ‘11’. ∑ = {0,1}
2 Define the language acceptability by DFA, NFA and Ɛ-NFA 3
3 Write down the regular expression for strings with even number of a’s.
3
∑ = {a, b}
4 How can we identify two equivalent states in a DFA? 3
5 Is the grammar ‘E → E+E / E*E / a’ ambiguous? Justify your answer. 3
6 State Myhill - Nerode Theorem 3
7 Differentiate between DPDA and NPDA 3
8 List out the transition rules ‘δ’ used to convert given CFG G to its equivalent
3
NPDA M.
9 Explain how Turing Machine differs from PDA. 3
10 Why TM model is widely accepted and considered as a general model for
3
computers?
PART B
(Answer one full question from each module, each question carries 14 marks)
Module -1
11 a) Prove that for every NFA M, there exist an equivalent DFA M’ 7
b) Design an NFA (without Ɛ-moves) for strings ending with ‘01’. Convert it into
7
equivalent DFA. ∑ = {0, 1}
12 a) Draw the transition diagram of DFA for L = { baxb / x Є {a, b}* } and obtain its
7
regular grammar
Page 1 of 3
11CST3011222011100CST301122101
b) Show the equivalence classes of Canonical Myhill – Nerode relation for the
7
languages of binary strings with odd number of zeros and even number of ones.
Module -4
17 a) Prove that for every PDA accepted by empty stack, there exists an equivalent
7
PDA accepted by final state.
b) Design PDA for L = { ai bj ck / k = i + j }. Illustrate the working for the string
7
‘aabbcccc’
Page 2 of 3
11CST3011222011100CST301122101
Page 3 of 3