Question

Automata Theory Construct a regular expression for the set of bit strings in which every odd...

Automata Theory

Construct a regular expression for the set of bit strings in which every odd bit is 1.


For example, these are in the language:
10 (OK: 1 in position 1)
111 (OK: 1 in positions 1 and 3)
10101 (OK: 1 in positions 1, 3, and 5)
101111 (OK: 1 in positions 1, 3, and 5)
ϵ (OK: There are no odd positions)


And these are not in the language:
0111 (BAD: position 1 is not a 1)
110 (BAD: position 3 is not a 1)
011001 (BAD: position 1 is not a 1 (nor is position 5))

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

Regular Expression: (1(0+1))*

Explanation
Odd bit is 1
Even bit can be any of 0 and 1: (0+1)
Any number of occurrences of above can come. So, * is used

Add a comment
Know the answer?
Add Answer to:
Automata Theory Construct a regular expression for the set of bit strings in which every odd...
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