Aho-Corasick Algorithm - JavaScript Implementation (pt. 2)

Hello, welcome back to part 2 of the Aho-Corasick algorithm, today we implement it in JavaScript. Part 1:    • Ctrl+F on steroids - Aho-Corasick Algorith...   code: https://github.com/ComputerBread/algo... Videos I recommend you to watch to help you understand this one: Intro to state machines:    • The most fundamental string matching algor...   KMP algorithm:    • KMP - The optimal string matching algorithm   Basic Trie:    • Trie - The data structure behind autocompl...   Check my previous videos about string algorithms & data structures:    • Characters & Strings   Support me: https://ko-fi.com/computerbread Cheatcheet/mindmap: https://ko-fi.com/s/34966c8fb1 Twitter:   / computerbread   Subscribe:    / @computerbread   2nd Channel: ‪@computerbreadboard‬ Banger to listen to while studying:    • Su Yeon Kim plays Beethoven Piano Sonata o...   Other stuff: orignal paper: https://cr.yp.to/bib/1975/aho.pdf