Construct Pushdown Automata
Theory
Pushdown Automata (PDA)
A push down automata (PDA) is a way to implement a context free grammar (CFG) in a similar way to design the deterministic finite automata (DFA) for a regular grammar.A DFA can remember a finite amount of information, but a PDA can remember an infinite amount of information.
PDA= "Finite state machine" + "a stack"
PDA has three components, which are as follows −
A stack does two operations −
A PDA can be formally described as a 7-tuple (Q, ∑, S, δ, q0, I, F) −
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.