Glossary of Concepts and Symbols
Definitions and notation for alphabets, words, languages and finite automata, linked to explanations and practice.
Last updated:
Using the glossary
This glossary covers the concepts and notation of words and languages, deterministic finite automata and their combination.
Each entry links to the section that explains the concept, with examples.
Alphabet
A finite, nonempty set of symbols, such as or .
Explained in the section “Alphabet and words”.
Word (string)
A finite sequence of symbols from the alphabet. Its length is the number of symbols.
Explained in the section “Alphabet and words”.
Empty word
The word with no symbols, of length . It is a word, unlike the empty language, which has no words.
Explained in the section “Alphabet and words”.
Length of a word
The number of letters in the word, defined by recursion on the last letter:
and . For example .
Explained in the section “The length of a word”.
Letter count
The number of occurrences of the letter in the word .
For example and .
Explained in the section “Counting a letter”.
Concatenation
Placing one word right after another (also written ); for languages, also written or :
. Order matters.
Explained in the section “Concatenation of words”.
Power
is the word repeated times: and , for example .
In the same way is the concatenation of languages equal to , with .
Explained in the section “Powers of a word”.
Reversal
The word written from end to start: and , for example .
It holds that .
Explained in the section “The reverse of a word”.
Formal language
Any set of words over an alphabet, finite or infinite.
Explained in the section “What is a formal language”.
Union, intersection, difference, symmetric difference and complement of languages
Languages are sets of words, so the set operations apply: the words in at least one language, in both, in the first but not the second, in exactly one, and (for the complement) the words of that are not in the language.
Explained in the section “Languages are sets, so set operations apply”.
Kleene star
All concatenations of any number of words of , including none, so always.
Explained in the section “Operations that build languages from languages”.
Positive closure (plus)
All concatenations of one or more words of : . Unlike , the word belongs to only if it belongs to .
Explained in the section “Operations that build languages from languages”.
Predicate
A statement about a word that is true or false, for example “ is a legal name”.
A predicate determines a language: , the set of words that satisfy it.
Explained in the section “Decision problems”.
Decision problem
A yes/no question about an input, given by a predicate. For a language , the question whether a given word belongs to is called the membership problem.
Explained in the section “Decision problems”.
Deterministic finite automaton (DFA)
A machine with finitely many states and exactly one transition for every state and symbol; it accepts a word if the run ends in an accepting state.
Explained in the lesson on deterministic finite automata.
State
One of the states of an automaton (there are finitely many); it stands for what must be remembered about the input read so far.
Explained in the lesson on deterministic finite automata.
Initial state
The state in which the run starts, before any letter has been read.
Explained in the lesson on deterministic finite automata.
Accepting state
A state such that if the run on a word ends in it, the word is accepted.
is the set of accepting states.
Explained in the lesson on deterministic finite automata.
Transition function
Gives the next state from a state and a symbol. It is extended to words by and :
is the state reached after reading the whole word starting at .
Explained in the lesson on deterministic finite automata.
Run
The sequence of states an automaton passes through while reading a word letter by letter, starting at the initial state, with .
The last state is , and the word is accepted if it is accepting.
Explained in the lesson on deterministic finite automata.
Regular language
A language recognized by some deterministic finite automaton.
Explained in the lesson on deterministic finite automata.
Trap state (absorbing state, dead state)
A state whose every transition returns to itself, so a run that enters it never leaves.
If it is not accepting it is also called a dead state: the word can no longer be accepted.
If it is accepting, the word is already accepted whatever follows.
Explained in the lesson on deterministic finite automata.
Complement automaton
The same deterministic and complete automaton with the set of accepting states replaced by the set of non-accepting states; it recognizes .
Explained in the lesson “Combining Automata”.
Product automaton
Runs two automata over the same alphabet in parallel, keeping a pair of states.
Its set of accepting states is chosen according to the operation (intersection, union, difference, symmetric difference).
Explained in the lesson “Combining Automata”.
Reachable state
A state in which the run on some word ends. Removing the states that are not reachable does not change the language.
Explained in the lesson “Minimizing Automata by Table Filling”.
Distinguishing word
A word that leads from one of two states to an accepting state and from the other to a non-accepting state.
distinguishes every accepting state from every non-accepting state.
Explained in the lesson “Minimizing Automata by Table Filling”.
Equivalent automata
Two automata over the same alphabet that recognize the same language:
on every word they give the same answer. Minimization replaces an automaton by a smaller equivalent one.
Explained in the lesson “Minimizing Automata by Table Filling”.
Equivalent states
Two states that have no distinguishing word. They can be merged without changing the language.
Explained in the lesson “Minimizing Automata by Table Filling”.
Quotient automaton
An automaton whose states are the classes of equivalent states; it recognizes the same language as the original automaton.
Explained in the lesson “Minimizing Automata by Table Filling”.
Minimization and table filling
Making a DFA smaller without changing its language: remove the unreachable states, fill a table of pairs in rounds (round 0 marks a pair of an accepting and a non-accepting state; round marks a pair that a letter leads to a marked pair), and merge the unmarked pairs into the quotient automaton.
Explained in the lesson “Minimizing Automata by Table Filling”.
Indistinguishable words
Two words for which no word , appended at the end, puts exactly one of them in .
If the runs of a DFA for on two words end in the same state, the words are indistinguishable.
Explained in the lesson “Myhill–Nerode: What a State Remembers”.
Myhill–Nerode classes and the smallest automaton
The classes of the relation ; the class of a word is written .
If there are words, every two of them distinguishable, every DFA for the language has at least states.
For a language that has a DFA, the number of classes is the number of states of the smallest DFA, and the DFA whose states are the classes is the smallest DFA, unique up to renaming.
Explained in the lesson “Myhill–Nerode: What a State Remembers”.
Prefixes, suffixes and substrings of a language
The languages of all prefixes, all suffixes and all substrings (consecutive stretches of letters) of words of ; each includes .
Explained in the section “Languages: Operations and Equalities”.