Let be three regular expressions. Which one of the following is true?
View worked solution
Answer: A;C
Let us analyze the languages generated by the three regular expressions:
- : The set of all strings over that start with the symbol .
- : The set of strings consisting of one or more s followed by exactly one (i.e., ).
- : The set of strings consisting of zero or more s followed by exactly one .
Now, let us check the subset relations:
- : Every string in starts with at least one , so it must belong to (which contains all strings starting with ). Hence, is true.
- : Since , every string in is also in . Hence, is true.
Since both conditions hold, both options A and C (which are logically identical) are correct.
Free practice · Your answers on this page are not saved.
