Theory of Computation · Week 1
Glossary
Definitions with links to their first use.
- Alphabet
- A finite, nonempty set of symbols. 1. Reading deterministic finite automata
- String
- A finite sequence of symbols from an alphabet. 1. Reading deterministic finite automata
- Length |w|
- The number of symbols in a string w. 1. Reading deterministic finite automata
- Empty string ε
- The unique string of length zero. 1. Reading deterministic finite automata
- Σᵏ, Σ*, Σ⁺
- Strings of length exactly k, all finite strings, and all positive-length strings over Σ, respectively. 1. Reading deterministic finite automata
- Language
- A set of strings drawn from Σ*. 1. Reading deterministic finite automata
- State
- One of the possible positions of a machine. 1. Reading deterministic finite automata
- Transition
- A move from one state to another, or back to the same state, on a specified label. 1. Reading deterministic finite automata
- DFA
- A finite automaton with exactly one next state for each state and input symbol. 1. Reading deterministic finite automata
- Start state and accepting states
- The state where a run begins, and the states in which a completed run accepts. 1. Reading deterministic finite automata
- Run and recognition
- A run is the sequence of states visited while the machine reads the string. A machine recognizes L when its set of accepted strings equals L. 1. Reading deterministic finite automata
- Suffix and parity
- A suffix is a string at the end of another string. Parity describes whether a count is even or odd. 1. Reading deterministic finite automata
- Regular language
- A language recognized by some DFA. 1. Reading deterministic finite automata
- Prefix and substring
- A prefix is an initial segment of a string. A substring occupies consecutive positions. 2. Designing and comparing DFAs
- State invariant
- A statement about the prefix read so far that holds every time the machine reaches a given state. 2. Designing and comparing DFAs
- Sink state
- A state whose transitions all return to itself. 2. Designing and comparing DFAs
- Remainder modulo m
- The integer left after dividing by m, in the range 0 to m−1. 2. Designing and comparing DFAs
- Proper subset and witness
- A ⊊ B means every member of A belongs to B and some member of B lies outside A. Such a member witnesses strictness. 2. Designing and comparing DFAs
- Product automaton
- An automaton whose paired state records the current states of two machines on the same input. 2. Designing and comparing DFAs
- Union, intersection, complement and difference
- A ∪ B keeps members of either set. A ∩ B keeps common members. Complement keeps strings in the alphabet’s full language outside the set. A − B keeps A’s members outside B. 3. Regular operations on languages
- Concatenation
- For strings, place the second after the first. For languages, form all such joins with one string from the first and one from the second. 3. Regular operations on languages
- Kleene star
- All concatenations of zero or more strings from the language. 3. Regular operations on languages
- Closure and finite language
- Closure means applying an operation to members of a class returns a member of that class. A finite language has finitely many strings. 3. Regular operations on languages
- NFA
- A finite automaton allowing zero, one or several next states on a symbol. In the ε-NFA convention, ε-moves consume no input. 4. Nondeterministic finite automata
- Path and power set
- A path is a sequence of moves. The power set 2Q of a set Q contains all its subsets, including ∅. 4. Nondeterministic finite automata
- ε-closure
- States reachable from the given set by zero or more ε-moves. 4. Nondeterministic finite automata
- Subset construction
- Build a DFA with each reachable NFA state set represented by one DFA state. 4. Nondeterministic finite automata
- Regular expression and match
- A regular expression describes a language. A string matches if it belongs to the described language. 5. Regular expressions and automata
- State elimination
- Replace an intermediate state with direct edges labeled by regular expressions. 5. Regular expressions and automata
- Occurrence
- A starting position at which a substring appears. Occurrences can overlap. 6. Regularity and the limits of finite memory
- Telescoping sum
- A sum whose consecutive interior terms cancel. 6. Regularity and the limits of finite memory
- Pumping length and pumping lemma
- A pumping length p guarantees that every accepted word of a regular language of length at least p splits as xyz with |xy| ≤ p and |y| ≥ 1, and every xyⁱz for i ≥ 0 stays in the language. 6. Regularity and the limits of finite memory