Professional Documents
Culture Documents
FLAT-R20A
FLAT-R20A
FLAT-R20A
***
4 a)Construct NFA for the following regular expression 6 4 2
(0+1)*01*+(10+11)1*0 6 4 2
b) Convert the following DFA to regular expression
OR
5 a) Convert the following DFA to the right linear grammar: 6 4 2
***
6 a)Construct equivalent grammar in Chomsky Normal Form for the 6 4 3
grammar
G=( {S,A,B},{a,b}, S->aAbB, A->aA/a, B->bB/b } ,S}
b) Design PDA that accepts the following language: 6 6 3
L={ wwR/ wε {a,b}* }
OR
7 a) Discuss closure properties of Context Free Languages in detail. 6 2 3
b) Write the context-sensitive grammar to accept the following 6 4 3
language : L = { anbncn| n≥1}.
***
8 Design Turing machines to recognize the languages 6 6 4
a) L = { 0n1n | n≥1}.
b) L={ w/ w ε {a,b}* and na(w)=nb(w) } 6 6 4
OR
9 a) Compare Recursive and Recursive enumerable languages in detail. 6 2 4
b) Discuss different types of Turing Machines in detail. 6 2 4
***
10 a)Define a universal Turing machine and explain how it can 6 2 5
simulate the behavior of any other Turing machine.
b) Discuss undecidable problems about languages. 6 2 5
OR
11 Discuss P, NP, and NP-complete problems with suitable examples 12 2 5
and also write the differences between them.
***