Say you've compiled a regular expression to a "DFA" labelled graph. As described the other day. How'd you optimize it to match the same patterns in as little memory as possible?
These algorithms have decent performance, but you'll want to make full use of the results to pay back the time spent optimizing!
There's 3 main optimizations to perform:
1. Remove unreachable nodes
2. Remove nodes which won't reach an end-state.
3. Merge duplicate nodes.
1/4?