摘要: 看了两天的KMP算法,总有有点懂了,这篇文章的帮助很大。依样画瓢写了个C#的KMP算法实现。以下是代码: /// /// 串的模式匹配 KMP算法 /// /// /// /// /// private static int KmpMatch(char[] str, char[] model,int pos) { int loc = -1; if (pos str.Length) { ... 阅读全文
posted @ 2013-07-18 11:51 yis 阅读(889) 评论(0) 推荐(0) 编辑