Consider the following two languages over the alphabet :
Which ONE of the following statements is CORRECT?
GATE CSE 2025Theory of Computation › Finite Automata & Regular LanguagesVerified
(C) L 1 L_{1} L 1 is not a regular language but L 2 L_{2} L 2 is a regular language.
Determine regularity of $L_1$ and $L_2$ separately. $L_1$ requires matching an arbitrary nonempty prefix $\alpha$ with an identical suffix $\alpha$, which needs unbounded memory; use the pumping lemma to prove non-regularity. $L_2$ restricts $\alpha$ to $a^+$, so the condition collapses to \"starts with $a$ and ends with $a$ with at least one middle symbol\", which is regular.
$L_1$ is not regular because it needs to compare an arbitrary-length prefix and suffix. $L_2$ is regular because restricting $\alpha$ to $a^+$ reduces it to the regular language $a(a+b)^+a$. Hence option C is correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.