Deterministic Finite State machines or Deterministic Finite Automata (DFA) are one of the most basic forms of automata, although there are many forms of automata, some more complex and powerful, this tutorial will only be centered around the DFA.
A deterministic finite automaton consists of five main parts:
- a finite set of states
- a set of input or alphabet
- a set of final states, ,
- an initial state
- a transition function
DFA is formally defined as a quintuple .
A DFA will always start in initial state, it will then be fed a string of input characters causing it to change states. Each character in the string will cause the DFA to change according to its state and the transition function. When the whole string is consumed and the DFA’s state is a final state then the string is consider to be accepted by the DFA, if the internal state is not a final state then the DFA is said to have rejected the string.
- What is a Finite State Machine?
- Deterministic Finite Automata
- Examples of DFA part 1
- Examples of DFA part 2
- Examples of DFA part 3
- Combining DFAs
- Limits and Languages of DFAs
- Automata Theory, Languages, and Computation by John E. Hopcroft, Rajeev Motwani, and Jeffrey D. Ullman