Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Concatenation
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Concatenation of sets of strings== In [[formal language|formal language theory]] and [[pattern matching]] (including [[regular expressions]]), the concatenation operation on strings is generalised to an operation on sets of strings as follows: For two sets of strings ''S''<sub>1</sub> and ''S''<sub>2</sub>, the ''concatenation'' ''S''<sub>1</sub>''S''<sub>2</sub> consists of all strings of the form ''vw'' where ''v'' is a string from ''S''<sub>1</sub> and ''w'' is a string from ''S''<sub>2</sub>, or formally {{math|1=''S''<sub>1</sub>''S''<sub>2</sub> = {{mset| ''vw'' : ''v'' β ''S''<sub>1</sub>, ''w'' β ''S''<sub>2</sub> }}}}. Many authors also use concatenation of a string set and a single string, and vice versa, which are defined similarly by {{math|1=''S''<sub>1</sub>''w'' = {{mset| ''vw'' : ''v'' β ''S''<sub>1</sub> }}}} and {{math|1=''vS''<sub>2</sub> = {{mset| ''vw'' : ''w'' β ''S''<sub>2</sub> }}}}. In these definitions, the string ''vw'' is the ordinary concatenation of strings ''v'' and ''w'' as defined in the introductory section. For example, if {{math|1=''F'' = {{mset| a, b, c, d, e, f, g, h }}}}, and {{math|1=''R'' = {{mset| 1, 2, 3, 4, 5, 6, 7, 8 }}}}, then ''FR'' denotes the set of all [[chess board]] coordinates in [[algebraic notation (chess)|algebraic notation]], while e''R'' denotes the set of all coordinates of the kings' [[file (chess)|file]]. In this context, sets of strings are often referred to as formal languages. The concatenation operator is usually expressed as simple juxtaposition (as with [[multiplication]]).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)