ok help me only in this question

Posted by davit-datuashvili on Stack Overflow See other posts from Stack Overflow or by davit-datuashvili
Published on 2010-05-15T09:02:52Z Indexed on 2010/05/15 9:14 UTC
Read the original article Hit count: 185

Filed under:

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

© Stack Overflow or respective owner

Related posts about algorithm