section-engineering-education / engineering-education

“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
363 stars 889 forks source link

Building Finite State Machines with Python Coroutines #6413

Closed Graceshee closed 2 years ago

Graceshee commented 2 years ago

Proposed title of article

Building Finite State Machines with Python Coroutines

Proposed article introduction

Finite State Machine is a mathematical model of computation that models a sequential logic. FSM consists of a finite number of states, transition functions, input alphabets, a start state, and end state(s). Implementing an FSM is crucial to solving some of the most interesting problems in Computer Science and in this article, we dive deep into modeling a Finite State Machine using Python coroutines.

Key takeaways

  1. Python Coroutines
  2. Generators
  3. Building a Finite State Machine
    • State
    • FSM Class
    • Driver function

Article quality

In the article Building Finite State Machines with Python Coroutines I make use of simple language to enhance easy understanding for learners. I will explain all code snippets and all parts will be explained in depth.

References

N/A

lalith1403 commented 2 years ago

Thank you for the topic suggestion , however this is a bit outside of our preferred topic areas. We're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts. Please feel free to suggest an alternate topic to explore. 🚀