Languages of PushDown Automata
Languages of PushDown Automata
PDA Acceptance
A language can be accepted by Pushdown automata using two
approaches:
o If L = N(P1) for some PDA P1, then there is a PDA P2 such that L =
L(P2). That means the language accepted by empty stack PDA will
also be accepted by final state PDA.
o If there is a language L = L (P1) for some PDA P1 then there is a
PDA P2 such that L = N(P2). That means language accepted by final
state PDA is also acceptable by empty stack PDA.
Example:
Construct a PDA that accepts the language L over {0, 1} by empty stack
which accepts all the string of 0's and 1's in which a number of 0's are
twice of number of 1's.
Solution:
Now, consider the second part i.e. if 0 comes before 1's. The logic is that
read first 0, push it onto the stack and change state from q0 to q1. [Note
that state q1 indicates that first 0 is read and still second 0 has yet to
read].