Skip to content

taismassaro/aho-corasick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aho-Corasick

An example implementation of the algorithm to search for patterns in a string.

const patterns = ["cat", "car", "cargo", "dog", "door"];

const trie = buildTrie(patterns);

searchTrie(trie, "The cat chased the dog through the door with its car");

// [ "cat", "dog", "car" ]

About

An example implementation of the Aho-Corasick algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published