Skip to content

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?

  1. A
    $L_1 \subset L_2$
  2. B
    $L_2 \subset L_1$
  3. C
    $L_1 = L_2$
    Correct answer
  4. 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.