Finite state machine

From HandWiki


Although basically mostly a formal concept like the Turing machine, finite state machines do have some applications. A finite state machine consists of

  • Hepa img353.gif a set of states,
  • Hepa img353.gif an input alphabet (tokens),
  • Hepa img353.gif a transition function for each state, mapping tokens to other states.

Some of the states are terminal, like ``accept or ``reject, thus have no output to other states. Other than the transition functions, a finite state machine has no memory.

Finite state machines may be used to classify items, or to find a string of tokens in an input stream.