Toc Module 4
Toc Module 4
com/c/EDULINEFORCSE
STUDENTS
MODULE 4
PUSH DOWN AUTOMATA (PDA)
PDA Components
Input tape: The input tape is divided in many cells or symbols. The
input head is read-only and may only move from left to right, one
symbol at a time.
Finite control: The finite control has some pointer which points
the current symbol which is to be read.
Stack: The stack is a structure in which we can push and remove
the items from one end only.
• It has an infinite size.
• In PDA, the stack is used to store the items temporarily.
0
0
Z₀
ε a ε b ε b ε a ε
εaεbεbεaε
Turnstile notation
⊢ sign is called a “turnstile notation” and represents one move.
⊢* sign represents a sequence of moves.
Eg: (p, b, T) ⊢ (q, w, α)
This implies that while taking a transition from state p to state q, the
input symbol ‘b’ is consumed, and the top of the stack ‘T’ is replaced
by a new string ‘α’
δ is a transition function which maps Q x {Σ ∪ ε} x Γ → Q x Γ*
• In a given state, PDA will read input symbol and stack symbol (top
of the stack) and move to a new state and change the symbol of
stack.
Prepared By Mr.EBIN PM, AP, IESCE EDULINE14
Important points
The above pushdown automaton is deterministic in nature
because there is only one move from a state on an input symbol
and stack symbol.
The non-deterministic pushdown automata can have more than
one move from a state on an input symbol and stack symbol.
It is not always possible to convert non-deterministic pushdown
automata to deterministic pushdown automata.
The push down automata can either be implemented using
acceptance by empty stack or acceptance by final state and one can
be converted to another.