Lecture 8 Theory of AUTOMATA

Slides:



Advertisements
Similar presentations
Finite-State Machines with No Output Ying Lu
Advertisements

4b Lexical analysis Finite Automata
State-machine structure (Mealy)
Software Engineering, COMP 201 Slide 1 Automata and Formal Languages Moore and Mealy Automata Ralf Möller Hamburg Univ. of Technology based on slides by.
Finite Automata with Output
Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
Finite Automata Chapter 5. Formal Language Definitions Why need formal definitions of language –Define a precise, unambiguous and uniform interpretation.
Topics Automata Theory Grammars and Languages Complexities
Rosen 5th ed., ch. 11 Ref: Wikipedia
Zvi Kohavi and Niraj K. Jha 1 Capabilities, Minimization, and Transformation of Sequential Machines.
Finite-State Machines with No Output Longin Jan Latecki Temple University Based on Slides by Elsa L Gunter, NJIT, and by Costas Busch Costas Busch.
Finite-State Machines with No Output
Unit 14 Derivation of State Graphs
Lecture 03: Theory of Automata:08 Finite Automata.
Lecture 07: Formal Methods in SE Finite Automata Lecture # 07 Qaisar Javaid Assistant Professor.
CSC312 Automata Theory Lecture # 19 Chapter # 8 by Cohen Finite Automata with Output.
1 Course Overview PART I: overview material 1Introduction 2Language processors (tombstone diagrams, bootstrapping) 3Architecture of a compiler PART II:
Moore machine and Mealy machine (P.274)
SCRIBE SUBMISSION GROUP 8 Date: 7/8/2013 By – IKHAR SUSHRUT MEGHSHYAM 11CS10017 Lexical Analyser Constructing Tokens State-Transition Diagram S-T Diagrams.
Lecture # 15 Theory Of Automata By Dr. MM Alam 1.
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
1 Recap lecture 22 Applications of complementing and incrementing machines, Equivalent machines, Moore equivalent to Mealy, proof, example, Mealy equivalent.
1 Recap lecture 21 Example of Moore machine, Mealy machine, Examples, complementing machine, Incrementing machine.
Lecture # 12. Nondeterministic Finite Automaton (NFA) Definition: An NFA is a TG with a unique start state and a property of having single letter as label.
Lecture 4 Theory of AUTOMATA
Finite State Machines 1.Finite state machines with output 2.Finite state machines with no output 3.DFA 4.NDFA.
Turing Machine. Turing machine The mathematical models (FAs, TGs, PDAs) that have been discussed so far can decide whether a string is accepted or not.
Computing Machinery Chapter 4: Finite State Machines.
Modeling Computation: Finite State Machines without Output
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
Lecture # 15. Mealy machine A Mealy machine consists of the following 1. A finite set of states q 0, q 1, q 2, … where q 0 is the initial state. 2. An.
Overview of Previous Lesson(s) Over View  A token is a pair consisting of a token name and an optional attribute value.  A pattern is a description.
Lecture 22: Finite State Machines with Output. Moore Machine - A Moore machine is a 6-tuple (Q, , , , q 0,  ) where, (1) Q is a finite set of states.
1 Section 11.2 Finite Automata Can a machine(i.e., algorithm) recognize a regular language? Yes! Deterministic Finite Automata A deterministic finite automaton.
L ECTURE 3 T HEORY OF AUTOMATA. E QUIVALENT R EGULAR E XPRESSIONS Definition Two regular expressions are said to be equivalent if they generate the same.
Lecture 06: Theory of Automata:08 Finite Automata with Output.
Lecture 14: Theory of Automata:2014 Finite Automata with Output.
Mealy Machines Finite State Machines with Outputs given on the transitions.
Mealy and Moore Machines Lecture 8 Overview Moore Machines Mealy Machines Sequential Circuits.
1 Advanced Theory of Computation Finite Automata with output Pumping Lemma Theorem.
Finite Automata (FA) with Output FA discussed so far, is just associated with R.Es or language. Is there exist an FA which generates an output string corresponding.
Lecture # 16. Applications of Incrementing and Complementing machines 1’s complementing and incrementing machines which are basically Mealy machines are.
Lecture 15: Theory of Automata:2014 Finite Automata with Output.
Generalized Transition Graphs
Mealy Machine x X1 X2 S S1 S2 S3 x X1 X2 S S1 Y1 Y2 S2 Y3 S3 outputs
PDA’s - A new format for FAs
Lecture 9 Theory of AUTOMATA
Jaya Krishna, M.Tech, Assistant Professor
Some slides by Elsa L Gunter, NJIT, and by Costas Busch
THEORY OF COMPUTATION Lecture One: Automata Theory Automata Theory.
CSE322 Mealy and Moore Machine
Kleene’s Theorem Muhammad Arif 12/6/2018.
Finite Automata.
Finite Automata.
4b Lexical analysis Finite Automata
Deterministic Finite Automaton (DFA)
Recap lecture 44 Decidability, whether a CFG generates certain string (emptiness), examples, whether a nonterminal is used in the derivation of some word.
4b Lexical analysis Finite Automata
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
Recap lecture 23 Mealy machines in terms of sequential circuit.
Recap Lecture 15 Examples of Kleene’s theorem part III (method 3), NFA, examples, avoiding loop using NFA, example, converting FA to NFA, examples, applying.
Finite Automata with Output
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
Recap lecture 40 Recap of example of PDA corresponding to CFG, CFG corresponding to PDA. Theorem, HERE state, Definition of Conversion form, different.
Finite Automaton with output
Recap Lecture 4 Regular expression of EVEN-EVEN language, Difference between a* + b* and (a+b)*, Equivalent regular expressions; sum, product and closure.
LECTURE # 07.
Mealy and Moore Machines
Presentation transcript:

