Concept

Failure function — where it appears

For each prefix of a pattern, the longest proper suffix of it that is also a prefix, which lets a matcher resume without re-reading a character. It is what lets a matcher resume without re-reading a character, and it is computed from the pattern alone in time linear in its length.

Named by 2 essays across one field — each of them below, with the objects they name alongside it.

Named alongside it

The objects these essays reach for when they reach for this one.

Amortised analysisCharacter comparisonAho-corasickAlphabetAlphabet sizeAutomatonBacktrackingIndexKmpMeasured countNaive scanPattern matching

All concepts