cs3102: Theory of Computation Class 11: Moore, Mealy,

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, 1956. http://people.mokk.bme.hu/~kornai/MatNyelv/moore_1956.pdf Moore Machine Example 0 q0; 1 1 0

1 q1; 0 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. Language Set of strings Function Set of

(input/output) pairs Formal Definition Computing Model DFA Moore Computing Model DFA Moore

Moores Experiments Okay...guess the machine! You LOSE! 0 q0; 1 1 0

0 0 q1; 0 q2; 0 1 1 1

0 q6; 1 q3; 0 1 0 q5; 0

1 q4; 0 1 0 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 Arguably, the first electronic, digital, programmable computer. Bletchley Park, 1943

Decoded 63 million letters in Nazi command messages Learned German troop locations to plan D-Day (knew the deception was working) Bletchley Park, 2004 (rebuilt) 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 0 0 q1; 0 q2; 0 1 q3; 1

1 0 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 0; 1 q0 1; 0 0; 1 1; 0 q1 Mealy

Machine Moore Machine Computing Model Mealy Machine Moore Machine

Computing Model Which is more powerful? Moor e Mealy For any Moore Machine M, we can construct a Mealy Machine M that performs the same function: qb; y qa; z

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

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

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

qi qi1; x qi2; y Both have all the same outgoing transitions as qi Equally Powerful Moor e

Mealy (Moore may need more needs more states) Are they good models? 0; 1 q0 0; 1 1; 0 1; 0

q1 Markov Model 1.0 0.3 Happy Grumpy 0.2

0.4 0.7 0.3 Sleepy 1 0. Sneezy 0.1 0.9

Andrey Markov, 1856-1922 Markov Model with1.0Outputs 0.3 ARRGH Grumpy 0.3 0.7 0.7 Happy

0.3 Sleepy 0.5 1.0 0.5 ho ho ho! Sneezy 0.1

wahoowa! 0.9 1.0 achoo! #%#\$& Zzzzzzzz Markov Model Examples

1/2 c.org 3 1/ 1/2 Pr(u) = probability of reaching u starting from random seed states d.com

1/2 1/2 Lawrence Page, Sergey Brin, Rajeev Motwani and Terry Winograd Garkov http://www.joshmillard.com/garkov/ Hidden Markov Model 1.0 0.3

0.4 Happy 0.3 0.7 0.7 0.3 Sleepy

0.5 1.0 1 0. 0.5 ho ho ho! Sneezy 0.1

wahoowa! ARRGH Grumpy 0.2 0.9 1.0 From just the outputs guess the states (and machine)

achoo! #%#\$& Zzzzzzzz Hidden Markov Model Example No Review Question No Review Question No Review

Question No Review Question No Review Question No Review Question No Review Question No Review Question No Review Question

No Review Question No Review Question No Review Question No Review Question No Review Question No Review Question

No Review Question No Review Question No Review Question No Review Question No Review Question No Review Question

No Review Question No Review Question No Review Question No Review Question Sent Review Topics No Review Question No Review

Question No Review Question No Review Question No Review Question No Review Question No Review Question No Review

Question No Review Question No Review Question No Review Question No Review Question No Review Question No Review Question

No Review Question No Review Question No Review Question No Review Question No Review Question No Review Question

No Review Question No Review Question No Review Question No Review Question Hidden Markov Model Want more challenging exam

Lazy 0.9 1.0 No Review Question 0.1 Sent Review

Topics Active Student 1.0 Hidden Markov Model AA Flop: 222 Opponent Raises 0.4

0.6 0.8 AK 0.9 72 0.02 0.08 Raise

Call Fold Return PS3 front of room A-D E-K L-R

S-Z

Recently Viewed Presentations

• 11.7 Substituted Derivatives of Benzene and Their Nomenclature General Points 1) Benzene is considered as the parent and comes last in the name.
• Brand USP's. First brewed at the Eagle Brewery in Bedford in 1980, Bombardier was inspired by "Bombardier" Billy Wells. Like the man himself, this is a beer of truly distinctive character.
• Lancet 1999 Potentiel de thrombose Âge Âge Facteur V Leiden Contraception estroprogestative orale Accident thromboembolique Geste chirurgical Effet supra-additifs Le score de Wells (thrombose proximale) Cancer 1 point Paralysie ou immobilisation récente 1 point Repos au lit > 3 jours,...
• Third Line: Conflict Theory (Radical Weberianism) Menganalisa hubungan sosial dalam masyarakat kapitalis. Selalu ada dominasi tidak hanya pada masyarakat kapitalis menghentikan kapitalisme tidak akan menghilangkan dominasi. 4 Ide umum yang ada pada paradigma radikal strukturalis 1. Totalitas ...
• The Locker Problem Imagine you are at a school that has student lockers. There are 1000 lockers, all shut and unlocked, and 1000 students. Suppose the first student goes along the row and opens every locker.
• Strategy: A View from the Top"Global Strategy Formulation"Chapter 8. Team 1. Jade Black. ... some countries or regions are more efficient than others in producing certain goods. ... cultural and linguistic differences, and geographical distance from the US ...
• Larinus Collections Aphthona - leafy spurge flea beetles Adults emerge from soil early/mid summer Release pheromone, stay together Adults feed on spurge leaves, high #'s can damage plants Scatter eggs on soil around spurge plants Larvae soon hatch, feed on...
• Mas Libros en Casa= Mayor éxito Académico. Libros en casa tan importante como la educación de los padres en determinar la nivel de educación en los ninos, ScienceDaily (20 de mayo de 2010) — Ricos o pobres, residentes de los...