Skip to main content
Logo image

Section 9.6 Alphabets and words

alphabet
any set can be considered an alphabet
letters
the elements of an alphabet set
word
a finite-length, ordered list of letters
Ξ£βˆ—
the set of words using alphabet set Ξ£

Remark 9.6.1.

Even if the alphabet set Ξ£ is the usual English-language alphabet, we do not restrict ourselves to actual English-language words β€” nonsense words are allowed.

Example 9.6.2. English is not a full set of words.

Using Ξ£={a,b,c,…,y,z}, words
math,qwerty,aabbccddijzuuu
are examples of elements in Ξ£βˆ—. So, ignoring punctuation, hyphenation, and capitalization, the English language is a proper subset of Ξ£βˆ—.

Example 9.6.3. If digits are letters then numbers are words.

Using alphabet Ξ£={0,1,2,…,9}, then Nβ«‹Ξ£βˆ—.
In computing science, a certain set of words is of particular importance.
binary word
a word using alphabet {0,1}
binary string
synonym for binary word

Warning 9.6.5.

Order matters! For example, using the alphabet
Ξ£={a,b,c,…,y,z},
the words ab and ba are different words in Ξ£βˆ—.
length (of a word)
given wβˆˆΞ£βˆ—, the length of w is the number of elements from Ξ£ used to form w, counting repetition
|w|
length of the word wβˆˆΞ£βˆ—
The concept of length allows us to identify some special subsets and a special element of Ξ£βˆ—.
Ξ£nβˆ—
for n∈N, the subset of Ξ£βˆ— consisting of all words of length n
empty word
given an alphabet Ξ£, we always consider Ξ£βˆ— to contain a unique word of length 0
βˆ…
the empty word