finite automata informal
play

Finite Automata: Informal Finite Automata: Informal p.1/20 - PowerPoint PPT Presentation

Finite Automata: Informal Finite Automata: Informal p.1/20 Computational models The theory of computation should begin with the question: what is a computer? Finite Automata: Informal p.2/20 Computational models The theory of


  1. Finite Automata: Informal Finite Automata: Informal – p.1/20

  2. Computational models • The theory of computation should begin with the question: what is a computer? Finite Automata: Informal – p.2/20

  3. Computational models • The theory of computation should begin with the question: what is a computer? • Real computers are however quite complicated so it is difficult to set up a manageable mathematical theory for them Finite Automata: Informal – p.2/20

  4. Computational models • The theory of computation should begin with the question: what is a computer? • Real computers are however quite complicated so it is difficult to set up a manageable mathematical theory for them • Instead we can use an idealized computer called computational model in order to begin the theory of computation Finite Automata: Informal – p.2/20

  5. Finite automata • The simplest computational model is called a finite state machine or a finite automaton Finite Automata: Informal – p.3/20

  6. Finite automata • The simplest computational model is called a finite state machine or a finite automaton • Before developing the mathematics of finite automata we will examine the usage of a concrete finite automaton: the controller of an automatic door Finite Automata: Informal – p.3/20

  7. The automatic door • Automatic doors are often found at supermarket entrances and exits Finite Automata: Informal – p.4/20

  8. The automatic door • Automatic doors are often found at supermarket entrances and exits • An automatic door swing open when sensing that a person is approaching Finite Automata: Informal – p.4/20

  9. The automatic door • Automatic doors are often found at supermarket entrances and exits • An automatic door swing open when sensing that a person is approaching • An automatic door is controlled by a simple automaton seen in Figure 1 Finite Automata: Informal – p.4/20

  10. Controller of an automatic door Front Rear pad pad door Figure 1: Controller of an automatic door Finite Automata: Informal – p.5/20

  11. Behavior • An automatic door has a pad in front to detect the presence of a person about to walk through the door Finite Automata: Informal – p.6/20

  12. Behavior • An automatic door has a pad in front to detect the presence of a person about to walk through the door • Another pad is located to the rear of the doorway so that the controller can hold the door open long enough for the person to pass all the way through Finite Automata: Informal – p.6/20

  13. Behavior • An automatic door has a pad in front to detect the presence of a person about to walk through the door • Another pad is located to the rear of the doorway so that the controller can hold the door open long enough for the person to pass all the way through • The rear pad also take care that the door does not strike someone standing behind it as it opens Finite Automata: Informal – p.6/20

  14. States of the controller • The controller is in either of two states: Finite Automata: Informal – p.7/20

  15. States of the controller • The controller is in either of two states: open or closed Finite Automata: Informal – p.7/20

  16. States of the controller • The controller is in either of two states: open or closed • There are four input conditions: Finite Automata: Informal – p.7/20

  17. States of the controller • The controller is in either of two states: open or closed • There are four input conditions: front, meaning that a person is standing on the front pad Finite Automata: Informal – p.7/20

  18. States of the controller • The controller is in either of two states: open or closed • There are four input conditions: front, meaning that a person is standing on the front pad rear, meaning that a person is standing on the rear pad Finite Automata: Informal – p.7/20

  19. States of the controller • The controller is in either of two states: open or closed • There are four input conditions: front, meaning that a person is standing on the front pad rear, meaning that a person is standing on the rear pad both, meaning that people are standing on both pads Finite Automata: Informal – p.7/20

  20. States of the controller • The controller is in either of two states: open or closed • There are four input conditions: front, meaning that a person is standing on the front pad rear, meaning that a person is standing on the rear pad both, meaning that people are standing on both pads neither, meaning that no one is standing on either pad Finite Automata: Informal – p.7/20

  21. State transition diagram The state transition diagram of the controller, Figure 2, depicts the movements of the controller depending upon the input it receives: ✬✩ ✬✩ ❄ ❄ ❥ open closed ✫✪ ✫✪ ❨ Figure 2: Controller’s state transition diagram Finite Automata: Informal – p.8/20

  22. State transition diagram The state transition diagram of the controller, Figure 2, depicts the movements of the controller depending upon the input it receives: rear both neither ✬✩ ✬✩ ❄ ❄ ❥ open closed ✫✪ ✫✪ ❨ Figure 2: Controller’s state transition diagram Finite Automata: Informal – p.8/20

  23. State transition diagram The state transition diagram of the controller, Figure 2, depicts the movements of the controller depending upon the input it receives: rear both neither ✬✩ ✬✩ ❄ ❄ front ❥ open closed ✫✪ ✫✪ ❨ Figure 2: Controller’s state transition diagram Finite Automata: Informal – p.8/20

  24. State transition diagram The state transition diagram of the controller, Figure 2, depicts the movements of the controller depending upon the input it receives: rear both neither ✬✩ ✬✩ ❄ ❄ front ❥ open closed ✫✪ ✫✪ ❨ neither Figure 2: Controller’s state transition diagram Finite Automata: Informal – p.8/20

  25. State transition diagram The state transition diagram of the controller, Figure 2, depicts the movements of the controller depending upon the input it receives: rear front rear both neither both ✬✩ ✬✩ ❄ ❄ front ❥ open closed ✫✪ ✫✪ ❨ neither Figure 2: Controller’s state transition diagram Finite Automata: Informal – p.8/20

  26. Interpretation Door movement: • When the door is closed and there is somebody on the rear pad or on both pads or there is no one on the pads, the door remains closed Finite Automata: Informal – p.9/20

  27. Interpretation Door movement: • When the door is closed and there is somebody on the rear pad or on both pads or there is no one on the pads, the door remains closed • When the door is closed and somebody steps on the front pad the door opens Finite Automata: Informal – p.9/20

  28. Interpretation Door movement: • When the door is closed and there is somebody on the rear pad or on both pads or there is no one on the pads, the door remains closed • When the door is closed and somebody steps on the front pad the door opens • When the door is open and somebody is on the front pad, rear pad, or on both pads the door stays open Finite Automata: Informal – p.9/20

  29. Interpretation Door movement: • When the door is closed and there is somebody on the rear pad or on both pads or there is no one on the pads, the door remains closed • When the door is closed and somebody steps on the front pad the door opens • When the door is open and somebody is on the front pad, rear pad, or on both pads the door stays open • When the door is open and nobody is on the pads the door closes Finite Automata: Informal – p.9/20

  30. Interpretation Controller movement: • When controller is in the state closed and the input is rear, both, or neither the controller remains in the state closed Finite Automata: Informal – p.10/20

  31. Interpretation Controller movement: • When controller is in the state closed and the input is rear, both, or neither the controller remains in the state closed • When controller is in the state closed and the input is front the controller moves to the state open Finite Automata: Informal – p.10/20

  32. Interpretation Controller movement: • When controller is in the state closed and the input is rear, both, or neither the controller remains in the state closed • When controller is in the state closed and the input is front the controller moves to the state open • When the controller is in the state open and the input is one of front, rear, both, the controller remains in the state open Finite Automata: Informal – p.10/20

  33. Interpretation Controller movement: • When controller is in the state closed and the input is rear, both, or neither the controller remains in the state closed • When controller is in the state closed and the input is front the controller moves to the state open • When the controller is in the state open and the input is one of front, rear, both, the controller remains in the state open • When the controller is in the state open and the input is neither the controller moves to the state closed Finite Automata: Informal – p.10/20

  34. Tabular representation The movement of the controller (and of the door) can also be represented by a table whose lines are labeled by Finite Automata: Informal – p.11/20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend