Presentation is loading. Please wait.

Presentation is loading. Please wait.

Finite Automata with Output

Similar presentations


Presentation on theme: "Finite Automata with Output"— Presentation transcript:

1 Finite Automata with Output
CSC312 Automata Theory Lecture # 17-18 Chapter # 8 by Cohen Finite Automata with Output

2 The are two types of machine (FAs) with output capabilities
The are two types of machine (FAs) with output capabilities. These are create by G.H Mealy (1955) and, independently by E.F Moore (1956). The original purpose of the inventors was to design a mathematical model for sequential circuits, which are only one component of the architecture of a whole computer. Moore Machine: A Moore machine is a collection of five things An alphabet of letters ={a, b, c,… } from which the input strings are formed. An alphabet  = {x, y, z,…} of possible output characters.

3 Moore Machine (Cont…) Note:
3) A finite set of states q0, q1, q2,... Where q0 is the initial state. 4) A transition table that shows for each state and each input letter what state is reached next. 5) An output table that shows what character from  is printed by each state as it is entered. Note: The Moore machine prints the output character of start state even before looking at the input letter.

4 Moore Machine (Cont…) 2) Since there is no state designated to be a final state, so there is no question of accepting any language by Moore Machine. 3) The state to be initial is not important as if the machine is used several times and is restarted after some time, the machine will be restarted from the state where it was left off. Ex:

5 Mealy Machine A Mealy machine is a collection of four things
An alphabet of letters ={a, b, c,… } from which the input strings are formed. An alphabet  = {x, y, z,…} of possible output characters. A finite set of states q0, q1, q2,... where q0 is the initial state. A pictorial representation with states represented by small circles and directed edges indicating transitions between states. Edges are labeled by an input letter along with an output character in the form i/o. Every state must have exactly one outgoing edge for each possible input letter.

6 Mealy Machine (Cont…) Note:
The Mealy machine no state is designated to be a final state, so there is no quesiton of accepting any language. The state of the initial is not important as if the machine is used several times and is restarted after some time, the machine restarted after some time, the machine will be restarted from the state where it was left off. Ch # 8: Exercise Questions 1, 3, 4, 6, 7, 8, 9


Download ppt "Finite Automata with Output"

Similar presentations


Ads by Google