How to Create a Regular Expression for Strings with an Odd Number of Zeroes?

Click For Summary
To create a regular expression for strings with an odd number of zeroes, the approach involves defining blocks of characters. The first block should contain a single '0' surrounded by any number of '1's. Subsequent blocks can consist of pairs of '0's, each also surrounded by '1's, ensuring that the total count of '0's remains odd. The discussion also touches on the complexity of applying Kleene's theorem due to the numerous possibilities. Understanding finite state automata (FSA) is essential for tackling such problems effectively.
EvLer
Messages
454
Reaction score
0
How do I approach this problem?
give a regular expression for a set containing strings consisting of 0s and 1s where numbr of zeroes is odd...
thanks

ps: I have tried it with Kleene's theorem, but there is so many possibilities that i get lost
 
Physics news on Phys.org
What does FSA stand for? finite state automaton?

The way to do this is to break it up into
1. A single block that contains one 0 and otherwise contains 1's
2. Some number of blocks that contain two zeros each and otherwise contain 1's
 
Last edited:
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 32 ·
2
Replies
32
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
4
Views
4K
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K