asked 117k views
0 votes
Construct a regular expression that recognizes the following language of strings over the alphabet {0 1}: The language consisting of the set of all bit strings that contain exactly one 1 and an even number of 0s.

1 Answer

2 votes

Answer:


(00)^(*) | (00)^(*)  1 (00)^(*)

Explanation:

The best way would be to have 00 begin then a 1 and 00; starting with the possibility of 00 or 1 means that we might not get 1 in some formation.

answered
User Rahim Rahimov
by
8.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.