Understanding Rabin-Karp algorithm with modulo arithmetic

134 Views Asked by At

I am having a hard time understanding the Rabin-Karp algorithm with modulo arithmetic. My questions.

  1. Why we use modulus to determine the hash of the string being analyzed?

  2. How to determine the modulus to be used?

0

There are 0 best solutions below