Z → aX | bY
5. Convert the following CFG into CNF. (10 points)
S → aXXbY
X → abX | a
Y → bby | b
Part III: (30 points)
1. Convert the following FA into a PDA. (10 points)
2. Build the PDA accepting the same language as this CFG (10 points)
S → XaXb
X → aX | bX | λ
3. Draw the trace of PDA (State, Stack and input Tape) in a table format
when the following PDA processes the following input string aabcbaa.
Note that the input alphabet is {a, b, c}. (10 points)