Skip to content

[FEATURE REQUEST] Aho–Corasick algorithm #4464

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

Closed
Prabhat-Kumar-42 opened this issue Sep 30, 2023 · 2 comments
Closed

[FEATURE REQUEST] Aho–Corasick algorithm #4464

Prabhat-Kumar-42 opened this issue Sep 30, 2023 · 2 comments

Comments

@Prabhat-Kumar-42
Copy link
Contributor

What would you like to Propose?

Adding Aho–Corasick algorithm.

wiki - https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm

Summary (From wiki):
The Aho–Corasick algorithm is a string-searching algorithm. It is a kind of dictionary-matching algorithm that locates elements of a finite set of strings (the "dictionary") within an input text. It matches all strings simultaneously. The complexity of the algorithm is linear in the length of the strings plus the length of the searched text plus the number of output matches. Note that because all matches are found, there can be a quadratic number of matches if every substring matches (e.g. dictionary = a, aa, aaa, aaaa and input string is aaaa).

Issue details

Brief details about Aho-Corasick algorithm can be found by landing on above wiki page.

Summary of requirements to understand and implement it -

  • Understanding of Trie
  • Understanding of how tree works
  • Basics of DFA/NFA (automatas)

Additional Information

No response

@Prabhat-Kumar-42
Copy link
Contributor Author

Hello,
I have created a pull request regarding this.
Please take a look.
Let me know if there's any issue. I will solve it asap.
Thank You !! :)

@vil02 vil02 mentioned this issue Oct 8, 2023
5 tasks
@vil02
Copy link
Member

vil02 commented Oct 8, 2023

Closed by #4465.

@vil02 vil02 closed this as completed Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants