09.01.2015 Views

Pushdown Automata - Hampden-Sydney College

Pushdown Automata - Hampden-Sydney College

Pushdown Automata - Hampden-Sydney College

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Equivalence of PDAs and CFGs<br />

<strong>Pushdown</strong><br />

<strong>Automata</strong> -<br />

Equivalence<br />

to CFGs<br />

Robb T.<br />

Koether<br />

Homework<br />

Review<br />

Equivalence<br />

of PDAs and<br />

CFGs<br />

Proof ⇒<br />

Proof ⇐<br />

Long Example<br />

Short<br />

Example<br />

Assignment<br />

Proof (⇐).<br />

Given a PDA M, we must construct a grammar G that<br />

generates L(M).<br />

Modify M so that<br />

M has a single accept state.<br />

M empties its stack before accepting.<br />

Each transition either pushes one symbol or pops one<br />

symbol, but not both.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!