Question

Eliminate all useless rules from the following CFG: S → abS | abA | abB A→...

Eliminate all useless rules from the following CFG:

S → abS | abA | abB

A→ cd
B→ aB
C → dc

0 0
Add a comment Improve this question Transcribed image text
Answer #1

*****************************************************************************
PLEASE DO UPVOTE IF THE ANSWER IS HELPFUL AS IT GIVES THE CONFIDENCE TO HELP MORE STUDENTS
*****************************************************************************
Chegg allows me to answer specific no of questions including the sub parts , so please do post the rest of the questions as a separate query as per Chegg Guidelines. Thank you :)
*****************************************************************************

we can't reach C from S so remove that

B doesn 't end anywhere so remove that

so the final answer is

S -> abS | abA

A -> cd

Add a comment
Know the answer?
Add Answer to:
Eliminate all useless rules from the following CFG: S → abS | abA | abB A→...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT