Describe an example of a textTof lengthnand a patternPof length
msuch that force the brute-force pattern-matching algorithm achieves a
running time that is (nm).
Adapt the brute-force pattern-matching algorithm in order to implement a
function, rfind brute(T,P), that returns the index at which therightmost
occurrence of patternPwithin textT, if any.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here