Question

Show that the language L defined below is regular: L={w/ w has an even number of Os and 1 is the last symbol)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

If a language has a regular expression it is said to be regular.

Given language L can be expressed with regular expression (1 + 01*0)*1.

So L is regular.

Explanation:

Given language L can be expressed with regular expression (1 + 01*0)*1.

As string can either start with 1 or 0 but should end with 1 and contain even number of zeros.

As it can either start with 1 or 0 we can express it as 1+0.

but Regular expression for even number of zeros is 01*0.

Together it will be (1 + 01*0)*.

As it needs to be end with 1.

Whole expression will be (1 + 01*0)*1.

If a language has a regular expression it is said to be regular.

So L is regular.

***Please upvote***
Add a comment
Know the answer?
Add Answer to:
Show that the language L defined below is regular: L={w/ w has an even number of...
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