automata
automata copied to clipboard
Aho-Corasick
Closes #162 @caleb531 @eliotwrobson Haven't added tests for full coverage but I've done a fair bit of manual testing and it is producing correct results. The DFA produced isn't necessarily minimal (consider {"ab", "abba"}) but it's certainly faster than taking multiple unions. I've been trying to cut it down to a single BFS and then remove the object oriented nodes but there's always something that just isn't clicking for me, so I'm keeping it like this for now, maybe you will spot it. I have to put this on hold on my end for a few days.