This is a figure.
Usage: Obtain failure function for the Knuth-Morris-Pratt algorithm. Enter a pattern of size up to 10. Click the Next button to see a step in the algorithm. Click the Reset button to start over with a new pattern.
i: 1
pattern1
pattern2
fail
A list is filled with random numbers.