Open In App

Construct Pushdown automata for L = {0<sup>n</sup>1<sup>m</sup>2<sup>m</sup>3<sup>n</sup> | m,n ≥ 0}

Prerequisite – Pushdown automata, Pushdown automata acceptance by final state
Pushdown automata (PDA) plays a significant role in compiler design. Therefore there is a need to have a good hands on PDA. Our aim is to construct a PDA for L = {0n1m2m3n | m,n ≥ 0}

Examples –



Input : 00011112222333
Output : Accepted

Input : 0001122233
Output : Not Accepted

Approach used in this PDA –
There can be 4 cases while processing the given input string.

Final Pushdown automata for the given language is:



Article Tags :