Problem
One-letter or one-digit symbols; | union, * closure, + one or more, ? optional, parentheses and ε.
Each piece numbers its start state before its children and its final state after them; when concatenating, the final state of the first is the start state of the second (no ε).Aho et al. §3.7.4 · Pisa PLP-05
Trace
N(a): two states, 2 and 3, joined by “a”.
Concatenation is not a step: it creates no states, it only joins the end of one piece to the start of the next.
NFA with 11 states; start 0, final 10.