Problem
1. Give an example of a text T of length n and a pattern P of length m that force the brute-force pattern matching algorithm to have a running time that is ?(nm).
2. Give a justification of why the KMPFailure Function method (Code Fragment 12.5) runs in O(m) time on a pattern of length m.