Question

The language of the regular expression (0+10)* is the set of all strings of Os and 1s such that every 1 is immediately follPlease explain the answer shortly! :)

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

Ans) option D

Explaination:- to find the correct option let us take an example string and try to find which regular expression accepts it.

Let the strings be "1011".and "110" The regular expression we want must not accept any of these string as we want that regular expression that is complement of the expression that accepts string of 0's and 1's such that 1 is always followed by a 0.

option A i.e (0+1)*11(0+1)*. , this expression clearly accepts the string 1011. Therefore ruled out

option B i.e (1+01)* , this expression clearly accepts the string 1011. Therefore ruled out.

option C i.e (0+11)*, this expression clearly accepts the string 110. Therefore ruled out.

option D, i.e (0+1)*1(e + 1(0+1)*), this expression clearly does not accept the example strings that we have taken. Therefore it is the correct option.

Add a comment
Know the answer?
Add Answer to:
Please explain the answer shortly! :) The language of the regular expression (0+10)* is the set...
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