write smallest possible string accepted by regular expression (11)*(00)*+(10+01)*.1
Answers
Answered by
0
Answer:
yes it is possible
Explanation:
Answered by
2
The smallest string accepted by the given regular expression is ∈.
Explanation:
- Given regular expression .
- From the given regular expression, corresponding regular language consists of only two symbols .
- The given regular expression has option to generate either the first pattern or the second pattern .
- Now, the strings produced by first pattern are : {∈, 11, 00, 1100, 1111, 0000,. . . . . . .}.
- Also, the strings generated by second pattern are : {1, 101, 011, 10011, 01101, . . . . . . }
- Hence the language generated by the given regular expression will be : {∈ , 11, 00, 1100, 1111, 0000, . . . . . . ., 1, 101, 011, 10011, 01101, . . . . . .}
- So, The smallest string accepted by the given regular expression is ∈.
Similar questions