|
|
|
|
|
by eyelidlessness
761 days ago
|
|
FWIW, it seems pretty likely the same multi-NFA algorithm described in the article could be applied to other backtracking scenarios (and therefore to back references and lookaround). Since I’m just speculating, I’ll hazard a guess that it would result in a meaningfully more complex implementation to derive each state machine, and potentially much slower (while still “linear” complexity). |
|
Look-around is a different story, but I don't believe you can still guarantee linear time.
[1]: https://perl.plover.com/NPC/NPC-3SAT.html