FSA from words to automata
finite-state automata · regular expressions · type-3 grammars
5states 4 transitions · 2 final · |Σ| = 2
Non-deterministic: one path per word, all leaving q0. No two words share their first symbol, so this NFA happens to be deterministic.
Hover or tap a word to trace its path. Double circles are final states.
Transition table
| State | a | b | Nonterminal | |
|---|---|---|---|---|
| → | q0 | q1 | q4 | S |
| q1 | — | q2 | A | |
| q2 | — | q3 | B | |
| ∗ | q3 | — | — | C |
| ∗ | q4 | — | — | D |
→ initial, ∗ final. Empty cells (—) lead to rejection.