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 is the first step in the KMP algorithm before searching for the pattern in the text?
4. Which of the following is NOT a possible value in the LPS array for the pattern 'ABABAC'?
5. Which of the following best describes the worst-case time complexity of the KMP algorithm? (M = length of pattern, N = length of text)
6. Which of the following is a limitation of the KMP algorithm?