next up previous contents
Next: Deterministic PDAs Up: PUSH-DOWN AUTOMATA Previous: Converting a CFG to   Contents

Converting a PDA to a CFG

We will proceed in a manner analogous to Kleene's theorem for regular languages: that is, we will try to slice up the machine into various components (each of which has a corresponding language), and then put them back together again using a CFG.

For any PDA, let us define the language

\begin{displaymath}\langle P,Q,t\rangle =
\left\{
\begin{array}{c} x \in \Sigma...
...n from the top of the stack in the process}\end{array}\right\} \end{displaymath}

Now, given any PDA, we construct a context-free grammar which accepts the same language as follows:


next up previous contents
Next: Deterministic PDAs Up: PUSH-DOWN AUTOMATA Previous: Converting a CFG to   Contents
James Power 2002-11-29