Cs3102: Theory of Computation Class 11: Moore, Mealy, and Markov Models Spring 2010 University of Virginia David Evans.

Slides:



Advertisements
Similar presentations
Lecture 10: Context-Free Languages Contextually David Evans
Advertisements

Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Cryptography in World War II Jefferson Institute for Lifelong Learning at UVa Spring 2006 David Evans Class 2: The Lorenz Cipher and the Postman’s Computer.
Analysis of Clocked Sequential Circuits
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Lecture # 14 Theory Of Automata By Dr. MM Alam 1.
1 Introduction to Computability Theory Lecture5: Context Free Languages Prof. Amos Israeli.
Lecture 3UofH - COSC Dr. Verma 1 COSC 3340: Introduction to Theory of Computation University of Houston Dr. Verma Lecture 3.
CS5371 Theory of Computation
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
CS 310 – Fall 2006 Pacific University CS310 Converting NFA to DFA Sections:1.2 Page 54 September 15, 2006.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
Homework #2 Solutions.
CS5371 Theory of Computation Lecture 6: Automata Theory IV (Regular Expression = NFA = DFA)
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
1 Non-Deterministic Automata Regular Expressions.
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 2: Modeling Computers.
Class 19: Undecidability in Theory and Practice David Evans cs302: Theory of Computation University of Virginia Computer.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Journal Status* Using the PageRank Algorithm to Rank Journals * J. Bollen, M. Rodriguez, H. Van de Sompel Scientometrics, Volume 69, n3, pp , 2006.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 4 – Part 3 Tom Kaminski & Charles.
Lecture 14: Church-Turing Thesis Alonzo Church ( ) Alan Turing ( )
Cs3102: Theory of Computation Class 10: DFAs in Practice Spring 2010 University of Virginia David Evans.
Rosen 5th ed., ch. 11 Ref: Wikipedia
David Evans CS200: Computer Science University of Virginia Computer Science Lecture 12: Decrypting Work Circle Fractal.
Nondeterministic Finite Automata CS 130: Theory of Computation HMU textbook, Chapter 2 (Sec 2.3 & 2.5)
Cs3102: Theory of Computation Class 2: Problems and Finite Automata Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the.
Cs3102: Theory of Computation Class 4: Nondeterminism Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint manual.
Automata with Output (sketch) We now have ways to formally define languages, and ways to automatically test whether a given string is a member of a language.
Cs3102: Theory of Computation Class 6: Pushdown Automata Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint manual.
The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd Presented by Anca Leuca, Antonis Makropoulos.
Moore machine and Mealy machine (P.274)
CSCI 2670 Introduction to Theory of Computing August 25, 2005.
Prof. Busch - LSU1 NFAs accept the Regular Languages.
Cs3102: Theory of Computation Class 14: Turing Machines Spring 2010 University of Virginia David Evans.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 16: Universality and Undecidability.
Cs3102: Theory of Computation Class 8: Non-Context-Free Languages Spring 2010 University of Virginia David Evans.
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
1 1 COMP5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified based on the slides provided by Lawrence Page, Sergey Brin, Rajeev Motwani.
Cs3102: Theory of Computation Class 5: Non-Regular Languages Spring 2010 University of Virginia David Evans TexPoint fonts used in EMF. Read the TexPoint.
Registers; State Machines Analysis Section 7-1 Section 5-4.
UNIT - I Formal Language and Regular Expressions: Languages Definition regular expressions Regular sets identity rules. Finite Automata: DFA NFA NFA with.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patterson and Hennessy Text.
Scribing K SAMPATH KUMAR 11CS10022 scribing. Definition of a Regular Expression R is a regular expression if it is: 1.a for some a in the alphabet ,
Finite-State Machines Fundamental Data Structures and Algorithms Peter Lee March 11, 2003.
Common Elements in Sequential Design. Lecture 3 topics  Registers and Register Transfer  Shift Registers  Counters Basic Counter Partial sequence counters.
1 Section 11.2 Finite Automata Can a machine(i.e., algorithm) recognize a regular language? Yes! Deterministic Finite Automata A deterministic finite automaton.
David Evans CS200: Computer Science University of Virginia Computer Science Class 26: Halting Problem It is plain at any.
Sequential Flexibility
Introduction to Advanced Digital Design (14 Marks)
Non Deterministic Automata
Chapter 11 Finite State Machine
Digital Design Lecture 9
ECE 301 – Digital Electronics
Jaya Krishna, M.Tech, Assistant Professor
Non-Deterministic Finite Automata
CS 154, Lecture 3: DFANFA, Regular Expressions.
COSC 3340: Introduction to Theory of Computation
Non-Deterministic Finite Automata
Non Deterministic Automata
Class 24: Computability Halting Problems Hockey Team Logo
SYEN 3330 Digital Systems Chapter 6 – Part 3 SYEN 3330 Digital Systems.
Finite Automata with Output
Mealy and Moore Machines
Finite Automata Fall 2018.
Presentation transcript:

