Professional Documents
Culture Documents
Apznzaacar1h Utiu2wut Yc1l1ibi Abkh5q Sms Xeywkfhzrzynzyx8aldgpxllv4bhe Argag g Hkfrq8y5o5mipw18a3z86vhczh...Ywc8qisohrjiiwsoisnmnviyovg2ijfxnhb41qyx0npdgtiqeqddx3mqgvw8xwuvf9 Wuuhgtpdkdmf20x33zimssx7tg5h31tedayxvaszt Bl1bfyyejpza=
Apznzaacar1h Utiu2wut Yc1l1ibi Abkh5q Sms Xeywkfhzrzynzyx8aldgpxllv4bhe Argag g Hkfrq8y5o5mipw18a3z86vhczh...Ywc8qisohrjiiwsoisnmnviyovg2ijfxnhb41qyx0npdgtiqeqddx3mqgvw8xwuvf9 Wuuhgtpdkdmf20x33zimssx7tg5h31tedayxvaszt Bl1bfyyejpza=
B.Tech.
(SEM IV) EVEN SEMESTER THEORY EXAMINATION, 2022-23
Note:
(i) Answer ALL questions. All questions carry equal marks.
(ii) Notations/ Symbols/ Abbreviations used have usual meaning.
(iii) Make suitable assumptions, wherever required.
(b) Discuss the difference between Moore Machine and Mealy Machine with the help of 5
suitable examples.
OR
i. What do you understand by concept of nondeterminism in the context of
abstract machines?
ii. Simplify the regular expression (r1+ r2+ r1 r2+ r2 r1)*
(d) Obtain a DFA with minimum states which accepts the set of all those strings over Σ= {0,1} 5
which do not contain 0100.
OR
Construct a minimum state automata equivalent to following automata.
KCS-402 Page 1
(b) Consider the given Language L. 10
L= {am | m is non prime natural number }
Prove whether L is regular or not.
OR
Obtain the regular expression for the following finite automata.
(b) Consider the given CFG G = (V,T,P,S) for algebraic expression. V= {S}, T= {$, *, %, a}, 10
S is start symbol. Productions P are as follows.
S→ S$S| S%S| S*S | a
$, *, % are binary operators in increasing order of precedence. $ and % are right
associative while * is left associative. a is identifier.
Show that grammar G is ambiguous and hence obtain equivalent unambiguous grammar
free from left recursion.
OR
(b) (i) Write a context free grammar for the language L defined as follows. 10
L={ambncp | m = n or n=p; m, n, p are natural numbers}.
(ii) Prove that intersection of two Context Free Languages may not be Context Free
Language.
OR
(i) Obtain the equivalent PDA that accepts the same language L which is generated by the
following context free grammar.
S → aSb
A → bAa | S | ԑ
(ii) Give an example of the language which is accepted by some NPDA but not by any
DPDA.
KCS-402 Page 2
(iii) What do you understand by following statement in context of PDA? Explain.
OR
Differentiate between the following:
i) Recursively enumerable language and recursive language
ii) Post Correspondence Problem (PCP) and Modified Post Correspondence Problem
(MPCP)
iii) P and NP Class of problem
KCS-402 Page 3