Definitions
- alphabet: An alphabet is any non-empty, finite set of symbols
- binary alphabet:
- decimal digits:
- word: A word over an alphabet is a finite sequence of symbols from .
- empty word:
- is the set of all words over
Number
For , is the binary expression without zeros in the front
concatenation
with Example we get
reverse
let
iteration
let the -th iteration of is:
- Example: ,
deconstruction
Let for alphabet
- is a subword (substring) of if:
- is a prefix of if:
- is a suffix of if:
occurrence
For is the number of occurrence of in
order
Let with The canonical order is defined as
In text:
- First, order words by length, with shorter words coming first.
- For words of the same length, order them lexicographically (like in a dictionary).