Question

Give a regular expression for these languages i) {w| w is a word of the alphabet...

Give a regular expression for these languages

i) {w| w is a word of the alphabet = {0,1} that represents an integer in a binary form that is a multiple of 4}

ii) {w belongs to {0,1,2}* | w contains the string ab exactly 2 times but not at the end}

iii) { w belongs to {0,1,2}* | w=uxvx that x belongs to {0,1,2} u,v belongs to {0,1,2}* and there isn't any string y in the sequence v that x<y}

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

i)

It accepts all the binary multiples of 4

ii)

It accepts all strings with exactly two ab and not ending in ab

iii)

Here x will not be less than any string y in v

Add a comment
Know the answer?
Add Answer to:
Give a regular expression for these languages i) {w| w is a word of the alphabet...
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