多字符串匹配算法

ai_soar 2009-05-19 01:52:42
请问各位:谁有Wu-Manber算法和AC算法实现的代码?
还请大家推荐一下多字符串的一些其它算法..比较高效的..谢谢!!
...全文
248 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
qoozone1234 2009-05-20
  • 打赏
  • 举报
回复
呵呵,楼主你查下ac自动机,就有相应的代码了。

代码我就不贴了,因为光贴代码,应该很难懂。

给分吧。
ai_soar 2009-05-20
  • 打赏
  • 举报
回复
《柔性字符串匹配》对..是这本书...
ai_soar 2009-05-20
  • 打赏
  • 举报
回复
请问大家有没有wu-manber算法的实现代码?
现在比较而言这个算法满足要求...谢谢..
iamyuguo 2009-05-19
  • 打赏
  • 举报
回复
呃,你是说《柔性字符串匹配》第三章,3.2.2节的那个 Basic Aho-Corasick algorithm 啊,好巧,我没看懂。
ai_soar 2009-05-19
  • 打赏
  • 举报
回复
AC算法是指(Aho-Corasick)及其变种算法..
超gogo 2009-05-19
  • 打赏
  • 举报
回复
KMP 算法 这个感觉比较经典
iamyuguo 2009-05-19
  • 打赏
  • 举报
回复
AC算法是指Apostolico-Crochemore算法吗?
这里有:http://www-igm.univ-mlv.fr/~lecroq/string/node12.html#SECTION00120

这里还有更多算法的介绍:http://www-igm.univ-mlv.fr/~lecroq/string/ 包括:
Brute Force algorithm
Deterministic Finite Automaton algorithm
Karp-Rabin algorithm
Shift Or algorithm
Morris-Pratt algorithm
Knuth-Morris-Pratt algorithm
Simon algorithm
Colussi algorithm
Galil-Giancarlo algorithm
Apostolico-Crochemore algorithm
Not So Naive algorithm
Boyer-Moore algorithm
Turbo BM algorithm
Apostolico-Giancarlo algorithm
Reverse Colussi algorithm
Horspool algorithm
Quick Search algorithm
Tuned Boyer-Moore algorithm
Zhu-Takaoka algorithm
Berry-Ravindran algorithm
Smith algorithm
Raita algorithm
Reverse Factor algorithm
Turbo Reverse Factor algorithm
Forward Dawg Matching algorithm
Backward Nondeterministic Dawg Matching algorithm
Backward Oracle Matching algorithm
Galil-Seiferas algorithm
Two Way algorithm
String Matching on Ordered Alphabets algorithm
Optimal Mismatch algorithm
Maximal Shift algorithm
Skip Search algorithm
KMP Skip Search algorithm
Alpha Skip Search algorithm
o0MyBelieve0o 2009-05-19
  • 打赏
  • 举报
回复
看看数据结构 里面有这个算法!!
nuoshueihe 2009-05-19
  • 打赏
  • 举报
回复
KMP算法

65,210

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