Assignment 5-Theory of Computation
Assignment 5-Theory of Computation
33) Draw the PDA to accept the language L ={an bn | n >= 0}.
34) Draw the PDA to accept the language L ={an b2n | n >= 0}.
35) Draw the PDA to accept the language L ={a2n bn | n >= 0}.
36) Draw the PDA to accept the language L ={am bn | n >= 0}.
37) Draw the PDA which accepts all strings containing equal
number of a’s and equal number of b’s.
38) Draw the PDA which accepts all palindrome strings
over{a,b}.
39) Draw the PDA which accepts all Hash palindrome strings
over{a,b}.
40) Draw the PDA to accept the language L ={an bm Cm+n | n,m >=
1}.
41) Give the CFG for the following language L ={an bn | n >= 0}.
43) Consider the grammar S→PQ| SQ| PS, P →x, Q →y. To get
string of n terminal, the number of productions to be used is?
50) For the given grammar what is the equivalent CFG without
useless symbols S→AB| a , A→a.