Welcome!
Log In
Create A New Profile
Home
>
2010
>
COS201V
> Topic
Advanced
How I'm trying to constructively avoid studying: Cohen p54 FA
Posted by
d-_-b
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
d-_-b
How I'm trying to constructively avoid studying: Cohen p54 FA
November 04, 2010 01:34AM
Registered: 17 years ago
Posts: 67
Rating: 0
Hi Guys
I find FA's so elegant I decided I wanted to write a quick python script that can render it for me using Graphviz instead of studying and thus the following bit of code was born:
Source code
the above example will create the following transition diagram:
Graphviz Transition Diagram
Hopefully somebody else also finds it interesting.
If I have more time I would like to use the algorithms defined by Kleene to write it to a regex and back.
Later,
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login