Cacsc10 CDCSC10 Cocsc10 CMCSC10 2024
Cacsc10 CDCSC10 Cocsc10 CMCSC10 2024
b) What is Pumping Lemma for regular languages? Is language {uww’~v: Ii, v, w C (a, b}~’}
regular? Prove your answer.
c) 1) Explain the implementation of Theory of Automata and Formal languages in any real
application scenario.
ii) What is the difference between Moore and Mealy machine. Design a Moore machine
that gives 2’s cornplcment of the given input string.
Q2 Attempt any two parts of the following 5+5 Cal,
a) Simpli~, the following grammar: C02
5—, ASA/aB
A~B/5
B—b/s
Find Chomsky normal form for the simplified grammar. What is the difference between
Chomsky normal form and Greibach normal form.
b) What is Chomsky Hierarchy for grammars? For a system, password setting is required.
This is done under certain specific conditions, The password can be of arbitrary length but
must contain at least one letter {A-Z, a-z}, one number {0-9} and one special symbol {“
fi, 5, &, +}. Design CFG showing the given conditions, Prove whether the grammar
,~, ‘~,