Consider the following step of the KMP algorithm:
Here, we have a mismatch: . Before a new iteration, we need to shift the pattern by symbols. What is equal to?
Consider the following step of the KMP algorithm:
Here, we have a mismatch: . Before a new iteration, we need to shift the pattern by symbols. What is equal to?
Create a free account to access the full topic