Z-Algorithm

Interactive visualizations for Chapter 1 of the Advanced Algorithms notes

Z-Algorithm

Visualize the Z-array: Z[k] = length of the longest substring starting at k that matches a prefix of S.