摘要: next数组用于存储模式串中元素为j位置的最大重叠度。//KMP算法实现字符串匹配 //#include #include using namespace std; void compute_next(int* next,char const*p,int len){ int j=0; ... 阅读全文
posted @ 2015-07-20 18:27 尾巴草 阅读(153) 评论(0) 推荐(0) 编辑