KMP Algorithm
1. Which one of the following is true in the KMP String searching algorithm? (strInd = iterator in the main string)
2. How does KMP improve the brute-force method?
3. What happens when a mismatch occurs in the KMP algorithm?
4. Which statement is true about the KMP algorithm's pattern pointer during a mismatch?
5. What is the main invariant maintained by the KMP algorithm?