A FSA augmented with a Stack storage. It is an Automata that can accept a CFG.
Definition
A PDA is a 6 tuple where:
- is the finite nonempty set of states
- is the finite set of input symbols
- is the finite set of stack symbols in a Formal Stack
- is the Transition Function
- is the start state
- is the set of accepting states
Transition Function
is the Transition Function that maps input symbol and stack symbol to a set of pairs of (state, stack symbol) means:
- With initial state
- With input string
- With at top of stack
- We can derive
- Where is the new state
- Where is the replaced value on the top of stack There are 4 possible situtations:
- . This is when automaton pushes onto stack
- . This is when automata pops from stack
- . This is when automata replaces with at top of stack
- . This is when automata does not consult stack at all