toc
toc
March 2023
THEORY OF AUTOMATA
GROUPA
1 Choose the correct answer from the given alternatives (any twenty): lx20
117
i) Agrammar in CNF may containproductions like
a) A B b) A BC c) A a} d) A-aD
Xxii) Which of the following regular expression over 0, 1}denotes the sct of all string not containing
100 as a sub-string
a) 0'1'0) b) 0'1010 c) o'1'o1* d) o10+ 1'
Xxii) Which of the following grammars generates strings with any number of I's ?
a) b)
S1A, A’ S + 1S, S’E
GROUP-B
2. a) Write the formal definition of DFA.
b) Construct DFA that accept sets of all strings over 0,1| is of length 2
c)Design an NFA for alanguage that accepts all strings over(0,1} in whiclh the second last synbol is alwavs l'
2
3. a) State ARDEN'S Theorem.
bY 2-6
Construct a Regular Expression from the following DE Ausing Arden's fheroterm.
1 0, 1
1
q q3
Q1 Q2 1 Q1 0
Q2 Q3 0 Q4 1
Q3 Q1 0 Q4 0
Q4 Q3 1 Q2 1
6 a) With example write the form of left linear grammar and right linear grammar.
b) Show that the grammar G=((S,. (a, b.. -}.P. S)is ambiguous. Where P = S-> S-S S*S a b:.
4-4=8
7. a) Write the form of Chomsky Normal Form(CNF).
b) Convert the following CFG to CNF, P: S->ASA aB, A->BS, B->bi[ 2-6
INPUT
STATE
A(Initial State) B
E(Final State) B