Definition
String
A string (or word)
is a permutation of an alphabet , where is the set of all permutations of . The empty string is commonly denoted as
or .
Operations
Length
The length of a string
Count Symbols
The number of certain symbols
Concatenation
Let
with:
Exponentiation
Let
where
Mirroring
Let
Empty
Definition
Link to originalEmpty String
Palindrome
Definition
Link to originalPalindrome
Set of all Strings
Definition
Link to originalSet of all Strings
The set of all strings
over an alphabet is the set of all possible string concatenations on .
Countability
Let
- List strings ordered by their length
- Within the same length, arrange them lexicographically
A bijective mapping
Enumeration:
| Strings | Count | Positions |
|---|---|---|
Therefore,