What is a rolling hash?
I put together the following picture to explain the rolling hash concept. Basically, instead of “Hashing” the whole string at once which can be processor intensive, the rolling hash starts with a minimal number of characters, it hashes those then it adds the next character and it hashes again. it repeats the process until the whole string is hashed.
https://www.dropbox.com/s/daik3zj2f8v6unw/Rolling%20hash.png?dl=0