cs3102: Theory of Computation Class 11: Moore, Mealy, and Markov Models Spring 2010 University of Virginia David Evans

Menu Exam Review Variations on DFAs: – Moore Machine: states produce output – Mealy Machine: edges produce output – Markov Model: transitions have probabilities

Moore Machine Edward Moore, Gedanken-experiments on Sequential Machines,

Moore Machine Example q0; 1 0 q1;

“Power” of a Machine Power of a DFA, NFA, DPDA, NPDA/CFG: Set of languages it can recognize/produce. Power of a Moore Machine: Set of functions it can perform. LanguageFunction Set of stringsSet of (input/output) pairs

Formal Definition

Computing Model DFAMoore

Computing Model DFAMoore

Moore’s Experiments

Okay...guess the machine!

You LOSE! q0; 1 0 q1; q2; 0q3; q6; 1 q5; 0q4;

You always lose.

Sometimes “you” win... Lorenz Cipher Machine used by Nazi high command: links between conquered capitals Machine determined by Bill Tutte (1941) from intercepted messages

Colossus Bletchley Park, 1943 Bletchley Park, 2004 (rebuilt) Decoded 63 million letters in Nazi command messages Learned German troop locations to plan D-Day (knew the deception was working) Arguably, the first electronic, digital, programmable computer.

A More Fair Game Reveal: n, maximum number of states in the machine (and , input alphabet) Equality Rule: two machines are the same if they compute the same function

 = {0, 1} n = 3

q1; 0 1 q2; 0q3;

How many experiments is enough?

Alternate Game Given: state machine Experiment: input -> output Win: guess what state the machine started in Moore proved for some machines where all states are distinguishable, it is impossible to know the starting state from one experiment.

Mealy Machine George Mealy, A Method for Synthesizing Sequential Circuits, 1955 q0 0; 1 q1 1; 0 0; 1

Computing Model Moore Machine Mealy Machine

Computing Model Moore Machine Mealy Machine

Which is more powerful? Mealy Moore

For any Moore Machine M, we can construct a Mealy Machine M’ that performs the same function: qa; z qi; x qb; y

For any Moore Machine M, we can construct a Mealy Machine M’ that performs the same function: qa; z qi; x qb; y qa qi qb x x

For any Mealy Machine M, we can construct a Moore Machine M’ that performs the same function: qa qi qb x y

For any Mealy Machine M, we can construct a Moore Machine M’ that performs the same function: qa qi qb x y qa qi1; x qb qi2; y Both have all the same outgoing transitions as qi

Equally Powerful Mealy Moore (Moore may need more needs more states)

Are they good models? q0 0; 1 q1 1; 0 0; 1

Markov Model Andrey Markov, Happy Grumpy Sleepy Sneezy

Markov Model with Outputs Happy Grumpy Sleepy Sneezy “#%#$&” “ARRGH” “Zzzzzzzz” 1.0 “achoo!” 1.0 “ho ho ho!” “wahoowa!” 0.5

Markov Model Examples a.com b.com c.org d.com 1/3 1/2 Nodes: URLs Links: hyperlinks Probabilities: 1/n number of non- self outgoing links Pr(u) = probability of reaching u starting from random seed states

Lawrence Page, Sergey Brin, Rajeev Motwani and Terry Winograd

Garkov

Hidden Markov Model Happy Grumpy Sleepy Sneezy “#%#$&” “ARRGH” “Zzzzzzzz” 1.0 “achoo!” 1.0 “ho ho ho!” “wahoowa!” 0.5 From just the outputs guess the states (and machine)

Hidden Markov Model Example No Review Question Sent Review Topics No Review Question

Hidden Markov Model Lazy Want more challenging exam Active Student No Review Question Sent Review Topics

Hidden Markov Model A A K 7 2 Raise Call Fold … Opponent Raises 0.8 Flop: 222

Return PS3 front of room A-D E-K L-R S-Z