Lecture 8 Theory of AUTOMATA

Finite Automaton with output There are two types of machines with output. Moore machine and Mealy machine Mealy and Moore models are the basic models of state machines. A state machine which uses only Entry Actions, so that its output depends on the state, is called a Moore model. A state machine which uses only Input Actions, so that the output depends on the state and also on inputs, is called a Mealy model.

Finite Automaton with output Moore machine A Moore machine consists of the following A finite set of states q0, q1, q2, … where q0 is the initial state. An alphabet of letters Σ = {a,b,c,…} from which the input strings are formed. An alphabet Γ={x,y,z,…} of output characters from which output strings are generated. A transition table that shows for each state and each input letter what state is entered the next.

Finite Automaton with output Moore machine Note It is to be noted that since in Moore machine no state is designated to be a final state, so there is no question of accepting any language by Moore machine. However in some cases the relation between an input string and the corresponding output string may be identified by the Moore machine. 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 started from the state where it was left off.

Finite Automaton with output Example Consider the following Moore machine having the states q0, q1, q2, q3 where q0 is the start state and Σ = {a,b}, Γ={0,1} the transition table follows as

Finite Automaton with output the transition diagram corresponding to the previous transition table may be

Finite Automaton with output Running the string abbabbba over the above machine, the corresponding output string will be 100010101, which can be determined by the following table as well It may be noted that the length of output string is l more than that of input string as the initial state prints out the extra character 1, before the input string is read.

Finite Automaton with output Mealy machine A Mealy machine consists of the following A finite set of states q0, q1, q2, … where q0 is the initial state. An alphabet of letters Σ = {a,b,c,…} from which the input strings are formed. An alphabet Γ={x,y,z,…} of output characters from which output strings are generated. A pictorial representation with states and directed edges labeled by an input letter along with an output character. The directed edges also show how to go from one state to another corresponding to every possible input letter. (It is not possible to give transition table in this case.)

Finite Automaton with output Note It is to be noted that since, similar to Moore machine, in Mealy machine no state is designated to be a final state, so there is no question of accepting any language by Mealy machine. However in some cases the relation between an input string and the corresponding output string may be identified by the Mealy machine. 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 started from the state where it was left off.

Finite Automaton with output Example Consider the Mealy machine shown aside, having the states q0, q1, q2, q3 , where q0 is the start state and Σ = {a,b}, Γ={0,1}

Finite Automaton with output Running the string abbabbba over the above machine, the corresponding output string will be 11011010, which can be determined by the following table as well It may be noted that in Mealy machine, the length of output string is equal to that of input string.