Question: a context - free grammar G in Chomsky Normal Form, and you treasure it dearly. Unfortunately, context - sensitive goblins recently broke into your house
a contextfree grammar G in Chomsky Normal Form, and you treasure it dearly. Unfortunately, contextsensitive goblins recently broke into your house and tampered with your grammar. They added various rules of the form AB c where A B are variables and c is a terminal. Of course, these rules mean that your new grammar H is no longer contextfree. Since you love contextfree grammars, you want to produce a grammar without these rules, while preserving the language of H
Given a grammar H whose rules are of the form
A BC
A a
AB c
where capital letters are variables and lowercase letters are terminals in particular, S is not a rule show how to produce an equivalent contextfree grammar.
partial for the case where there is only a single rule of the form AB c
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
