Automata with Output | Theory of Computation - Computer Science Engineering (CSE) PDF Download

Part VI. Automata with Output
Consider the following finite automation,
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Check whether the string 01101 is accepted by the above automation.
δ(q0, 01101) = q0
δ(q0, 01101) =q0
δ(q0, 01101) = q0
δ(q0, 01101) = q1
δ(q1, 01101) = q2
qis a final state. So the string 01101 is accepted by the above NFA.
Here note the output we obtained from the automation. THe output is that the string 01101 is accepted by the automation.Thus in our previous discussion on finite automata, there are only two possible outputs, ie, accept or reject. Thus here the task done by the machine is simply recognize a language. But machines can do more than this. So here we learn finite automata with output capabilities. We will learn two models of finite automata with output capabilities. They are,
Moore Machine, and
Mealy Machine.

10 Moore Machine
Moore machine is a finite automation.
In this finite automation, output is associated with every state.
In Moore machine, every state has a fixed output.

Example,
The following is an example transition table for a Moore Machine.
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
The transition diagram corresponding to this is ,
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
A is the start state.
There is no final state in a Moore machine.
Output is shown above every state.

Definition of a Moore Machine
Moore Machine is a six tuple machine and is defined as,

M0 ( Q, ∑, ∆, δ, λ', q0 )
where M0 is the Moore Machine,
Q is a finite set of states,
∑ is a set of input symbols,
∆ is set of outputs,
δ is the set of transition functions,
λ'is the mapping function which maps a state to an output,
q0 is the start state.

Consider the following Moore Machine,
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
In the above Moore Machine,

The set of states,
Q = {A, B, C, D}

The set of input symbols,
∑ = {a, b}

The set of outputs,
∆ = {0, 1}

The set of transitions,
δ(A, a) = D
δ(B, b) = C
δ(C, a) = C and so on.

λ'(A) = 0
λ'(B) = 1
λ'(C) = 0
λ'(D) = 0

String Processing through Moore Machine

Example 1:
Consider the Moore Machine given below:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Process the string abbb using the Moore Machine and find the output string.
Begin from the start symbol, A,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
The output string we got is 00010.


Example 2:
Consider the following Moore Machine,
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Process the string aabbba through the Moore Machine and find the output.


Note that here transition table corresponding to the Moore Machine is given.
Begin from the start symbol, A,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
The output string we got is 0001010.


11 Mealy Machine
Mealy machine is a finite automation.
In this finite automation, output is associated with every transition.
In Mealy machine, every transition for a particular input symbol has a fixed output.

Example,
The following is an example transition table for a Mealy Machine.
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
The transition diagram corresponding to this Mealy Machine is
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
A is the start state.
There is no final state in a Mealy machine.
Output is shown with every transition. (a/1 means a is the input symbol and output is 1).

Definition of a Mealy Machine
Mealy Machine is a six tuple machine and is defined as,

Me ( Q, ∑, ∆, δ, λ', q0 )
where Me is the Mealy Machine,
Q is a finite set of states,
∑ is a set of input symbols,
∆ is set of outputs,
δ is the set of transition functions,
λ'is the mapping function which maps a state and an input symbol to an output,
q0 is the start state.

Consider the following Mealy Machine,
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
In the above Moore Machine,

The set of states,
Q = {A, B, C, D}

The set of input symbols,
P = {a, b}

The set of outputs,
∆ = {0, 1}

The set of transitions,
δ(A, a) = C
δ(B, b) = D
δ(C, a) = B and so on.

λ'(A, a) = 0
λ'(B, a) = 1
λ'(C, a) = 1
λ'(D, b) = 0 and so on.
 

String Processing through Mealy Machine
 

Example 1:
Consider the Mealy Machine given below:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Process the string abbb through the above Mealy Machine and find out the output.
Begin from the start symbol, A,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

12 Moore Machine to Mealy Machine Conversion

Example 1:
Consider the Moore Machine given below:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Convert this Moore Machine to a Mealy Machine.

If we look at the above transition table, we can see that the machine has output 0 for the states A and D. The machine has output 1 for the states B and C.

To convert this to a Mealy Machine, the output is taken as 0, whenever there is a transition to A or D. Also, the output is taken as 1, whenver there is a transition to B or C.

The Mealy Machine is as follows:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

Example 2:
Convert the Moore Machine given below to a Mealy Machine:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
If we look at the above transition table, we can see that the machine has output 0 for the state A. The machine has output 1 for the states B and C.

To convert this to a Mealy Machine, the output is taken as 0, whenever there is a transition to A. Also, the output is taken as 1, whenver there is a transition to B or C.

The Mealy Machine is as follows:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

13 Mealy Machine to Moore Machine Conversion

Example 1:
Consider the Mealy Machine given below:
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Conver this to a Moore Machine.

Here, State A has output 1 at two places.
State B has output 0 at one place and 1 at another place. So this state B is decomposed into two states, B0 and B1. In the new Moore Machine, state B0 has output 0 and B1 has output 1.
State C has output 0 at one place and output 1 at another place. So this state is decomposed into two states, C0 and C1. In the new Moore Machine, state C0 has output 0 and C1 has output 1.

The Moore Machine is given below;
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

Example 2:
Convert the following Mealy Machine to Moore Machine.
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)
Here, State A has output 1 at two places.
State B has output 1 at two places.
State C has output 0 at one place and output 1 at another place. So this state is decomposed into two states, C0 and C1. In the new Moore Machine, state C0 has output 0 and C1 has output 1.
State D has output 0 at both places.


The Moore Machine is given below;
Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

The document Automata with Output | Theory of Computation - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Theory of Computation.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
18 videos|69 docs|44 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Automata with Output - Theory of Computation - Computer Science Engineering (CSE)

1. What is an automaton with output in computer science engineering?
An automaton with output, also known as a Moore machine, is a theoretical model used in computer science engineering to represent a system that takes input from a set of symbols and produces output based on its current state. It consists of a finite set of states, a set of input symbols, a set of output symbols, a transition function, and an output function.
2. How is an automaton with output different from other types of automata?
An automaton with output differs from other types of automata, such as finite automata and pushdown automata, in that it associates output symbols with each state instead of each transition. The output is produced based on the current state of the automaton, rather than the input symbol and the current state.
3. What is the purpose of an automaton with output in computer science engineering?
The purpose of an automaton with output is to model and analyze systems that exhibit behavior based on both their input and their internal state. It is commonly used in various applications, including digital circuit design, control systems, and natural language processing, to describe and understand the behavior of complex systems.
4. How does an automaton with output process input symbols?
An automaton with output processes input symbols by transitioning from one state to another based on the current state and the input symbol. This transition is determined by a transition function, which maps the current state and the input symbol to the next state. After the transition, the automaton produces an output symbol based on the current state, which is determined by an output function.
5. What are some real-life examples of automata with output?
Some real-life examples of automata with output include vending machines, traffic light control systems, and speech recognition systems. In a vending machine, for example, the input symbols are the buttons pressed by the user, and the output symbols are the items dispensed by the machine. Similarly, in a traffic light control system, the input symbols are the sensors detecting traffic, and the output symbols are the signals controlling the traffic lights.
18 videos|69 docs|44 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Objective type Questions

,

ppt

,

Summary

,

MCQs

,

Important questions

,

Free

,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

,

Previous Year Questions with Solutions

,

practice quizzes

,

pdf

,

mock tests for examination

,

Viva Questions

,

Exam

,

Extra Questions

,

shortcuts and tricks

,

video lectures

,

past year papers

,

Semester Notes

,

Automata with Output | Theory of Computation - Computer Science Engineering (CSE)

,

study material

,

Sample Paper

;