Finite Automata with output is always deterministic.
They are of two type:
1. Moore Machine
2. Mealy Machine
Moore Machine :
Moore machine are machine in which output depends on state.
In the the previous topics like DFA's machine are acceptable on the basis of reachability to final node/state from initial node/state, but this restriction is removed in Moore Machine because there is no final state.
Formal Definition of Moore machine :
It is a set of six tuple ( Q , Σ , Δ , δ , λ , q0 )
where :
Q → Finite set of states
Σ → Finite set of input symbol or alphabet
Δ →Finite set of output symbol or alphabet
δ →Transition function mapping
Q X Σ→ Q
λ → Output function
λ: Q X Δ
q0→Initial state
Note :
Finite automata with output is always deterministic.
In Moore machine if the length of input string is (n) it generate output string of length (n+1).
Construction of Moore Machine:
Example : Construct a moore machine that print "a" for '01.
Solution :
For solving this question we just create DFA for this problem because we know how to create a DFA than just associate output with states.when 01 comes print "a" and for remaining print "b".
Mealy Machine :
It is a machine in which output depend on state as well as input symbol.
Formal Definition of Mealy machine :
It is a set of six tuple ( Q , Σ , Δ , δ , λ , q0 )
where :
Q → Finite set of states
Σ → Finite set of input symbol or alphabet
Δ →Finite set of output symbol or alphabet
δ →Transition function mapping
Q X Σ→ Q
λ → Output function
λ: Q X Σ → Δ
q0→Initial state
Note :
Finite automata with output is always deterministic.
In Mealy machine if the length of input string is (n) it generate output string of length (n).
Construction of Moore Machine:
Example : Construct a Moore Machine that print "a" for '01.
Solution : Refer from notes.
Download Complete Notes of Moore & Mealy Machine:
No comments:
Post a Comment