boyer-moore
BM(X,X.SIZE,Y,Y.SIZE)
1 | 初始化整形数组bc[1057],gs[1057] //bad character,good suffix |
GETBC(Y,s,bc)
1 | for i=0 to 255 |
GETGS(Y,s,gs)
1 | 初始化整形数组suf[1057] |
SUFFIXES(Y,s,suf)
1 | 初始化整形变量f,g=s-1 |
1 | 初始化整形数组bc[1057],gs[1057] //bad character,good suffix |
1 | for i=0 to 255 |
1 | 初始化整形数组suf[1057] |
1 | 初始化整形变量f,g=s-1 |