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.

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. Inclusion test: A transducer is a Moore machine when it has finite state, deterministic state transition, and an output function G:S→Λ that ignores the current input. Exclusion test: A finite-state acceptor without an output alphabet and output function is excluded. Nearest boundary: A Mealy machine is the closest near miss because its output depends jointly on current state and input. Exit condition: The identity exits when output is placed on transitions, direct input affects immediate output, the state set is unbounded, or the transition relation is nondeterministic under the chosen definition. Common misclassifications: 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. Nearest named distinctions: Mealy machine: Its output function depends on current state and current input. Deterministic finite acceptor: Recognizes language membership and need not emit an output at every state. State-transition system: May omit finite alphabets, determinism, or an output mapping. Clocked sequential circuit: Is a hardware realization family rather than the abstract definition.

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.

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