摘要: 解决字符串匹配的算法包括:朴素算法(Naive Algorithm)、Rabin-Karp 算法、有限自动机算法(Finite Automation)、 Knuth-Morris-Pratt 算法(即 KMP Algorithm)、Boyer-Moore 算法、Simon 算法、Colussi 算法、Galil-Giancarlo 算法、Apostolico-Crochemore 算法、Horspool 算法和 Sunday 算法等。本文主要介绍 Naive 算法和 KMP 算法的基本原理和实现。 阅读全文
posted @ 2014-10-04 21:50 sangmado 阅读(43428) 评论(19) 推荐(42) 编辑