数据结构KMP实现

数据结构KMP实现 代码如下: #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 void cal_next( char * str, int * next, int len ) //next数组作用返回失配位之前的最长公共前后缀!; len为返回当前的最长公共前后缀长度 { int i,
相关文章
相关标签/搜索