Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I thought Aho-Corasick returned all the matches #4

Open
sabracrolleton opened this issue Dec 12, 2024 · 0 comments
Open

I thought Aho-Corasick returned all the matches #4

sabracrolleton opened this issue Dec 12, 2024 · 0 comments

Comments

@sabracrolleton
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant