(1p) Which of the following strings, if any, are in the language of the regular expression 0*11*0?
0101
0110
1001
1010
(1p) Which of the following strings, if any, are in the language of the regular expression ∅ + 1 + ε?
ε
0
1
00
01
10
11
(1p) Which of the following regular expressions, if any, define languages that contain all of the strings 0101, 0110, 1001 and 1010?
(01)*
(10)*
(01)* + (10)*
(01 + 10)*
(1p) Which of the following regular expressions, if any, define languages that are equal to L(A), where A is the following DFA over {0, 1}?
0 | 1 | |
---|---|---|
→ q₀ | q₁ | q₂ |
q₁ | q₂ | q₃ |
q₂ | q₂ | q₂ |
* q₃ | q₁ | q₃ |
(01)*
(1 + 01)*
((ε + 0)1)*
01(01)*
01(1 + 01)*
01((ε + 0)1)*
01(01)*01
01(1 + 01)*(1 + 01)
01((ε + 0)1)*((ε + 0)1)
(1p) Which of the following regular expressions define languages that are equal to L(A), where A is the following DFA over {0, 1}?
0 | 1 | |
---|---|---|
→ q₀ | q₁ | q₂ |
q₁ | q₃ | q₄ |
q₂ | q₂ | q₂ |
q₃ | q₅ | q₃ |
q₄ | q₃ | q₂ |
* q₅ | q₅ | q₄ |
Hint: The correct regular expression was constructed using (roughly) the method from Section 3.2.2 of the course text book, and then simplified a little. First state q₂ was removed, then q₄, then q₁, and finally q₃.
0(1 + 10)1*0(0 + 101*0)*
0(0 + 10)1*0(0 + 101*0)*
0(1 + 10)1*0(0 + 100*0)*
0(0 + 10)1*0(0 + 100*0)*