Presentation is loading. Please wait.

Presentation is loading. Please wait.

Finite State Machines. What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties of.

Similar presentations


Presentation on theme: "Finite State Machines. What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties of."— Presentation transcript:

1 Finite State Machines

2 What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties of those objects common properties that are exclusive to those objects. Examples:  Vehicle is an abstraction of car, truck, motorcycle  Bird is an abstraction of duck, chicken, dove, eagle etc.  Emotion is an abstraction of anger, love, fear, sadness etc. Abstraction is an essential process in science  It helps identify commonalities and differences  It helps focus on important properties  a model is an abstraction.

3 Finite State Machines (automata) A Finite State Machine is an abstraction of a computing system that consists of  States of the system  Events (or triggers) that happen to the system  Actions performed by the system  Transitions between states A FSM is usually depicted by its state transition diagram.  Also, by the state transition table. State (another) state S1: Sitting S2: Standing S3: Walking E1: hear "go" Stand and walk, S3 walk, S3S3 E2: hear "stop" (no action), S1 sit, S1 Stop walking, S2

4 Finite State Machines: Examples A traffic light A soda dispenser A gum ball machine An elevator An ATM

5 Traffic light FSM Green state Yellow state Red state (Event) one-minute timer expired / (Actions) turn off green light, turn on yellow light set 10-second timer (Event) 10-second timer expired / (Actions) turn off yellow light, turn on red light set 1:10 minute timer (Event) 1:10 min timer expired / (Actions) turn off yellow light, turn on red light set 1:10 minute timer

6 Abstraction of a computing machine Finite State Machines cannot abstract all computers or all that they can do There is another model of a computer that can solve any problem that any other computer can  Alan Turing's Universal Computing Machine Known as "Universal Turing Machine" or "Turing machine"

7 Universal Turing Machine UTM consists of  A tape of discrete positions The tape is readable and writable Each position contains one symbol from a set of symbols  A head that reads and writes on the tape  A control unit that controls the tape and the head, and consists of A finite state machine, where:  Every event is about reading a certain symbol  Every action is about writing a symbol and moving forward or backward along the tape

8


Download ppt "Finite State Machines. What is "abstraction"? Abstraction unifies multiple and different objects into one concept  describes the common properties of."

Similar presentations


Ads by Google