Mealy Machine

1 min read Updated Fri Apr 24 2026 07:36:29 GMT+0000 (Coordinated Universal Time)

A finite automaton where the output depends on both the current state and the input symbol. Output is produced during transitions. A 6-tuple.

Suppose M=(Q,Σ,Δ,q0,δ,λ)M = (Q, \Sigma, \Delta, q_0, \delta, \lambda) is a Mealy machine, where:

  • QQ is a finite set of states
  • Σ\Sigma is a finite input alphabet
  • Δ\Delta is a finite output alphabet
  • q0Qq_0 \in Q is the initial state
  • δ:Q×ΣQ\delta : Q \times \Sigma \rightarrow Q is the transition function
  • λ:Q×ΣΔ\lambda : Q \times \Sigma \rightarrow \Delta is the output function

Output is attached to state + input or transitions.