09.01.2015 Views

Pushdown Automata - Hampden-Sydney College

Pushdown Automata - Hampden-Sydney College

Pushdown Automata - Hampden-Sydney College

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Group 1 Rules<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 />

Example (Convert a PDA to a CFG)<br />

That gives 54 rules.<br />

We can eliminate the ones containing variables of the<br />

form A xp for x ≠ p and A ux for x ≠ u.<br />

That eliminates 12 rules, leaving 42.<br />

A ps → A px A xs for all x ∈ Q, x ≠ u<br />

A pq → A px A xq for all x ∈ Q, x ≠ u<br />

A pu → A px A xu for all x ∈ Q<br />

A qs → A qx A xs for all x ∈ Q, x ≠ p, u<br />

A qq → A qx A xq for all x ∈ Q, x ≠ p, u<br />

A qu → A qx A xu for all x ∈ Q, x ≠ p<br />

A ss → A sx A xs for all x ∈ Q, x ≠ p, u<br />

A sq → A sx A xq for all x ∈ Q, x ≠ p, u<br />

A su → A sx A xu for all x ∈ Q, x ≠ p

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

Saved successfully!

Ooh no, something went wrong!