摘要: KMP字符串匹配算法,重点在于Next值的计算,下面是这个算法的代码:#include#includeusing namespace std;#define size 8int main(){ int ifr; int next[size]={0,0,0,0,0,0,0}; char pst[size]={'a','b','a','a','b','c','a','c'}; char sstr[17]={'a','c','a 阅读全文
posted @ 2013-09-25 15:07 李VS超 阅读(289) 评论(0) 推荐(0) 编辑