Finite Automaton (FA)
A finite automaton is a Finite State Machine which also has an additional Set of accepting states . Unlike a general FSM, an FA has a defined set of accepting states () that determine whether an input string is accepted or rejected. FAs are used specifically for language recognition.
Definition
Formally, an FA is a 5-tuple :
- : a finite Set of states
- : a finite Alphabet
- : a transition Relation
- : the start state
- : a set of accepting states
Symbols:
- Power Set ()
- Cartesian Product ()
- Empty String ()
Human: An FA is just a FSM that says “yes” or “no” to a String. If after consuming the whole input, the machine ends in a state belonging to , the input is accepting, or not, it is rejected.