摘要: 对kmp算法进行了学习,其中重点学习了next【】和nextval【】的计算方式, 其中next算法的代码实现如下: void get_next(SString T, int &next[]) { i= 1; next[1] = 0; j = 0; while( i<T[0]){ if(j==0 | 阅读全文
posted @ 2021-10-08 23:25 炽灬 阅读(37) 评论(0) 推荐(0)