String Searching
KMP: left to right. Jump more if not in prefix.
BM: right to left.
RK: hash using base of len(possible space) (or base10 `a*100+b*10+c*1`). So to keep [1:-1] infomation/entropy.
BM: right to left.
RK: hash using base of len(possible space) (or base10 `a*100+b*10+c*1`). So to keep [1:-1] infomation/entropy.
评论
发表评论