Professional Documents
Culture Documents
Acceptance by Empty Stack, Deterministic Pda: S. No Enrollment Number Admission Number Student Name Degree / Branch Sem
Acceptance by Empty Stack, Deterministic Pda: S. No Enrollment Number Admission Number Student Name Degree / Branch Sem
Acceptance by Empty Stack, Deterministic Pda: S. No Enrollment Number Admission Number Student Name Degree / Branch Sem
DETERMINISTIC PDA
TEA
PUSH DOWN AUTOMATA (PDA)
• It is a Finite Automata with extra memory called Stack which helps PDA to
recognize Context Free Languages.
• It is a way to implement Context Free Grammar (CFG).
• PDA are used in theories about what can be computed by machines.
• PDA is of 2 types - Deterministic PDA
• Non-Deterministic PDA
• PDA is defined as a collection of 7 components
PUSH DOWN AUTOMATA (PDA)
• Here a PDA accepts a string when, after reading the entire string, the PDA has
emptied its stack.
• For a PDA P = (Q, ∑, S, δ, q0, Z, F), the language accepted by P, denoted by
N(P) by the empty stack is −
N(P) = {w | (q0, w, Z) ⊢* (q, ε, ε), q ∈ Q}
• That is, N(P) is the set of inputs w that P can consume and at the same time
empty its stack. (The N in N(P) stands for null stack, a synonym for empty
stack.)
ACCEPTANCE BY EMPTY STACK
ACCEPTANCE BY EMPTY STACK
INPUT STRING-
wcwR w ε (a,b)*
ACCEPTANCE BY EMPTY STACK
δ(q0, c, a) = (q1, a)
δ(q0, c, b) = (q1, b)
δ(q1, b, b) = (q1, ε)
δ(q1, a, a) = (q1, ε)
δ(q1, ε, Z) = (qf, ε)
DETERMINISTIC PDA