Concepts3
⚙️AlgorithmAdvanced
Convolution Applications
Convolution turns local pairwise combinations (like matching characters or adding two dice) into a single fast transform–multiply–inverse pipeline.
#convolution#fft#ntt+12
⚙️AlgorithmIntermediate
Z-Function
The Z-function of a string S computes for each position i the length of the longest substring starting at i that matches the prefix of S.
#z-function#z algorithm#string matching+12
⚙️AlgorithmIntermediate
KMP Algorithm
The KMP algorithm finds all occurrences of a pattern in a text in O(n + m) time by never re-checking characters that are already known to match or mismatch.
#kmp algorithm#prefix function#failure function+12