Skip to content

【118-Week3】学习总结-多举例子 #508

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

Open
yanlingli3799 opened this issue May 4, 2019 · 4 comments
Open

【118-Week3】学习总结-多举例子 #508

yanlingli3799 opened this issue May 4, 2019 · 4 comments

Comments

@yanlingli3799
Copy link
Contributor

No description provided.

@yanlingli3799
Copy link
Contributor Author

这周的学习分两部分:

  • 专栏,集中在单模式字符串匹配算法。
  • 算法,集中做了几道“图”相关的题。

还是用 xmind 结合手绘图来做学习总结的,不过又有了些新的感受。


在看字符串匹配算法的时候,有一些点不太想的明白,以BM算法为例:

  • 为什么坏字符位移数可能为负?
  • 好后缀与模式串的多个子串匹配时,选哪一个?
  • 为什么必须是完整子串匹配,或模式串的前缀子串与好后缀的后缀子串匹配,其他子串不行吗?

遇到这些问题的时候,可以通过举例子的方式辅助思考。

附上我在学习过程中画的图例,和整理的总结:


做题的时候,挑的几个图做的,其他的难度都不大,稍微转化一下就好。
928比较麻烦,费了好大力气才理解和 924 啥区别。
整理思路的时候,还是画了一些图例,个人感觉还是比较有用的。目前使用bfs暴力搜索算出来的,时间复杂度比较高,提交有的时候甚至会报超时。

附928图例草稿:https://github.com/yanlingli3799/algorithm/blob/master/Week_03/id_118/src/928%E8%8D%89%E7%A8%BF.pdf

@zsndev
Copy link
Contributor

zsndev commented May 5, 2019

看了你的作业,现在你是我看过的人中最佩服的了。画图画成这样真是太厉害了。想问下,你的928草稿,是怎么导出这个效果的呀,就在纸上画,然后拍照,转成pdf吗,求赐教?

@yanlingli3799
Copy link
Contributor Author

看了你的作业,现在你是我看过的人中最佩服的了。画图画成这样真是太厉害了。想问下,你的928草稿,是怎么导出这个效果的呀,就在纸上画,然后拍照,转成pdf吗,求赐教?

用Notability画哒~

@plin005
Copy link
Contributor

plin005 commented May 5, 2019

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

No branches or pull requests

3 participants