TOPICS
#4
Thompson Construction
Compile a regex into an NFA one operator at a time, stamping a two-state fragment for each literal and ε-wired forks, loops, and seams for the operators, and predict the graph each one adds.
14 min
#5
NFA Traversal
Run a string through an NFA by carrying the whole set of states the engine could occupy, expanding it for free across ε-arrows on every step, and deciding the match from whether the accept state lands in the final set.
13 min