摘要: 1 //串的模式匹配算法 2 //KMP算法,时间复杂度为O(n+m) 3 #include 4 #include 5 #include 6 using namespace std; 7 8 //-----串的定长顺序存储结构----- 9 #define MAXLEN 255 //串的最大长度 10 typedef struct { 11 char ch... 阅读全文
posted @ 2016-04-03 15:27 叶建成 阅读(621) 评论(0) 推荐(0) 编辑