Understanding Finite State Machines in Computing

Slide Note
Embed
Share

Discover the world of Finite State Machines (FSMs) in computing through images and explanations. Learn about base elements, software complexity, DFA terminology, high reliability proofs, and practical examples like the Fox Chicken Grain Problem. Dive into FSM specifications and explore Java code generation. Uncover the art of translating input strings for DFA applications.


Uploaded on Sep 18, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Finite States: Base Elements in a Computing Orchestra Ronald Finkbine, Ph.D. Department of Computer Science Indiana University Southeast rfinkbin@ius.edu

  2. Software Complexity Programmer Understandability Maintainability Reduce by tools Reduce by techniques Introduction

  3. Finite State Machine, any program DFA, 4 tuple 1. States 2. Transitions 3. Start state 4. Accept states Moore Machine Mealy Machine Definitions

  4. Accepts L={a*b+} Incomplete Elementary DFA

  5. High-reliability Proof or show? Mathematics is a modeling method Proofs are social constructs Diagrammetics Benefits of DFAs

  6. Simple FSM Specification

  7. Graphviz.org dot -v -Tjpeg -o beginner.jpg beginner.dot Pictures are good

  8. Text file output

  9. Show or proof?

  10. Java code produced

  11. A man is crossing a river on the way to market with a chicken, a bag of grain and a fox. If left unattended the fox will eat the chicken, and the chicken will eat the grain. The boat will only hold the man and one of these at a time. Your task is to work out a sequence of crossings that will affect a safe transfer of the man, the fox, the chicken and the grain safely across the river. Fox Chicken Grain Problem

  12. DFA

  13. Translating into English, the input string represents: Man and chicken cross river Man returns with empty boat Man and fox cross river Man returns with chicken Man and grain cross river Man returns with empty boat Main and chicken cross river Text: CeFCGeC

  14. Connecting FSMs into a flow

  15. FSMs are complete programs Lead to parallelism Not restricted to single language Not sharing spaces, better security Limits programming options, reduces programming complexity, GOOD Data in single layer, in surface pipe Benefits

  16. cls initdb.py p0.py <input\fred.f >f1.txt type f1.txt | indb.py NodeToken >f2.txt type f2.txt | s3 ars.db call s3 ars.db "select * from NodeTokens" call s3 ars.db "select count(*) from NodeTokens" type f1.txt | only.py NodeToken >f3.txt outdb.py -n ars.db NodeTokens | parse.py numdb.py ars.db NodeTokens Sample

  17. Software Complexity Programmer Understandability Maintainability Reduce by tools Reduce by techniques FSMs can be everywhere

Related


More Related Content