Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][BoyerMoore] fix a code bug, a little typo && refine text...maybe #2862

Merged
merged 1 commit into from Jan 3, 2021

Conversation

minghu6
Copy link
Contributor

@minghu6 minghu6 commented Jan 1, 2021

本PR主要是为了修复一个算法代码上的bug,顺带改了几个之前就想改,但总感觉改不胜改的目前阶段所能发现的几处小笔误;
另外增加了一点点使内容更易于被理解的增改。

Enter-tainer
Enter-tainer previously approved these changes Jan 1, 2021
Copy link
Member

@Enter-tainer Enter-tainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx~

Konano
Konano previously approved these changes Jan 2, 2021
docs/graph/mdst.md Outdated Show resolved Hide resolved
@@ -235,7 +236,7 @@ $$

对于 $rpr(6)$ , $subpat$ 为 $\texttt{BC}$ ,又因为 $string[0]=string[6]$ ,即 $string[0]$ 等于失配字符 $string[6]$ ,所以 $string[0\dots 2]$ 并不是符合条件的 $subpat$ 的合理重现,所以在最右边的合理重现是 $\texttt{[(BC)]ABCXXXABC}$ ,所以 $rpr(j)=-2$ ;

对于 $rpr(7)$ , $subpat$ 为 $\texttt{C}$ ,同理又因为 $string[7]=string[1]$ ,所以 $string[1\dots 2]$ 并不是符合条件的 subpat 的合理重现,在最右边的合理重现是 $\texttt{[(C)]ABCXXXABC}$ ,所以 $rpr(j)=-1$ ;
对于 $rpr(7)$ , $subpat$ 为 $\texttt{C}$ ,同理又因为 $string[7]=string[1]$ ,所以 $string[1\dots 2]$ 并不是符合条件的 $subpat$ 的合理重现,在最右边的合理重现是 $\texttt{[(C)]ABCXXXABC}$ ,所以 $rpr(j)=-1$ ;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS: 这里的 $subpat$ 应该都是得用 subpat 或者 \texttt{} 包起来的吧?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和本文的别的地方保持一致应该就可以吧

Copy link
Member

@Enter-tainer Enter-tainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

辛苦了

@Enter-tainer Enter-tainer merged commit 1d8db59 into OI-wiki:master Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants