Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the concatenation of this language with itself?

Given the following language:

L1 = { (ab)n | n ≥ 0 }

That is, L1 = { ε ab, abab, ababab, abababab, ... }

The question is to find what language L12 is.

My guess is that it's equal to { (ab)2n | n ≥ 0 }. Is that correct? If so, how do I prove it? If not, why not?

Thanks!

like image 431
Rouki Avatar asked Oct 26 '13 06:10

Rouki


People also ask

What is the concatenation of a language?

The concatenation of languages L and M, denoted L.M or just LM , is the set of strings that can be formed by taking any string in L and concatenating it with any string in M.

What is concatenation with example?

In formal language theory and computer programming, string concatenation is the operation of joining character strings end-to-end. For example, the concatenation of "snow" and "ball" is "snowball". In certain formalisations of concatenation theory, also called string theory, string concatenation is a primitive notion.

What is concatenation in linguistics?

Concatenation is a process which deals with the formation of new lexical items by putting at least two distinct morphemes together. Concatenative processes are by far the ones which happen to be the most productive in the Indo-European language family.

What is concatenation of languages and why do we require?

The definition of the concatenation of two languages L1 and L2 is the set of all strings wx where w ∈ L1 and x ∈ L2. This means that L1L2 consists of all possible strings formed by pairing one string from L1 and one string from L2, which isn't necessarily the same as pairing up matching strings from each language.


1 Answers

The language L12 is the language of all strings of the form xy, where x ∈ L1 and y ∈ L1. Note that x and y don't have to be the same strings; they can be chosen independently.

In fact, one option is that y = ε, since ε = (ab)0. Therefore, any string in L1 must also belong to L12, because we can always concatenate that string with ε.

Moreover, we can show that any string in L12 is also in L1. Take any string w ∈ L12. It must have the form xy for some strings x, y ∈ L1. This means that we can write w = xy = (ab)n(ab)m for some natural numbers n and m. Accordingly, w = (ab)n+m, and so w in L1.

We just proved that L1 ⊆ L12 and that L12 ⊆ L1, from which we get that L1 = L12. This means that L12 is the same language as L1.

Hope this helps!

like image 182
templatetypedef Avatar answered Oct 11 '22 21:10

templatetypedef