Pushdown Automata Introduction
Pushdown Automata Introduction
an input tape,
A PDA may or may not read an input symbol, but it has to read the top of the stack in every transition.
∑ is input alphabet
S is stack symbols
The following diagram shows a transition in a PDA from a state q1 to state q2, labeled as a,b → c −
This means at state q1, if we encounter an input string ‘a’ and top symbol of the stack is ‘b’, then we
pop ‘b’, push ‘c’ on top of the stack and move to state q2.
Instantaneous Description
q is the state
w is unconsumed input
Turnstile Notation
The "turnstile" notation is used for connecting pairs of ID's that represent one or many moves of a PDA.
The process of transition is denoted by the turnstile symbol "⊢".
Consider a PDA (Q, ∑, S, δ, q0, I, F). A transition can be mathematically represented by the following
turnstile notation −
Page 3 of 3
This implies that while taking a transition from state p to state q, the input symbol ‘a’ is consumed, and
the top of the stack ‘T’ is replaced by a new string ‘α’.
Note − If we want zero or more moves of a PDA, we have to use the symbol (⊢*) for it.