Next: Converting a CFG to
Up: PUSH-DOWN AUTOMATA
Previous: PUSH-DOWN AUTOMATA
  Contents
Basically, a PDA is an NFA with a stack; formally we define a PDA as
consisting of:
- An alphabet
of input symbols
- A set of states, of which we distinguish:
- a unique start state
- a set of final states
- An alphabet
of stack symbols
- A transition relation which, for any given state, input
symbol and stack symbol, gives a new state and stack symbol;
i.e. it has the form:
Basically, if
,
and
and
are states, a transition of the form
means ``read the symbol
from the input, move
from state
to state
, and replace the symbol
on
top of the stack with the symbol
''.
Obviously for this to happen we must be in state
, we must have
as the next symbol on the input tape, and
must be on top of the stack.
The actions push and pop are instances of the above
transitions; for any stack symbol
, we have
A PDA is said to accept some string
if and only if we can
get:
- -
- from the start state with an empty stack and
as input
- -
- to a finish state with an empty stack and an empty input.
Next: Converting a CFG to
Up: PUSH-DOWN AUTOMATA
Previous: PUSH-DOWN AUTOMATA
  Contents
James Power
2002-11-29