Is this example in Skiena’s Algorithm Design Manual correct?


skiena, hashing and strings

i think the above is incorrect; specifically, i think H isn’t bijective. say our alphabet is the lowercase letters [a-z] and that char(a) = 0. then, e.g., H("abc") = H("bc").

am i missing something?