2
$\begingroup$

In a question, it is given that L is a finite language over the unary alphabet and L+ is not regular. We know that L+ = LL* Since L is finite, it must be regular because all finite languages are regular. If L is regular L* is also regular. Then how can be L+ not regular? It is the concatenation of two regular languages. Where am I wrong?

$\endgroup$

1 Answer 1

3
$\begingroup$

it is given that L is a finite language over the unary alphabet and L+ is not regular.

That's impossible. Since $L$ is finite, it is regular. Since $L$ is regular, $L^+ = L L^*$ is regular. See, e.g., https://en.wikipedia.org/wiki/Regular_language#Closure_properties.

You're not wrong; you are right.

$\endgroup$
2
  • $\begingroup$ The more interesting question is what was intended, i.e., what modification to the statement would make it non-stupid. $\endgroup$ Commented Mar 7, 2018 at 14:43
  • $\begingroup$ Also, note that the unary alphabet doesn't give us anything new. $\endgroup$ Commented Apr 3, 2018 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.