SlideShare a Scribd company logo
WELCOME
OUR PRESENTATION
Our Topic
PDA (pushdown automaton)
GROUP MEMBER
NAME S.ID
Zaheer Raihan
Shah Alam Shagor
011151053
011151052
Pushdown Automaton
(PDA)
A Pushdown Automaton is a nondeterministic
finite state automaton (NFA) that permits
ε-transitions and a stack.
Pushdown Automaton -- PDA
Input String
Stack
States
Initial Stack Symbol
Stack
$
Stack
z
bottom
special symbol
The States
q1 q2
a, b  c
Input
symbol
Pop
symbol
Push
symbol
q1 q2
a, b  c
a 
b top
input
stack
a 
Replace
e
h
$
e
h
$
c
q1 q2
a,   c
a  a 
Push
b
e
h
$
e
h
$
b
c
top
input
stack
q1 q2
a, b  
a  a 
Pop
b
e
h
$
e
h
$
top
input
stack
q1 q2
a,   
a  a 
No Change
b
e
h
$
e
h
$
btop
input
stack
Non-Determinism
q1
q2a, b  c
q3
a, b  c
q1 q2
, b  c
transition
These are allowed transitions in
a Non-deterministic PDA (NPDA)
NPDA: Non-Deterministic PDA
Example:
,   
a,   a
b, a  q0 q1 q2 q3
b, a  
, $  $
a,   a
b, a  
0q q1 q2 q3
Execution Example:
Input
a a a b b b
current
state
b, a  
Time 0
,    , $  $
Stack
$
a,   a
b, a  q0 q1 q2 q3
Input
a a a b b b
b, a  
Time 1
,    , $  $
Stack
$
a,   a
b, a  q0 q1 q2 q3
Input
Stack
a a a b b b
$
a
b, a  
Time 2
,    , $  $
a,   a
b, a  q0 q1 q2 q3
Input
Stack
a a a b b b
$
a
a
b, a  
Time 3
,    , $  $
a,   a
b, a  q0 q1 q2 q3
Input
Stack
a a a b b b
$
a
a
a
b, a  
Time 4
,    , $  $
a,   a
b, a  q0 q1 q2 q3
Input
a a a b b b
Stack
$
a
a
a
b, a  
Time 5
,    , $  $
a,   a
b, a  q0 q1 q2 q3
Input
a a a b b b
$
a
Stack
b, a  
Time 6
,    , $  $
a
a,   a
b, a  q0 q1 q2 q3
Input
a a a b b b
$
Stack
b, a  
Time 7
,    , $  $
a
a,   a
b, a  q0 q1 q2 q3
Input
a a a b b b
b, a  
Time 8
accept
,    , $  $
$
Stack
A string is accepted if there is
a computation such that:
• All the input is consumed
• The last state is a final state
At the end of the computation,
we do not care about the stack contents
The Language of PDA
ANY
QUESTION
????????
THE
END

More Related Content

PPT
NFA or Non deterministic finite automata
PPT
Turing Machine
PPTX
Mealy and moore machine
PPT
Finite automata(For college Seminars)
PPTX
Propositional logic
PDF
NFA to DFA
PDF
Deterministic Finite Automata (DFA)
PPTX
Minimization of DFA.pptx
NFA or Non deterministic finite automata
Turing Machine
Mealy and moore machine
Finite automata(For college Seminars)
Propositional logic
NFA to DFA
Deterministic Finite Automata (DFA)
Minimization of DFA.pptx

What's hot (20)

PPT
pushdown automata
PPT
Kleene's theorem
PPTX
language , grammar and automata
PPTX
Bellman ford algorithm
PPTX
Pushdown Automata Theory
PPTX
NFA Converted to DFA , Minimization of DFA , Transition Diagram
PPT
Mealy moore machine model
PPTX
Introduction TO Finite Automata
PPT
Finite automata examples
PPTX
DFS and BFS
PDF
Syntax Directed Definition and its applications
PPTX
push down automata
PDF
P, NP, NP-Complete, and NP-Hard
PPTX
Theory of computation Lec3 dfa
PPTX
NFA and DFA
PPTX
Ambiguous & Unambiguous Grammar
PPTX
Merge sort and quick sort
PPTX
Turing machine-TOC
PDF
Ch3 4 regular expression and grammar
PPTX
CFG to CNF
pushdown automata
Kleene's theorem
language , grammar and automata
Bellman ford algorithm
Pushdown Automata Theory
NFA Converted to DFA , Minimization of DFA , Transition Diagram
Mealy moore machine model
Introduction TO Finite Automata
Finite automata examples
DFS and BFS
Syntax Directed Definition and its applications
push down automata
P, NP, NP-Complete, and NP-Hard
Theory of computation Lec3 dfa
NFA and DFA
Ambiguous & Unambiguous Grammar
Merge sort and quick sort
Turing machine-TOC
Ch3 4 regular expression and grammar
CFG to CNF
Ad

Similar to PDA (pushdown automaton) (20)

