My understanding of Aho-Corasick is that it returned all the matches. So
(defparameter *gfg* (cl-string-match:initialize-ac '("he" "she" "hers" "his")))
(cl-string-match:search-ac *gfg* "ahishers")
1
3
I thought Aho-Corasick should return something that shows:
Word "his" appears from 1 to 3
Word "he" appears from 4 to 5
Word "she" appears from 3 to 5
Word "hers" appears from 4 to 7
Am I misunderstanding?
My understanding of Aho-Corasick is that it returned all the matches. So
I thought Aho-Corasick should return something that shows:
Word "his" appears from 1 to 3
Word "he" appears from 4 to 5
Word "she" appears from 3 to 5
Word "hers" appears from 4 to 7
Am I misunderstanding?