Professional Documents
Culture Documents
Apznzab8jevbwbnzjl5rueb2hnukap7rfwfu Weu6tvuuqpizvhjos2lcktdyptwdkp6f1olqi5 Cg72jf2pvi34whcxz 3iaqsjcmk...x9ccu Luwvrb i2m9korm k572h4cflkcvodory9nynjh4tky2jqh126l5tu7bc1wokzndtl6 Ixwxvvoiqztij4qvob q0fsrdbeu8ut1wwt8rmecx4jwf s=
Apznzab8jevbwbnzjl5rueb2hnukap7rfwfu Weu6tvuuqpizvhjos2lcktdyptwdkp6f1olqi5 Cg72jf2pvi34whcxz 3iaqsjcmk...x9ccu Luwvrb i2m9korm k572h4cflkcvodory9nynjh4tky2jqh126l5tu7bc1wokzndtl6 Ixwxvvoiqztij4qvob q0fsrdbeu8ut1wwt8rmecx4jwf s=
B.Tech.
(SEM IV) EVEN SEMESTER THEORY EXAMINATION, 2021-22
Note:
(i) Answer ALL questions. All questions carry equal marks.
(ii) Notations/ Symbols/ Abbreviations used have usual meaning.
(iii) Make suitable assumptions, wherever required.
(d) Design a deterministic finite automata which (DFA) with minimum number of states which 5
accepts all the strings over Σ = {0, 1, 2, 3}, which if treated as decimal number, sum of their
digits is divisible by 3.
OR
Construct a minimum state automata equivalent to following automata.
KCS-402 Page 1
OR
Obtain the regular expression for the following finite automata.
OR
Convert the following grammar into Greibach Normal Form (GNF).
S → AB
A → BS | 0
B → SA | 1
Q4. Answer ALL parts.
(a) Construct a Deterministic Push Down Automata (PDA) which accepts the language L 10
defined as follows:
L={ a2mbncm | m, n are natural numbers}.
(b) (i) Write a context free grammar that generates the following language L. 4+6
L= {ambn+pcp| m, n, p are natural numbers}
(ii) If L1 and L2 are context free languages then L1 - L2 is also context free language. Prove
or disprove.
OR
(i) Give a formal definition of deterministic PDA. What do you understand by
Instantaneous Description (ID) of Pushdown automata?
(ii) Obtain the equivalent CFG that generates the same language L which is accepted by
the given PDA M= ({q0}, {a, b}, { a, b, Z0}, δ, q0, Z0, Φ ) by empty stack.
OR
i) Obtain solution, if it exists, of the PCP instance presented as two lists
A= (ab, a, bc, c) and B= (bc, ab, ca, a)
ii) What do you understand by undecidable problem? Explain.
iii) Discuss the importance of the question whether P = NP or P ≠ NP.
KCS-402 Page 2