Created
September 3, 2024 13:46
-
-
Save wilyJ80/5f11e500c341184ab88c4ccb25e2c09c to your computer and use it in GitHub Desktop.
Automata: even number of as and bs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Automato finito: w possui um numero par de a e b */ | |
digraph { | |
zero; | |
one; | |
two; | |
node [shape="doublecircle"]; | |
three; | |
/* estado inicial */ | |
zero -> one [label="a"]; | |
zero -> two [label="b"]; | |
/* em direcao ao estado de aceitacao */ | |
one -> three [label="a"]; | |
two -> three [label="b"]; | |
/* saiu do estado de aceitacao */ | |
three -> one [label="a"]; | |
three -> two [label="b"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment