Algo Aho Corasick

Build an Aho-Corasick automaton (trie + BFS failure links) to find every pattern occurrence in one O(n+m+z) text pass. Use for restriction-site/primer/motif search or replacing per-pattern KMP/regex loops over many fixed patterns.

pavel-kravchenko Updated

File contents

pavel-kravchenko/bioinformatics/tree/main/Skills/algo-aho-corasick commit 3f37d0cbc9

Frequently asked questions

npx skillmds@latest add pavel-kravchenko/algo-aho-corasick