You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [[Knuth Morris Pratt Algorithm (KMP)]] searches for **one** pattern in a text.
23
+
- [[Knuth Morris Pratt Algorithm]] searches for **one** pattern in a text.
24
24
- [[Rabin-Karp Algorithm]] uses rolling hashes to search for multiple patterns, but can suffer from hash collisions and worst-case $O(N \cdot K)$ performance.
25
25
- **Aho-Corasick** provides guaranteed $O(N + M + Z)$ linear time regardless of pattern overlaps or text content.
0 commit comments