t(s+1) = (d*(t(s) -T[s+1]h) + T[s+m+1])mod q
d
is the size of alphabet
T[1...n]
is the text to be searched
P[1...m]
is the pattern (m is the size of pattern)
q
is a prime number
h = d^m-1 (mod q)
is the value of digit "1" in the higher order position of an m-digit text window.
What does this line mean ? What does h
represent?