ChatDiagram
automata · regex · compiler

Thompson Construction ε-NFA for (a|b)*abb

Type State diagramStandard OMG UML 2.5.1 §14 + Harel (1987) statechartEngine schematex-stateUpdated 9/28/2026
Thompson Construction ε-NFA for (a|b)*abb
Drawing preview
The scenario

Construct an ε-NFA for the regular expression (a|b)*abb using Thompson construction, connecting union, star, and concatenation sub-automata with epsilon transitions.

What is in this drawing

Read the decisions behind it.

01

Use epsilon transitions to link union branches and allow star repetition

02

Model the star with skip and loop-back epsilon edges

03

Mark final state after matching 'abb' as accepting sink

Reusable for any regex-to-NFA conversion using Thompson construction, especially for teaching compiler design or automata theory.

More like this

Other examples in this family.

Browse all state diagram templates →