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.

Example: L = {a i b i c j d j |i,j0}<br />

Construct a PDA to recognize:<br />

L = {a i b i c j d j |i,j0}<br />

We will use <strong>the</strong> empty stack model.<br />

The basic idea:<br />

• Push to <strong>the</strong> stack an A for each a, pop an A<br />

for each b.<br />

• Push to <strong>the</strong> stack a C for each c, pop a C for<br />

each d .<br />

3

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

Saved successfully!

Ooh no, something went wrong!