TOC4
TOC4
TOC4
PART – B
(Answer all the questions: 05 X 10 = 50 Marks)
n(n+1)(2n+1)
2 (a) Prove that ∑𝑛𝑛𝑖𝑖=0 i2 = .
6
(b) Explain the steps to convert NFA to DFA. Illustrate with an example.
OR
3 (a) What is Mealy machine? Design Mealy machine for incrementing the value of any binary number
by one. The output should also be a binary number with value one more than the number given.
(b) Minimize the following DFA.
Contd. in page 2
Page 1 of 2
Code: 19A05501 R19
8 (a) Construct a PDA that accepts the following language L= { an bn n>=0 }. Show the moves of PDA
for aabb.
(b) Write about applications of PDA.
OR
9 (a) Explain DPDA and NPDA.
(b) Construct of PDA for recognizing the language generated by the following CFG:
S → AB│BA
A → aA│a
B → bB│b
10 Explain the following: (i) Composite TM. (ii) Halting problem of TM.
OR
11 Explain NP, NP Hard and NP complete problems.
*****
Page 2 of 2