robert-bor / aho-corasick

Java implementation of the Aho-Corasick algorithm for efficient string matching
Apache License 2.0
894 stars 349 forks source link

some question #96

Closed yaoqiangpersonal closed 2 years ago

yaoqiangpersonal commented 2 years ago

in the 'PayloadTrie.constructFailureStates()'. why is PayloadState<T> targetState = currentState.nextState(transition);queue.add(targetState);, rather than 'queue.add(transition);'

ghost commented 2 years ago

If you have a PR to improve the code, please do so. If you have questions, perhaps StackOverflow can help?