Question

can somebody answer this question? Give the Context Free Grammars which generate the following languages: a)...

can somebody answer this question?

Give the Context Free Grammars which generate the following languages: a) La = {w ∈ {0, 1} ∗ : w has at least twice as many zeroes as ones }.

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

The language can begin with either 0 or 1, so we have the following two productions

We can also have the case when the initial two 0's are not consecutive

So the overall grammar will be as follows

This grammar always generates languages with twice as many 0's as 1's

Add a comment
Know the answer?
Add Answer to:
can somebody answer this question? Give the Context Free Grammars which generate the following languages: 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