PPTX
Pushdown Automata toc presentation 2025.pptx
PPT
Pushdown automata
PPT
Pushdown Automata
PPTX
PPT
Lec 3 ---- dfa
PPT
Lecture12_16717_Lecture1.ppt
PPT
CSE-322 lecture1 notes
PDF
Phttp://www.cw360ms.com/pmsurveyresults/index.aspda
PPT
Lecture 1 CSE 322 LPU By 5th SEM .ppt Good
PPT
CH 5 PUSH DOWN AUTOMATA PUSH DOWN AUTOMATA
PPTX
Module 4 PDA updated Theory of computation.pptx
PPTX
Theory of automata
PPT
Lecture03 (1).ppt
PPTX
Push down automata
PPTX
PUSH DOWN AUTOMATA VS TURING MACHINE
PPT
PushdownAutomata.ppt
PPTX
539_PDA push down automata_ d_b_m_s.pptx
PPT
Pushdown automata
PPT
Pushdown automata
PPT
PushdownAutomata and Turing machines ppt
Pushdown Automata toc presentation 2025.pptx
Pushdown automata
Pushdown Automata
Lec 3 ---- dfa
Lecture12_16717_Lecture1.ppt
CSE-322 lecture1 notes
Phttp://www.cw360ms.com/pmsurveyresults/index.aspda
Lecture 1 CSE 322 LPU By 5th SEM .ppt Good
CH 5 PUSH DOWN AUTOMATA PUSH DOWN AUTOMATA
Module 4 PDA updated Theory of computation.pptx
Theory of automata
Lecture03 (1).ppt
Push down automata
PUSH DOWN AUTOMATA VS TURING MACHINE
PushdownAutomata.ppt
539_PDA push down automata_ d_b_m_s.pptx
Pushdown automata
Pushdown automata
PushdownAutomata and Turing machines ppt
Ad

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
Digital Logic Computer Design lecture notes
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Project quality management in manufacturing
PPTX
Geodesy 1.pptx...............................................
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Construction Project Organization Group 2.pptx
Foundation to blockchain - A guide to Blockchain Tech
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Internet of Things (IOT) - A guide to understanding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Mechanical Engineering MATERIALS Selection
Digital Logic Computer Design lecture notes
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Project quality management in manufacturing
Geodesy 1.pptx...............................................
OOP with Java - Java Introduction (Basics)
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx

PDA (pushdown automaton)

  • 3. GROUP MEMBER NAME S.ID Zaheer Raihan Shah Alam Shagor 011151053 011151052
  • 4. Pushdown Automaton (PDA) A Pushdown Automaton is a nondeterministic finite state automaton (NFA) that permits ε-transitions and a stack.
  • 5. Pushdown Automaton -- PDA Input String Stack States
  • 7. The States q1 q2 a, b  c Input symbol Pop symbol Push symbol
  • 8. q1 q2 a, b  c a  b top input stack a  Replace e h $ e h $ c
  • 9. q1 q2 a,   c a  a  Push b e h $ e h $ b c top input stack
  • 10. q1 q2 a, b   a  a  Pop b e h $ e h $ top input stack
  • 11. q1 q2 a,    a  a  No Change b e h $ e h $ btop input stack
  • 12. Non-Determinism q1 q2a, b  c q3 a, b  c q1 q2 , b  c transition These are allowed transitions in a Non-deterministic PDA (NPDA)
  • 13. NPDA: Non-Deterministic PDA Example: ,    a,   a b, a  q0 q1 q2 q3 b, a   , $  $
  • 14. a,   a b, a   0q q1 q2 q3 Execution Example: Input a a a b b b current state b, a   Time 0 ,    , $  $ Stack $
  • 15. a,   a b, a  q0 q1 q2 q3 Input a a a b b b b, a   Time 1 ,    , $  $ Stack $
  • 16. a,   a b, a  q0 q1 q2 q3 Input Stack a a a b b b $ a b, a   Time 2 ,    , $  $
  • 17. a,   a b, a  q0 q1 q2 q3 Input Stack a a a b b b $ a a b, a   Time 3 ,    , $  $
  • 18. a,   a b, a  q0 q1 q2 q3 Input Stack a a a b b b $ a a a b, a   Time 4 ,    , $  $
  • 19. a,   a b, a  q0 q1 q2 q3 Input a a a b b b Stack $ a a a b, a   Time 5 ,    , $  $
  • 20. a,   a b, a  q0 q1 q2 q3 Input a a a b b b $ a Stack b, a   Time 6 ,    , $  $ a
  • 21. a,   a b, a  q0 q1 q2 q3 Input a a a b b b $ Stack b, a   Time 7 ,    , $  $ a
  • 22. a,   a b, a  q0 q1 q2 q3 Input a a a b b b b, a   Time 8 accept ,    , $  $ $ Stack
  • 23. A string is accepted if there is a computation such that: • All the input is consumed • The last state is a final state At the end of the computation, we do not care about the stack contents The Language of PDA