L Lò Ngọc New member Sep 17, 2021 #1 Simplify the given grammar: S->aXb X->aXb | e A. S->aXb | ab, X-> aXb | ab B. S->X | ab, X-> aXb | ab C. S->aXb | ab, X-> S | ab D. None of the mentioned
Simplify the given grammar: S->aXb X->aXb | e A. S->aXb | ab, X-> aXb | ab B. S->X | ab, X-> aXb | ab C. S->aXb | ab, X-> S | ab D. None of the mentioned
H Hằng Đoàn New member Sep 17, 2021 #2 Answer: A Explanation: As X is nullable, we replace every right hand side presence of X with e and produce the simplified result. Upvote 0 Downvote
Answer: A Explanation: As X is nullable, we replace every right hand side presence of X with e and produce the simplified result.