Question: Example 7 . 6 Construct a PDA that accepts the language generated by a grammar with productions S aSbb | a . Solution: Transform the
Example
Construct a PDA that accepts the language
generated by a grammar with productions
aSbb
Solution:
Transform the grammar into Greibach normal
form as follows:
aSA
The corresponding automaton has three states
where is initial state and is final state. Example Cont
Solution: Cont
First, put the start symbol on the stack by
The production aSA will be simulated in the PDA
by removing from the stack and
replacing it with
while reading a from the input.
Similarly, a should cause the PDA to read
an a while simply removing
Thus, these two productions are represented in :
In the similar way, the other productions give:
Prove that the pda in Example accepts the language : pts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
