i have done code so please help

Posted by davit-datuashvili on Stack Overflow See other posts from Stack Overflow or by davit-datuashvili
Published on 2010-05-15T09:32:57Z Indexed on 2010/05/15 9:34 UTC
Read the original article Hit count: 152

Filed under:

public class bitap{

public static void main(String[]args){

String text="tbillisi"; String pattern="tbilxiri"; int k=2; int m=pattern.length(); long pattern_mask[]=new long[Character.MAX_VALUE+1]; String result=""; boolean[]R=new boolean[m+1];

long i,d; for (i=0;i<=k;i++){ R[i]=~1; } for (i=0;i

if (0==(R[k]& (1<

System.out.println(result);

} } http://en.wikipedia.org/wiki/Bitap_algorithm from this site

© Stack Overflow or respective owner

Related posts about algorithms