Mealy machine
In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.[src] This is in contrast to a Moore machine, whose output values are determined solely by its current state.[src] A Mealy machine is a deterministic finite-state transducer: for each state and input, at most one transition is possible.[src]
In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.[src] This is in contrast to a Moore machine, whose output values are determined solely by its current state.[src] A Mealy machine is a deterministic finite-state transducer: for each state and input, at most one transition is possible.[src] ==History== The Mealy machine is named after George H.[src] Mealy, who presented the concept in a 1955 paper, "A Method for Synthesizing Sequential Circuits".[src] ==Formal definition== A Mealy machine is a 6-tuple (S, S_0, \Sigma, \Lambda, T, G) consisting of the following: a finite set of states S a start state (also called initial state) S_0 which is an element of S a finite set called the input alphabet \Sigma a finite set called the output alphabet \Lambda a transition function T : S \times \Sigma \rightarrow S mapping pairs of a state and an input symbol to the corresponding next state.[src] an output function G : S \times \Sigma \rightarrow \Lambda^* mapping pairs of a state and an input symbol to the corresponding output symbol.[src] In some formulations, the transition and output functions are coalesced into a single function T : S \times \Sigma \rightarrow S \times \Lambda^* .[src] "Evolution across time" is realized in this abstraction by having the state machine consult the time-changing input symbol at discrete "timer ticks" t_0, t_1, t_2, ...[src] and react according to its internal configuration at those idealized instants, or else having the state machine wait for a next input symbol (as on a FIFO) and react whenever it arrives.[src] ==Comparation of Mealy and Moore machines== Mealy machines tend to have fewer states: Different outputs on arcs (n 2 ) rather than states (n).[src] When implemented as electronic circuits (rather than as mathematical abstractions or code): Moore machines are safer to use than Mealy machines: Outputs change at the clock edge (always one cycle later).[src] In Mealy machines, input change can cause output change as soon as logic is done — a big problem when two machines are interconnected – asynchronous feedback may occur if one isn't careful.[src] Mealy machines react faster to inputs: React in the same cycle—they don't need to wait for the clock.[src] In Moore machines, more logic may be necessary to decode state into outputs—more gate delays after clock edge.[src] ==Diagram== The state diagram for a Mealy machine associates an output value with each transition edge, in contrast to the state diagram for a Moore machine, which associates an output value with each state.[src] When the input and output alphabet are both , one can also associate to a Mealy automata a Helix directed graph .[src] This graph has as vertices the couples of state and letters, each node is of out-degree one, and the successor of is the next state of the automata and the letter that the automata output when it is instate and it reads letter .[src] This graph is a union of disjoint cycles if the automaton is bireversible .[src] ==Examples== ==Applications== Mealy machines provide a rudimentary mathematical model for cipher machines.[src] Considering the input and output alphabet the Latin alphabet, for example, then a Mealy machine can be designed that given a string of letters (a sequence of inputs) can process it into a ciphered string (a sequence of outputs).[src] However, although a Mealy model could be used to describe the Enigma, the state diagram would be too complex to provide feasible means of designing complex ciphering machines.[src] Moore/Mealy machines are DFAs that have also output at any tick of the clock.[src] Modern CPUs, computers, cell phones, digital clocks and basic electronic devices/machines have some kind of finite state machine to control it.[src] Simple software systems, particularly ones that can be represented using regular expressions, can be modeled as finite state machines.[src] There are many such simple systems, such as vending machines or basic electronics.[src] By finding the intersection of two finite state machines, one can design in a very simple manner concurrent systems that exchange messages for instance.[src] For example, a traffic light is a system that consists of multiple subsystems, such as the different traffic lights, that work concurrently.[src] ==References== ==External links==[src]
32 sentences · 32 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Mealy machine." encyclopegia.org, 2026, https://encyclopegia.org/wiki/mealy-machine. Accessed 04 December 2026.
Chicago
"Mealy machine." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/mealy-machine.
APA
encyclopegia.org. (2026). Mealy machine. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/mealy-machine
Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON