encyclopegia.org

Moore machine

In the theory of computation, a Moore machine is a finite-state machine whose current output values are determined only by its current state. This is in contrast to a Mealy machine, whose output values are determined both by its current state and by the values of its inputs. Like other finite state machines, in Moore machines, the input typically influences the next state. Thus the input may indirectly influence subsequent outputs, but not the current or immediate output. The Moore machine is named after Edward F. Moore, who presented the concept in a 1956 paper, “Gedanken-experiments on Sequential Machines.”

In the theory of computation, a Moore machine is a finite-state machine whose current output values are determined only by its current state. This is in contrast to a Mealy machine, whose output values are determined both by its current state and by the values of its inputs. Like other finite state machines, in Moore machines, the input typically influences the next state. Thus the input may indirectly influence subsequent outputs, but not the current or immediate output. The Moore machine is named after Edward F. Moore, who presented the concept in a 1956 paper, “Gedanken-experiments on Sequential Machines.” ==Visual representation== ===Table=== A state transition table is a table listing all the triples in the transition relation \delta : S \times \Sigma \rightarrow S . ===Diagram=== The state diagram for a Moore machine, or Moore diagram, is a state diagram that associates an output value with each state. ==Relationship with Mealy machines== As Moore and Mealy machines are both types of finite-state machines, they are equally expressive: either type can be used to parse a regular language. The difference between Moore machines and Mealy machines is that in the latter, the output of a transition is determined by the combination of current state and current input ( S \times \Sigma as the domain of G ), as opposed to just the current state ( S as the domain of G ). When represented as a state diagram, for a Moore machine, each node (state) is labeled with an output value; for a Mealy machine, each arc (transition) is labeled with an output value. Every Moore machine M is equivalent to the Mealy machine with the same states and transitions and the output function G(s, \sigma) = G_M(\delta_M(s, \sigma)) , which takes each state-input pair (s, \sigma) and yields G_M(\delta_M(s, \sigma)) , where G_M is M 's output function and \delta_M is M 's transition function. However, not every Mealy machine can be converted to an equivalent Moore machine. Some can be converted only to an almost equivalent Moore machine, with outputs shifted in time. This is due to the way that state labels are paired with transition labels to form the input/output pairs. Consider a transition s_i\rightarrow s_j from state s_i to state s_j . The input causing the transition s_i\rightarrow s_j labels the edge (s_i, s_j) . The output corresponding to that input, is the label of state s_i . Notice that this is the source state of the transition. So for each input, the output is already fixed before the input is received, and depends solely on the present state. This is the original definition by E. Moore. It is a common mistake to use the label of state s_j as output for the transition s_i\rightarrow s_j . ==Examples== Types according to number of inputs/outputs. ===Simple=== Simple Moore machines have one input and one output: edge detector using XOR binary adding machine clocked sequential systems (a restricted form of Moore machine where the state changes only when the global clock signal changes) Most digital electronic systems are designed as clocked sequential systems. Clocked sequential systems are a restricted form of Moore machine where the state changes only when the global clock signal changes. Typically the current state is stored in flip-flops, and a global clock signal is connected to the "clock" input of the flip-flops. Clocked sequential systems are one way to solve metastability problems. A typical electronic Moore machine includes a combinational logic chain to decode the current state into the outputs (lambda). The instant the current state changes, those changes ripple through that chain, and almost instantaneously the output gets updated. There are design techniques to ensure that no glitches occur on the outputs during that brief period while those changes are rippling through the chain, but most systems are designed so that glitches during that brief transition time are ignored or are irrelevant. The outputs then stay the same indefinitely (LEDs stay bright, power stays connected to the motors, solenoids stay energized, etc.), until the Moore machine changes state again. ====Worked example==== A sequential network has one input and one output. The output becomes 1 and remains 1 thereafter when at least two 0's and two 1's have occurred as inputs. A Moore machine with nine states for the above description is shown on the right. The initial state is state A, and the final state is state I. The state table for this example is as follows: ===Complex=== More complex Moore machines can have multiple inputs as well as multiple outputs. ==Further reading== Moore E. F. Gedanken-experiments on Sequential Machines. Automata Studies, Annals of Mathematics Studies, 34, 129–153. Princeton University Press, Princeton, N.J.(1956). Karatsuba A. A. Solution of one problem from the theory of finite automata. Usp. Mat. Nauk, 15:3, 157–159 (1960). Karatsuba A. A. Experimente mit Automaten (German) Elektron. Informationsverarb. Kybernetik, 11, 611–612 (1975). Karatsuba A. A. List of research works.

References

No reference rows published for this article.

Cite this article

MLA

"Moore machine." encyclopegia.org, 2026, https://encyclopegia.org/wiki/moore-machine. Accessed 25 November 2026.

Chicago

"Moore machine." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/moore-machine.

APA

encyclopegia.org. (2026). Moore machine. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/moore-machine

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Internet Archive Wayback Machine

article · references available

Johanna Moore

stub · references available

Susan Moore

stub · references available

automated teller machine

stub · references available

John Moore, Baron Moore of Lower Marsh

stub · references available

Stanford Moore

stub · references available

Z-machine

stub · references available

watch timing machine

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1365891913 · 0.5 · snapshot enwiki-001365891913

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.