Skip to content

Moore machine

A finite-state transducer whose output is determined solely by its current state, while input affects output only indirectly by selecting later states.

Version
v2 · 2026-11-14 · History
Domain-specific #
10810
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomain
Automata Theory → Computer Science & Software Engineering
Aliases
Moore automaton

Core Idea

A Moore machine is a finite-state transducer that separates transition from emission. Its transition function consumes current state and input to choose a next state, while its output function reads only the active state. A diagram therefore places output labels on nodes, not on arcs.

This separation gives outputs stable for the duration of a state and makes state the machine's complete output-relevant memory. It also creates a timing convention: an input influences output by causing a transition, and Moore–Mealy conversions may introduce an initial output or one-step shift even when the machines are otherwise expressively equivalent.

How would you explain it like I'm…

The Mood-Light Robot

Imagine a toy robot with different moods, and each mood has its own light color. When you press a button, the robot switches to a new mood, and its light changes because the mood changed. The light only depends on which mood the robot is in right now.

Output Lives in the State

A Moore machine is a simple kind of machine with a set of states, like the rooms of a house. When an input arrives, the machine moves to a new state. Its output depends only on which state it is in, not on the input it just got. So the input changes the output only by moving the machine into a different state. A traffic light that shows a color for each step of its cycle is a good picture of this.

Output-on-States Machine

A Moore machine is a finite-state machine that produces outputs. It has two separate jobs: a transition function that takes the current state and an input and chooses the next state, and an output function that looks only at the current state. So the output stays the same for as long as the machine stays in a state, and an input can only change the output by moving the machine to a new state. This contrasts with a Mealy machine, whose outputs depend on both the state and the input and are written on the arrows. The two kinds can describe the same behavior, but converting between them may shift outputs by one step or add an initial output.

 

A Moore machine is a finite-state transducer that separates transition from emission. Its transition function maps (current state, input) to the next state, while its output function depends only on the active state. In state diagrams, output labels therefore sit on the nodes rather than on the arcs. One consequence is that output is stable throughout a state's duration, and the state is the machine's complete output-relevant memory. Another is a timing convention: input affects output only indirectly, by causing a transition into a state with a different output. Compared with a Mealy machine, whose output depends on state and input, a Moore machine is expressively equivalent, but conversions between the two can introduce an initial output or a one-step output delay.

Structural Signature

Sig role-phrases:

  • finite state set — stores the machine's entire abstract memory It is essential. Counterfactual: An unbounded-memory transducer is not a finite Moore machine.
  • initial state — fixes output and behavior before input processing begins It is essential. Counterfactual: Without initialization the realized transduction is underdetermined.
  • input alphabet — provides symbols that select transitions It is essential. Counterfactual: An autonomous output generator is a degenerate different setting.
  • transition function — maps each current state and input to the next state It is essential. Counterfactual: If one state-input pair branches, the deterministic Moore definition fails.
  • output alphabet — declares the possible emitted values It is essential. Counterfactual: States without outputs define an acceptor or transition system instead.
  • state-output function — assigns one output to each state independently of current input It is essential. Counterfactual: Allowing current input in the output function produces a Mealy machine.

What It Is Not

  • It is not a Mealy machine whose immediate output also depends on input.
  • It is not a state diagram without an output function.
  • It is not necessarily a physical clocked circuit, though such circuits commonly implement it.
  • It is not equivalent to another transducer until initialization and output timing are aligned.
  • Closest near-miss. A Mealy machine is the closest near miss because its output depends jointly on current state and input.

Scope of Application

  • Digital logic. Sequential controllers decode outputs from state registers.
  • Protocol control. Finite states organize stable responses to event symbols.
  • Automata theory. State-output transducers support equivalence and minimization reasoning.
  • Reactive modeling. Observable output traces describe stateful behavior.

Clarity

Declare the six-tuple, total or partial transition convention, timing of state observation, initialization output, state and transition labels, and equivalence criterion for traces. Do not infer Moore semantics merely because a diagram happens to show output text inside nodes.

Manages Complexity

The model compresses an indefinitely long input history into finitely many equivalence classes represented by states. Assigning outputs to those states makes behavior transparent, but state minimization, timing, unreachable states, and implementation hazards remain separate questions.

Abstract Reasoning

  1. Fix finite state, input, and output alphabets.
  2. Choose an initial state and state-output mapping.
  3. Define one next state for each admissible state-input pair.
  4. Simulate by emitting the current state's output under the declared timing convention.
  5. Advance state from the input symbol.
  6. Compare machines by aligned input/output traces and initialization.
  7. Reject Mealy-style direct input-output dependence or translate it with explicit timing effects.

Knowledge Transfer

State-output decomposition transfers to software controllers and circuits when finite abstract state and discrete observation timing are defensible. It stops at systems requiring unbounded memory, continuous dynamics, or direct combinational input-output response unless those are abstracted separately. The cargo is output as a function of state alone.

Examples

Applied / In Practice

States remember the previous bit and state labels emit whether the remembered/current relation satisfies the detector design.

Mapped back: memory → Finite states retain prior context; output → Each active state has one label.

Applied / In Practice

Flip-flops encode state, next-state logic consumes input, and decode logic maps state to stable actuator outputs.

Mapped back: transition → Input changes the next register value; output → Decode uses the current register state.

Applied / In Practice

An output label is chosen directly from the present input on each arc.

Mapped back: boundary → That is Mealy-style output.

Structural Tensions

T1 — State-Only Output Stability versus Response Latency. State decoding isolates output from immediate input but can require an extra state or tick to reflect an event.

Diagnostic: State the sampling convention and align input/output pairs before comparing machines.

T2 — Equivalent Behavior versus Different Realization. A Mealy transducer may implement the same stream relation with fewer states or a timing offset.

Diagnostic: Compare trace convention and initialization, not diagrams alone.

Structural–Framed Character

The six-tuple and output dependency are formal structural commitments; clock and trace conventions frame observable equivalence. Physical glitches or delays belong to implementation unless included in the machine model.

Structural Core vs. Domain Accent

The skeleton is finite memory controlling observable output. Automata theory supplies alphabets, transition and output functions, initial state, traces, and Moore–Mealy conversion. Those commitments distinguish this transducer class.

  • Approved root in the frozen placement. Deterministic automaton is a plausible future superclass, but the frozen node is unparented and this repair does not authorize a new edge.

  • Related — Mealy machine and finite-state transducer. They provide the nearest contrast and broader machine family.

Neighborhood in Abstraction Space

Moore machine sits in a crowded region of the domain-specific corpus (33rd percentile for distinctiveness): several abstractions share nearly its structure, so a description that fits it tends to fit its neighbors too.

Family — Digital Logic & Finite-State Machines (10 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

  • Mealy machine. Tell: Its output function depends on current state and current input.
  • Deterministic finite acceptor. Tell: Recognizes language membership and need not emit an output at every state.
  • State-transition system. Tell: May omit finite alphabets, determinism, or an output mapping.
  • Clocked sequential circuit. Tell: Is a hardware realization family rather than the abstract definition.

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Moore_machine (revision 1365891913).