TOC-02 · Theory of Computation · DFA construction

DFA builder and tester

Draw a deterministic finite automaton, then watch it read a string one symbol at a time.

How to use
  1. Pick a preset, or choose Add state and click the canvas to place states.
  2. Choose Add transition, type the symbols (for example a,b), click the source state, then the target.
  3. Set start and Toggle final mark the start arrow and the double circle.
  4. Type a string and press Step (or Run all). Use Test many strings to check a whole list at once.
Exam trap
A DFA needs exactly one move from every state on every symbol. A missing move is an implicit dead state, so the string is rejected, and it still counts as a state when you ask for the number of states in a complete DFA.