01Chapter 1: The String Matching ProblemThis chapter assumes you can read basic Python and are comfortable with arrays, strings, and zero-based indexing. You should know loops and conditionals, and you should be able to read Big-O notation for time complexity.2 min read
02Chapter 2: Computing the Prefix Function in Linear TimeThis chapter assumes you know Python loops and zero-based indexing. It also assumes the definition of a border from the previous chapter. pi[i] is the length of the longest proper border of p[0..i].2 min read
03Chapter 3: Why KMP Never Misses a MatchThis chapter assumes you know the prefix function pi and the kmp_search loop from the previous chapters. It also assumes basic Big-O notation.2 min read