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
- A$\left\{\lambda, a, b, ab, ba \right\} \cup \left\{w \in\left\{a, b\right\}^{*} | |w| > 3 \right\}$
- B$\left\{a, b, ab, ba \right\} \cup \left\{w \in \left\{a, b\right\}^{*} | |w| \geq 3 \right\}$
- C$\left\{w \in \left\{a, b\right\}^{*} | |w| > 3\right\} \cup \left\{a, b, ab, ba \right\}$
- 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.