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.

Slides:



Advertisements
Similar presentations
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Advertisements

YES-NO machines Finite State Automata as language recognizers.
Finite Automata with Output
Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet: Languages.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
CS5371 Theory of Computation
1 CSCI-2400 Models of Computation. 2 Computation CPU memory.
Fall 2006Costas Busch - RPI1 Deterministic Finite Automata And Regular Languages.
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
1 Languages and Finite Automata or how to talk to machines...
Lecture 6 & 7 System Models.
Topics Automata Theory Grammars and Languages Complexities
Finite Automata Costas Busch - RPI.
Automata and Formal Lanugages Büchi Automata and Model Checking Ralf Möller based on slides by Chang-Beom Choi Provable Software Lab, KAIST.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
Rosen 5th ed., ch. 11 Ref: Wikipedia
Finite-State Machines with No Output
System Models Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn Lecture 6 & 7.
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
Theory of Computation - Lecture 3 Regular Languages What is a computer? Complicated, we need idealized computer for managing mathematical theories... Hence:
Moore machine and Mealy machine (P.274)
Lecture # 15 Theory Of Automata By Dr. MM Alam 1.
Copyright © Curt Hill Finite State Machines The Simplest and Least Capable Automaton.
Specification Techniques. System models are abstract descriptions of systems whose requirements are being analyzed Objectives  To explain why specification.
Lecture 8 Theory of AUTOMATA
CSC3315 (Spring 2009)1 CSC 3315 Lexical and Syntax Analysis Hamid Harroud School of Science and Engineering, Akhawayn University
Computing Machinery Chapter 4: Finite State Machines.
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.
using Deterministic Finite Automata & Nondeterministic Finite Automata
Formal Languages Finite Automata Dr.Hamed Alrjoub 1FA1.
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.
Deterministic Finite Automata Nondeterministic Finite Automata.
Govt. Engineering College- Gandhinagar. It is all about……  STATE MACHINE.
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.
Costas Busch - LSU1 Deterministic Finite Automata And Regular Languages.
Department of Software & Media Technology
Fall 2004COMP 3351 Finite Automata. Fall 2004COMP 3352 Finite Automaton Input String Output String Finite Automaton.
Finite Automata.
Languages.
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
Theory of Computation Lecture # 9-10.
CSE322 Finite Automata Lecture #2.
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
Non-Deterministic Finite Automata
CSE322 Definition and description of finite Automata
CSE322 Mealy and Moore Machine
Non Deterministic Automata
CSE322 Minimization of finite Automaton & REGULAR LANGUAGES
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
SYEN 3330 Digital Systems Chapter 6 – Part 3 SYEN 3330 Digital Systems.
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
Finite Automata with Output
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
CSC 4170 Theory of Computation Finite Automata Section 1.1.
Finite Automaton with output
Chapter # 5 by Cohen (Cont…)
Mealy and Moore Machines
Teori Bahasa dan Automata Lecture 6: Regular Expression
Non Deterministic Automata
Finite Automata Fall 2018.
Presentation transcript:

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 Igor Potapov The University of Liverpool

Software Engineering, COMP 201 Slide 2 Finite State Machines with Output (Mealy and Moore Machines) l Finite automata are like computers in that they receive input and process the input by changing states. The only output that we have seen finite automata produce so far is a yes/no at the end of processing. l We will now look at two models of finite automata that produce more output than a yes/no.

Software Engineering, COMP 201 Slide 3 Moore machine l Basically a Moore machine is just a FA with two extras. 1. It has TWO alphabets, an input and output alphabet. 2. It has an output letter associated with each state. The machine writes the appropriate output letter as it enters each state. The output produced by the machine contains a 1 for each occurrence of the substring aab found in the input string. This machine might be considered as a "counting" machine.

Software Engineering, COMP 201 Slide 4 Mealy machine l Mealy Machines are exactly as powerful as Moore machines  (we can implement any Mealy machine using a Moore machine, and vice versa). l However, Mealy machines move the output function from the state to the transition. This turns out to be easier to deal with in practice, making Mealy machines more practical.

Software Engineering, COMP 201 Slide 5 A Mealy machine produces output on a transition instead of on entry into a state. Transitions are labelled i/o where i is a character in the input alphabet and o is a character in the output alphabet. l Mealy machines are complete in the sense that there is a transition for each character in the input alphabet leaving every state. l There are no accept states in a Mealy machine because it is not a language recogniser, it is an output producer. Its output will be the same length as its input. The following Mealy machine takes the one's complement of its binary input. In other words, it flips each digit from a 0 to a 1 or from a 1 to a 0.

Software Engineering, COMP 201 Slide 6 Automata networks l (Parts of the) output of a Mealy/Moore automaton can be input to another automaton Pipeline Dataflow architecture Feedback network

Software Engineering, COMP 201 Slide 7 Automata as transition systems l Output string can be seen as a characterization of what holds in a particular state l Output language e.g. propositional logic l Given a set of atomic propositions, states are labelled with propositions that “hold” in a state (Moore style) Example transition system p,q qp