CSCE 222 Lecture 28

From Notes
Jump to navigation Jump to search

« previous | Wednesday, April 13, 2011 | next »


Finite State Machines

A finite state machine is defined by a six-tuple:

  • S — set of states
  • I — input alphabet
  • O — output alphabet
  • f — transition function (what is the next state given the current state and input)
  • g — output function (what kind of output should I produce?)
  • s0 — start state


Example


Input: binary string of length , and

Output: Computes the sum of two integers and . Add and producing a sum and a carrier . Then and are added to the carrier bit yielding and another carrier . etc.