Question: EN - US 1 . 2 0 points Consider the following CFG G . S - > XX | Y X - > aXb |
ENUS
points Consider the following CFG G
S
XX
Y
X
aXb
c
Y
bbY c
a
a
Create MG
an augmented PDA from G
b
Consider the augmented transition in the PDA created to mimic
the X
aXb rule in the grammar. Show the non
augmented
sequence of transitions required in a standard PDA that would
mimic this rule.
c
Let w
aacbbacb Provide a leftmost derivation of w in the
grammar G
and show the computation path of w in MG
S
q
aacbbacb
epsi
q
qloop
points Consider the following PDA P
a
Create a CFG that accepts L
P
using the method presented in
the videos. Make sure you label you variables to correspond with
the states in P as discussed in the videos and the text.
b
Let w
aabbbc Show the computation path of w in P and provide
a leftmost derivation of w in G
fig
:
pda
title WS
Prob
Q
qs
q
q
q
qf
S
a
b
c
T
X
Y
$
q
qs
F
qf
qs
q
:
e
e
$
q
:a
e
X
q
q
:a
e
X
q
:b
X
e
q
:b
e
Y
q
q
:b
e
Y
q
:c
Y
e
q
qf:
e
$
e
done.
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
