Skip to content

UGC NET CS 2016Theory of Computation and Compilers › Theory of ComputationVerified

UGC NET CS 2016 PYQ: Let $\Sigma= {a, b}$ and language $L = {aa, bb}$. Then, the complement of $L$ is

Let $\Sigma= {a, b}$ and language $L = {aa, bb}$. Then, the complement of $L$ is

  1. A
    $\left\{\lambda, a, b, ab, ba \right\} \cup \left\{w \in\left\{a, b\right\}^{*} | |w| > 3 \right\}$
  2. B
    $\left\{a, b, ab, ba \right\} \cup \left\{w \in \left\{a, b\right\}^{*} | |w| \geq 3 \right\}$
  3. C
    $\left\{w \in \left\{a, b\right\}^{*} | |w| > 3\right\} \cup \left\{a, b, ab, ba \right\}$
  4. D
    $\left\{\lambda, a, b, ab, ba\right\} \cup \left\{w \in \left\{a, b\right\}^{*} | |w| \geq 3 \right\}$
    Correct answer

Answer

(D) $\left\{\lambda, a, b, ab, ba\right\} \cup \left\{w \in \left\{a, b\right\}^{*} | |w| \geq 3 \right\}$

Approach

Complement is all strings over the alphabet except those in $L$, listed by length.

Reviewed by UGC IQ Editorial Team.