AdvancedVocabulary#software-architecture#developer-tools#backend

KMP Algorithm Vocabulary

Build fluency in the vocabulary of precomputing skip information so a mismatch never rescans the text backward.

0 / 5 completed
1 / 5
At standup, a dev mentions searching for a pattern inside a larger text by precomputing, for every prefix of the pattern, how far a partial match can safely be reused after a mismatch, so the text is never scanned backward or re-examined once it's been read. What is this algorithm called?