Language anw wRbn is Context Free language. We can write context free Grammar for this language.
S --> aSb | R
R --> aRa | bRb | ^
^
is null symbol
PDA: for language anw wRbn
- push prefix string
a
n
- push
w
- pop
w
while match each symbol against symbol inw
R
- pop all
a
pushed in stack and match againstb
in suffixb
n
Note: we while processing string of language anw wRbn through PDA we don't know where prefix a
n
ends then where w
ends before w
R
starts so for this language we can't draw a deterministic model of PDA although Non-deterministic PDA is possible. And Important thing is class of non-deterministic PDA is not same as class of deterministic PDA that means scope deterministic context free languages are not equals to non-deterministic context free. (actually deterministic is subset of non-deterministic CFL)