ok help me only in this question
- by davit-datuashvili
ok help me only in this question we have m length of pattern and k variable here for (i=0; i <= k; ++i) R[i] = ~1;
instead of k should be m yes? boolean[]R=new boolean[m+1];
look at this algorithm
http://en.wikipedia.org/wiki/Bitap_algorithm