Definition
String
A string is a permutation of an alphabet , where is the set of all permutations of .
The empty string is commonly denoted as or .
Countability
Let (a finite alphabet) and let be the (finite) set of all permutations of strings that can be created from . Then, we can enumerate in the following way:
- List strings ordered by their length
- Within the same length, arrange them lexicographically
A bijective mapping is obtained by mapping each element in the enumerating to its position in the enumeration.
Enumeration:
Strings | Count | Positions |
---|---|---|
(empty string) | ||
Therefore, is countable.