Deterministic Finite Automaton
Definition. A deterministic finite automaton (DFA) is a five-tuple where is a finite set of states, is an alphabet, is a total transition function, is the start state, and is the set of accepting states. accepts if reading from ends in a state of .
The finiteness of is the entire restriction: the machine reads its input once, left to right, and remembers nothing but which state it is in. Proving what a DFA recognizes means stating what each state means about the input read so far and proving that meaning survives one transition, by induction on the input length. A DFA always halts, taking exactly steps. Introduced in Lecture 3; the languages DFAs recognize are the regular ones.