In the Rabin Karp algorithm the rolling hash is calculated as follows:

```
H1= c1*a^k-1 + c2*a^k-2+c3*a^k-3+…+ck*a^0

```

where `a` is a constant. On what basis is this `a` selected? In Cormen they have used a value 10 and at some other places it is 26. By observation, when the string is of digits they have taken a = 10 and when the string is of English characters then they have taken a = 26. Is it not possible to compute the hash value using a = 10 for English characters. If not what flaws does it introduce or i am assuming it wrong. I would appreciate help.