Union and Concatenation for Languages
Language union keeps words accepted by either input set. Language concatenation uses all pairs to create joined words.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two finite languages
For \(A=\{a,b\}\) and \(B=\{b\}\), the union is \(\{a,b\}\). Concatenating A then B gives \(\{ab,bb\}\). See set union.
Check a duplicate join
Different word pairs can sometimes produce the same concatenated word. A language records membership, so that output appears once. Concatenation of words gives the underlying operation.[1]
List products formed by taking one word from each input
Let \(A=\{x,xy\}\) and \(B=\{\varepsilon,y\}\). Union contains the elements from either language. Concatenation produces x, xy and xyy, with xy reached in two different ways. See Cartesian products.
xε→x, xy from x followed by y
xyε→xy, xyy from xy followed by y
AB={x,xy,xyy}
A∪B={ε,x,y,xy}
Check whether distinct pairs produce distinct strings
The product of language sizes bounds the number of concatenation results for finite sets. It can overcount when two decompositions yield one word. Distinguish a language from the histories of generating its words.