Construct a pushdown automaton PDA for the following languag
Construct a pushdown automaton (PDA) for the following language: { ambn| 0 < n < 2m }
Strings ab, aabb, aabbb are in the language, whereas , a, b, abb are not.
Solution
A pushdown automaton is a way to enforce a context-free grammar in a similar manner we layout DFA for a ordinary grammar. A DFA can take into account a finite amount of facts, however a PDA can don\'t forget an countless quantity of facts.
basically a pushdown automaton is
\"Finite kingdom machine\" + \"a stack\"
A pushdown automaton has 3 additives
an enter tape,
a manipulate unit, and
a stack with infinite size.
The stack head scans the top symbol of the stack.
A stack does operations
Push a brand new image is brought at the top.
Pop the top symbol is study and eliminated.
A PDA can also or may not examine an enter image, but it has to read the pinnacle of the stack in every transition.
