Aka. DFA. Has a single starting state.
Transition Function
Denoted by δ:Q×Σ→Q. It maps a state and an input symbol to the next state.
Extended Transition Function
Denoted by δ∗. Handles strings instead of each symbol. δ∗(q,x) is the state reached after reading string x starting from state q.
Rules:
- δ∗(q,λ)=q
- δ∗(q,ya)=δ(δ∗(q,y),a)
Acceptance by a DFA
Let M=(Q,Σ,q0,A,δ).
A string x∈Σ∗ is accepted iff δ∗(q0,x)∈A.
Complement
Complement of a complete DFA M=(Q,Σ,q0,A,δ) is M=(Q,Σ,q0,Q∖A,δ).
For incomplete DFAs, if a dead/sink state d and define δ(q,a)=d for all undefined transitions. Then we can apply the complement operation as above.