Show that all the symbols of the grammar G: S -> A | CB A -> C | D B -> bB | b C
ID: 3617613 • Letter: S
Question
Show that all the symbols of the grammarG: S -> A | CB A -> C | D B -> bB | b C -> cC | c D -> dD | d
are useful. Construct an equivalent grammarGc by removing the chain rules from G. Show thatGc contains useless symbols.
G: S -> A | CB A -> C | D B -> bB | b C -> cC | c D -> dD | d
are useful. Construct an equivalent grammarGc by removing the chain rules from G. Show thatGc contains useless symbols.
are useful. Construct an equivalent grammarGc by removing the chain rules from G. Show thatGc contains useless symbols.
Explanation / Answer
Dear, Gc: S -> cC |c | dD | d | CB A -> cC | c |dD|d B -> bB | b C -> cC | c D -> dD | d From Gc A,C and D areuseless symbols.I hope this will helpful foryou..... A -> cC | c |dD|d B -> bB | b C -> cC | c D -> dD | d From Gc A,C and D areuseless symbols.
I hope this will helpful foryou..... I hope this will helpful foryou.....
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.