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 CFG to PDA<br />

• We define as follows (shorth<strong>and</strong> notation):<br />

– (q start ,,)={(q loop ,S$)}<br />

– (q loop ,,A)={(q loop , 1 … k ) | for each A 1 … k in R}<br />

– (q loop ,a,a)={(q loop ,) | for each a }<br />

– (q loop ,,$)={(q accpt, )}<br />

{,A 1 … k | for rules A 1 … k }<br />

{a,a | for all a}<br />

,S$<br />

,$<br />

q start q loop q accpt<br />

15

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

Saved successfully!

Ooh no, something went wrong!