UGC NET CS 2020Theory of Computation and Compilers › Regular Language ModelsVerified
UGC NET CS 2020 PYQ: Let $L_1$ and $L_2$ be languages over $\Sigma = \{a,b\}$ represented by the regular expressions $(a^* +b)^*$…
Let $L_1$ and $L_2$ be languages over $\Sigma = \{a,b\}$ represented by the regular expressions $(a^* +b)^*$ and $(a+b)^*$ respectively.
Which of the following is true with respect to the two languages?
- A$L_1 \subset L_2$
- B$L_2 \subset L_1$
- C$L_1 = L_2$Correct answer
- D$L_1 \cap L_2 = \phi$
Answer
(C) $L_1 = L_2$
Approach
Show both regular expressions generate every string over {a,b}.
Reviewed by UGC IQ Editorial Team.