3
$\begingroup$

I'm trying to understand how language concatenation works with the universal language (i.e., Σ*). Suppose I have a language like L = {an}, and I concatenate it with the universal language. For example:

L . Σ* (like an . (a+b)*)

Σ* . L (like (a+b)* . an)

Will the result always be the universal language in both cases? Or are there cases where it won't be? I’d appreciate a simple explanation

asked May 28 at 5:41
$\endgroup$
0

2 Answers 2

22
$\begingroup$

No, it won't. This only holds for languages $L$ that contain the empty word $\epsilon$. Then $\Sigma^\ast \subseteq L \cdot \Sigma^\ast$, since any word $w$ can be written as $\epsilon \cdot w$. For any language we have $L'\subseteq\Sigma^\ast$, so that $L\cdot\Sigma^\ast = \Sigma^\ast$.

Suppose that $L$ is a language that does not contain the empty word. Then any word in $L\cdot\Sigma^\ast$ cannot be the empty word either as it has a minimum length of the shortest word in $L$, which is longer than the empty word.

Whether this holds for your example depends on the restrictions placed on $n$.

answered May 28 at 7:51
$\endgroup$
2
  • $\begingroup$ If L is regular, will this work? $\endgroup$ Commented Aug 28 at 9:48
  • 1
    $\begingroup$ No, as not every regular language contains the empty word. $L = \{a\}$ is regular, but $L \cdot \Sigma^\ast$ does not contain the empty word as every word starts with a. $\endgroup$ Commented Aug 29 at 6:47
11
$\begingroup$

No, the simplest counter-example is the language {a}, this will then enforce that you start or end a string with a. If the universal language has a and b, it thus can no longer work with bb for example.

If your language has only one character, adding {a} requires the strings to be at least one character long, whereas Σ* also includes the empty language.

answered May 28 at 16:57
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.