04. Boyer Moore 算法 #156
Replies: 2 comments 1 reply
-
generageGoodSuffixList 的 16-18 while j < m - 1 - i:
if gs_list[j] == m:
gs_list[j] = m - 1 - i
j += 1 为什么要做这样一个循环赋值? |
Beta Was this translation helpful? Give feedback.
1 reply
-
有个小问题,应该是这样的: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
04. Boyer Moore 算法
Boyer Moore 算法 1. Boyer Moore 算法介绍 Boyer Moore 算法:简称为 BM 算法,是由它的两位发明者 Robert S. Boyer 和 J Strother Moore 的名字来命名的。BM 算法是他们在 1977 年提出的高效字符串搜索算法。在实际应用中,比 KMP 算法要快 3~5 倍。 BM 算法思想:对于...
https://algo.itcharge.cn/06.String/02.String-Single-Pattern-Matching/04.String-Boyer-Moore/
Beta Was this translation helpful? Give feedback.
All reactions