Welcome! Log In Create A New Profile

Advanced

How I'm trying to constructively avoid studying: Cohen p54 FA

Posted by d-_-b 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
How I'm trying to constructively avoid studying: Cohen p54 FA
November 04, 2010 01:34AM
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,
Sorry, only registered users may post in this forum.

Click here to login