String Algorithms
Nov 3, 2025 路 19 min read 路 Sorting Algorithms KMP (Knuth鈥揗orris鈥揚ratt) Algorithm Core idea Build a table of how far to "jump back" in the pattern when a mismatch happens, using the pattern's internal prefix-suffix structure. Then scan the text once, reusing previous partial ma...
Join discussion

