I am reading Rabin-Karp algorithm by Introduction to Algorithms by Cormen etc.
www.cs.uml.edu/~kdaniels/courses/ALG_503_F08/503_lecture11.ppt
Note here == is used as mod operator
Above notes on slide 13 i.e., Eq 34.2, which is attached as picture here. In equation we have h == (d)powerof((m-1) (mod q) is value of digit "1" in the high order position of an m-digit text window.
My question here what does author mean by "value of digit "1" in the high order position of an m-digit text window" ?
On slide 14 how author got (7-3.3).10 + 2 (mod 13) as 8 (mod 13)?
In Average case analysis it is mentioned that we can base a heuristic analysis on the assumption that reducing values modulo q acts like a random mapping from sigma* to Z. Here what does author mean by above statement?