Closed harpocrates closed 2 years ago
Although there is probably still some benefit to be obtained at times from minimization, the importance is somewhat reduced for now as a result of use ranges of characters for transitions and not desugaring character classes into a chain of +
/-
. M3 for (?:\+(\d\d?\d?))?
now looks like
Also, not sure what was up with the graph from the previous comment, but it has more accepting states than it should - maybe I mistyped the regular expression.
This was done in ec4b504505ce9d18a122cfae0a3b53795cf08194. In the absence of any tags, the minimization is just the usual DFA minimization.
Currently, some of the generated DFAs seem to me to not be minimal at all. For example, I think the M3 (reversed) DFA for
(?:\+(\d\d?\d?))?
should only need about 5 states, but it ends up with quite a few more.