节点文献
KMP算法的一种新的简化算法
A New Improved KMP Algorithm
【摘要】 通过对字符串模式匹配算法BF与KMP的分析,提出了一种简化KMP算法的方法,构造了一种新的计算next函数的方法,简化后的算法比KMP更清晰直观.经过复杂性分析和上机实验,得出当模式串的长度不大时,简化算法是一种高效的模式匹配算法.
【Abstract】 This paper analyses the BF algorithm and KMP algorithm of string matching. Then provides a new algorithm for next function of KMP.The new algorithm is more clear and intuitional.By ways of complex analysis and computer experiment,gets the conclusion that the improved algorithm of KMP is effective when the string model is shorter.
【基金】 河南省基础与前沿技术研究计划项目(122300410151);河南省高等教育教学改革研究项目(2012SJGLX205)
- 【文献出处】 数学的实践与认识 ,Mathematics in Practice and Theory , 编辑部邮箱 ,2012年12期
- 【分类号】TP301.6
- 【被引频次】8
- 【下载频次】280