Index — where it appears
Named by 2 essays across 2 fields — each of them below, with the objects they name alongside it.
Also named here as state machine — the same set of essays touches all of them, so they are one junction rather than several.
One pass for every pattern at once
Sixty-four patterns, one text, twenty thousand characters read. Running this site's KMP once per pattern reads 1,595,445 — and an implementation missing one kind of link finds fewer occurrences, reads exactly as much, and looks better on every counter.
Every substring, in fewer states than substrings
A text of 512 characters has 129,416 distinct substrings. A machine that recognises every one of them, and nothing else, needs 831 states — and the bound it is under, 2n − 1, is reached exactly by a string one line long.
Named alongside it
The objects these essays reach for when they reach for this one.
AlphabetAmortised analysisAutomatonMeasured countState machineString matchingSuffix automatonAho-corasickAuxiliary spaceCharacter comparisonFailure functionKmp