11.01.2015 Views

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

Pushdown Automaton: CFL and the pumping lemma

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.

From PDA to CFG<br />

• For any word w accepted by a PDA<br />

P=(Q,,,,q 0 ,q f ) <strong>the</strong> process starts at q 0 with an<br />

empty stack <strong>and</strong> ends at q f with an empty stack.<br />

• Definition: for any two states p,qQ we define<br />

L p,q to be <strong>the</strong> language that if we starts at p with<br />

an empty stack <strong>and</strong> run on wL p,q we end at q<br />

with an empty stack.<br />

• We define for L p,q a variables A p,q s.t.<br />

L p,q = {w | A p,q * w}<br />

• Note, that L(P)=L q0 ,q f<br />

21

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

Saved successfully!

Ooh no, something went wrong!