![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常用算法python实现
cs742611497
这个作者很懒,什么都没留下…
展开
-
AC自动机
#created by sheng.chen at 2015.05.06 class WordTree(): def __init__(self): self.count = 0 self.word = '' self.fail = None self.parent = None self.childs = [] def createTree(words): root = WordTree() f原创 2015-05-11 22:43:15 · 441 阅读 · 0 评论 -
kmp算法
字符串匹配算法kmp的python实现原创 2015-05-11 22:03:06 · 445 阅读 · 0 评论