0
5.2kviews
Design a PDA corresponding to the grammar $S =>aSa|bSb|\epsilon$
1 Answer
0
628views

This grammar can be used to generate strings such as :

S =>aSa

S =>abSba (as S =>bSb)

S =>abba ($as S =\gt\epsilon)$

So the strings that are found have the same number of a‟s as that of b‟s

So, the PDA should perform push operation on encountering „a‟, and …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.