A deterministic finite automaton (DFA) is a kind of finite automata where there’s exact one transition for every state and input symbol. In other word, for a given input, the transition is deterministic.
Transition Function
The transition function
For DFA, the transition function is a total function and there is always a next state for every input. The transition function is also deterministic (as the name DFA suggest), which means that there’s a unique transition for every state and input symbol.
To model a situation where a state has “no valid transitions,” we typically introduce a dead state: a non-accepting state that transitions to itself on every input. Once entered, the automaton cannot leave the dead state.
Formal Definition
A DFA
- A finite set of states
- An input alphabet
- A transition function
- A start state
- A set of accepting (or final) states
Let
( is the start state) , for ( is an accepting state)