Question

Give a brief description of the language generated by the following production rules. S → abc...

Give a brief description of the language generated by the following production rules.

S → abc

S → aXbc

Xb → bX

Xc → Y bcc

aY → aa

aY → aaX

bY → Y b

aY → aa aY → aaX

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

The given grammar accepts the language

L={anbncn | nE N}

in this we can generate any number of a's and b's and c's.

In this grammar right side symbols are increasing and is never less than the left side symbols so it is context sensitive language.

Because it satisifies the length increasing property.

It is not context free grammar because the symbols on the left side is longer than single non terminals.

so this is a context free grammar which generates the language that contains any number of a's and b's and c's.

THANK YOU

Add a comment
Know the answer?
Add Answer to:
Give a brief description of the language generated by the following production rules. S → abc...
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