Unit 3
Unit 3
• Instantaneous Description (ID) is an informal notation of how a PDA “computes” a input string and make a decision that string
is accepted or rejected.
• The relevant factors of pushdown configuration notation by a triple (q, w, γ) where;
w is the unread part of the input string or the remaining input alphabets
Conventionally, we show leftmost symbol indicating the top of the stack γ and the bottom at the right end. Such a triple
notation is called an instantaneous description or ID of the pushdown automata.
• It is also useful to represent as part of the configuration the portion of the input that remains.
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 −(p,
aw, Tβ) ⊢ (q, w, αb) .
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.
Conti..
• Write down the IDs or moves for input string w = “aabb” of PDA as M = ({q0, q1, q2},
{a, b}, {a, b, Z0}, δ, q0, Z0, {q2}), where δ is defined by following rules:
• Finally PDA reached a configuration of (q2, λ, λ) i.e. the input tape is empty or input string w is
completed, PDA stack is empty and PDA has reached a final state. So the string ‘w’ is accepted.
Write down the IDs or moves for input string w = “aaabb” of PDA.
Also check it is accepted by PDA or not?
• So the pushdown automaton stops at this move and the string is not accepted because the input
tape is empty or input string w is completed but the PDA stack is not empty. So the string ‘w’
is not accepted.
Give examples of languages handled by PDA.