0
$\begingroup$

Productions of the form A-> A are removed immediately, but what if the production is of the form A -> AA?

example: A -> AA | a

$\endgroup$
2
$\begingroup$

In you example the production A->AA can not be removed. If that production is removed then the language described by the grammar will change. But in case of a production like A->A, the removal will not affect the language described by the Grammar.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.