poj 3461 KMP模式匹配算法
摘要:
哎~看了N天的KMP字符串匹配算法,还是不怎么懂,照着书上写的模板写了一遍,以后继续研究。。。。View Code 1 /* 2 * Author:lonelycatcher 3 * problem:poj 3461 4 * Type:字符串匹配算法 Rabin-Karp算法 ,KMP算法(Rabin_-Karp算法会超时) 5 */ 6 #include <iostream> 7 #include<string.h> 8 #include<string> 9 #include<stdio.h>10 using namespace std;11 阅读全文
posted @ 2011-09-13 18:17 lonelycatcher 阅读(285) 评论(0) 推荐(0) 编辑