12.07.2015 Views

pushdown automata (pda)

pushdown automata (pda)

pushdown automata (pda)

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.

Another ExampleConsider the set L = {ww R : w ∈ {a,b} + }.The idea for an n<strong>pda</strong> to accept L is to guess the middleof the input string and matches the front substring andthe rear substring. The front substring is pushed intothe stack, and the rear substring is matched againstthe stack content (in the reverse order).Specifically, we construct an n<strong>pda</strong>M = ({q 0 ,q 1 ,q 2 }, {a,b}, {a,b,z},δ,q 0 ,z, {q 2 }),where state q 0 signals that the input position is in thefront part, and state q 1 signals that the input position isin the rear.Pushdown Automata – p. 9

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

Saved successfully!

Ooh no, something went wrong!