An
automation system in which the output depends only on the present input is
called a Moore machine. Alternatively, an automaton system in which output
depends both on the present input and the present state is called Mealy
machine.
·
a start state (also called initial state) S0 which
is an element of (S)
·
an output function (G : S → Λ) mapping each
state to the output alphabet
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. In other words: in a 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 that takes each state-input pair (q,x) to GM(q),
where GM is M's output function.
Conversely, every Mealy machine M is equivalent to
the Moore machine with as its states all pairs of S × Λ of M, and as its
transitions ((q,o),y) → (TM(q,y),GM(q,y)), and as output
function (q,o) → o, where TM and GM are M's
transition resp. output functions.
L(R) = { (0 + 1)m000(0+1)n m ≥ 0 and n ≥ 0}.
No comments:
Post a Comment