DFA examples.
Same tool, four requests. Every drawing below is a real render.
Rather start from a finished drawing? Browse 40 state diagram templates →
What a DFA is.
A deterministic finite automaton reads a string one symbol at a time. From every state there is exactly one arrow for each symbol, so the path is never in doubt, and the string is accepted if the path ends in an accepting state.
Drawn as a state diagram, it is the answer format automata courses expect: a start arrow, one node per state, transitions labelled with their symbols, and the accepting states marked.
- Standard
- OMG UML 2.5.1 §14 + Harel (1987) statechart
- Engine
- schematex-state
- Editable
- Double-click text, drag nodes
- Export
- SVG · PNG · PDF
Who draws DFAs.
Homework and exam practice: the language in one sentence, the automaton on the page.
Clean diagrams for slides and answer keys, redrawn in seconds when the question changes.
Sequence detectors and controllers as Mealy or Moore machines, before writing the HDL.
How to draw a DFA in three steps.
Describe it
One paragraph is enough to start.
See the drawing
Drawn by the right engine.
Say what changes
Every edit keeps a version.
Common questions
What is a DFA?
A deterministic finite automaton: a set of states, an alphabet, one transition per state and symbol, a start state and a set of accepting states. It accepts a string if reading it from the start state ends in an accepting state.
What is the difference between a DFA and an NFA?
In a DFA every state has exactly one transition per symbol. An NFA can have several, or none, and may use ε-moves; it accepts if any path ends in an accepting state. Every NFA can be converted into an equivalent DFA.
Can it draw NFAs, Mealy and Moore machines?
Yes. Say which one you want. Mealy transitions are labelled input/output.
Can I start from a transition table?
Yes. Paste the table and say which state is the start and which are accepting.
How are the start and accepting states shown?
The start state has an incoming arrow from a filled dot, and each accepting state is labelled on the diagram.
Do I need an account?
Yes, a free one. No card is asked for.
Other drawings for the same work.
Draw your automaton now.
Free account, no card. Describe the language and see it in under a minute.
Open the editor