Question
The lecture on Rabin-Karp string matching covered both the actual Java hash function and a strawman hash function, where the hash value of a string is just the sum of the character values in the string. Assume that we modified the Rabin-Karp string matching algorithm to use the strawman hash instead of the Java hash. (