Question: Give regular expressions generating the languages of Exercise 1.6. Exercise 1.6 Give state diagrams of DFAs recognizing the following languages. In all parts, the alphabet

Give regular expressions generating the languages of Exercise 1.6.


Exercise 1.6

Give state diagrams of DFAs recognizing the following languages. In all parts, the alphabet is {0,1}.

a. {w| w begins with a 1 and ends with a 0}

b. {w| w contains at least three 1s}

c. {w| w contains the substring 0101 (i.e., w = x0101y for some x and y)}

d. {w| w has length at least 3 and its third symbol is a 0}

e. {w| w starts with 0 and has odd length, or starts with 1 and has even length}

f. {w| w doesn’t contain the substring 110}

g. {w| the length of w is at most 5}

h. {w| w is any string except 11 and 111}

i. {w| every odd position of w is a 1}

j. {w| w contains at least two 0s and at most one 1}

k. {", 0}

l. {w| w contains an even number of 0s, or contains exactly two 1s}

m. The empty set

n. All strings except the empty string

Step by Step Solution

3.57 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution In the regular expressions indicates that the preceding regular expression may appear zero or more times and indicates that the preceding regular expression may appear one or more times a Con... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1556_61d6ac34399c5_840154.pdf

180 KBs PDF File

Word file Icon

1556_61d6ac34399c5_840154.docx

120 KBs Word File

Students Have Also Explored These Related Introduction theory computation Questions!