- If $A$ is a non-context free language, is $A^*$ a regular language?
- If $A$ is a non-context free language and $B$ is a regular language, is it possible that their concatenation is a regular language?
Asked
Active
Viewed 55 times
0

Yuval Filmus
- 276,994
- 27
- 311
- 503

user102789
- 19
- 3
-
1What do you think? What have you tried, and where did you get stuck? – Yuval Filmus Apr 15 '19 at 18:07
1 Answers
1
Let $A$ be $\{a^p\mid p\text{ is prime}\}$. Let $B$ be $\{a\}^*$.
Both $A^*$ and $A\circ B$ are regular. $A^*$ is $\epsilon+aaa^*$ and $A\circ B$ is $aaa^*$.

rici
- 12,020
- 21
- 38
-
-
1Note that, if $A$ is a unary language (i.e., uses only a single letter alphabet) as in this case, then in fact the star $A^$ is always regular. See this question: Show that the Kleene star of any unary language is regular. It seems the same holds for $A \cdot {a}^$, because that language consists of all strings longer than the shortest in $A$. – Hendrik Jan Apr 11 '19 at 08:52