edited by
900 views
1 votes
1 votes

For Language $L=\{a^{n}b^{n}|n\geq 0\}$

Design Final state PDA and Empty Stack PDA$?$

I can able to design Final state PDA, can someone explain in detail to design Empty Stack PDA$?$

I have another doubt acceptance of  Final state PDA and Empty Stack PDA are the same in case of NPDA, but in case of DPDA I don’t know$?$

 

edited by

1 Answer

Best answer
2 votes
2 votes

PDA is of two types i) DPDA ii) NPDA

  • DPDA with Final state is more powerful then DPDA with the empty stack.

Example${\color{Magenta} {:L=\{a^nb^nc^m|n,m\geq0\}}}$ it is deterministic context-free language (DCFL) we can make a DPDA with final state.  but we can not make a DPDA with the empty stack for this language. so we can say DPDA with Final state is more powerful.

  • NPDA with Final state and  NPDA with empty stack,both have the same power. 

 

edited by

Related questions

0 votes
0 votes
1 answer
1
HHH777 asked Mar 25, 2018
547 views
if we have $n$ consecutive $1s$ in binary then its magnitude is $2^n -1$similarly ,do we have any short cut like ,if we have $n$ consecutive $1s$ after a decimal point...
3 votes
3 votes
1 answer
2