Top Banner
Finite Automata Chapter 1
44

Finite Automata Chapter 1. Automatic Door Example Top View.

Jan 17, 2018

Download

Documents

James Daniel

Automatic Door Example State diagram State table
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Finite Automata Chapter 1. Automatic Door Example Top View.

Finite Automata

Chapter 1

Page 2: Finite Automata Chapter 1. Automatic Door Example Top View.

Automatic Door Example

• Top View

Page 3: Finite Automata Chapter 1. Automatic Door Example Top View.

Automatic Door Example

• State diagram

• State table

Page 4: Finite Automata Chapter 1. Automatic Door Example Top View.

Finite Automata Markov Chain

• Simple 2-state probabilistic Markov Chain

Page 5: Finite Automata Chapter 1. Automatic Door Example Top View.

Example 1

• What strings does this language “accept”

Page 6: Finite Automata Chapter 1. Automatic Door Example Top View.

Example 1

• Can you describe this language using set notation or a formal description?

Page 7: Finite Automata Chapter 1. Automatic Door Example Top View.

Example 1

• This machine can be describes using set and sequence notation.

M = (Q, Ʃ, δ, S, F) Ʃ = {0, 1} Q = {q1, q2, q3} S = q1

F = {q2}δ= {(q1, 0, q1), (q1, 1, q2), (q2, 1, q2), (q2, 0, q3),

(q3, 0, q2), (q3, 1, q2)}

Page 8: Finite Automata Chapter 1. Automatic Door Example Top View.

Example 2

• What language does this describe?

Page 9: Finite Automata Chapter 1. Automatic Door Example Top View.

Example 2

• Write this automata using set and sequence notation.

Page 10: Finite Automata Chapter 1. Automatic Door Example Top View.

Question 1

• Draw this automata as a state diagram.

M = (Q, Ʃ, δ, S, F) Ʃ = {0, 1} Q = {q1, q2, q3} S = q1

F = {q3}δ= {(q1, 0, q2), (q1, 1, q1), (q2, 0, q2), (q2, 1, q3),

(q3, 0, q3), (q3, 1, q3)}

Page 11: Finite Automata Chapter 1. Automatic Door Example Top View.

Question 2

• What language does this automata “accept?”

M = (Q, Ʃ, δ, S, F) Ʃ = {0, 1} Q = {q1, q2, q3} S = q1

F = {q3}δ= {(q1, 0, q2), (q1, 1, q1), (q2, 0, q2), (q2, 1, q3),

(q3, 0, q3), (q3, 1, q3)}

Page 12: Finite Automata Chapter 1. Automatic Door Example Top View.

Question 3

• Design an automata that will only accept binary strings that end with 0.

Page 13: Finite Automata Chapter 1. Automatic Door Example Top View.

Question 4

• What language does this automata accept

Page 14: Finite Automata Chapter 1. Automatic Door Example Top View.

Question 5

• Design an automata that only accepts strings that start and end with a different symbol, assume the alphabet is {a, b}

Page 15: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Languages

Page 16: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Operations

Page 17: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Operations

• Examples

Page 18: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Operations

• Closure

Page 19: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 20: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 21: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Operations

• Closure

Page 22: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 23: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 24: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Operations

• Closure

Page 25: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 26: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 27: Finite Automata Chapter 1. Automatic Door Example Top View.
Page 28: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Expression Examples

Page 29: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Expression Examples

Page 30: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Expression (RE) NFA

• (ab ᴜ a)*

Page 31: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Expression (RE) NFA

• (ab ᴜ a)*

Page 32: Finite Automata Chapter 1. Automatic Door Example Top View.

Regular Expression (RE) NFA

• (a ᴜ b)*aba

Page 33: Finite Automata Chapter 1. Automatic Door Example Top View.

(a ᴜ b)*aba

Page 34: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 35: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 36: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 37: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 38: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 39: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 40: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 41: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 42: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 43: Finite Automata Chapter 1. Automatic Door Example Top View.

DFA Regular Expression (RE)

Page 44: Finite Automata Chapter 1. Automatic Door Example Top View.