UGC NET CS 2022Theory of Computation and Compilers › Theory of ComputationVerified
UGC NET CS 2022 PYQ: Consider $\text{L =a b, a a, b a a}$ Which of the following string is $\text{NOT}$ in $\mathrm{L}^{*}$ ?
Consider $\text{L =a b, a a, b a a}$
Which of the following string is $\text{NOT}$ in $\mathrm{L}^{*}$ ?
- A$\text{baaaaabaaaaa}$Correct answer
- B$\text{abaabaaabaa}$
- C$\text{aaaabaaaa}$
- D$\text{baaaabaa}$
Answer
(A) $\text{baaaaabaaaaa}$
Approach
Try to decompose each string into blocks from {ab, aa, baa}.
Reviewed by UGC IQ Editorial Team.