nav emailalert searchbtn searchbox tablepage yinyongbenwen piczone journalimg journalInfo journalinfonormal searchdiv searchzone qikanlogo popupnotification paper paperNew
2012, 01, v.29;No.98 79-82
基于KMP算法的next函数理解与分析
基金项目(Foundation):
邮箱(Email):
DOI:
摘要:

在字符串模式匹配算法的研究过程中,KMP算法是基于常规的BF算法的一种改进算法,而其中next函数值的求解过程更是该算法的重要内容.本文以原算法的求解过程作为基础,通过对next函数值求解过程的算法改进和模式字符匹配串匹配过程的描述,从而增强对KMP算法的理解.本文利用C语言实现了改进后的next函数值求解算法.

Abstract:

String pattern matching algorithm in the course of the study,KMP algorithm is based on the conventional BF algorithm,an improved algorithm.The next function for the value of the solution process is an important part of the algorithm.In this paper,the process of solving the original algorithm as a basis,through the next function algorithm to improve the value of the solution process and pattern characters match string matching the description of the process,thereby enhancing the understanding of the KMP algorithm.In this paper,using C language function value of the next algorithm.

参考文献

[1]严蔚敏,吴伟民.数据结构[M].北京:清华大学出版社,2006:12-14.

[2]李桂玲.一种改进的KMP模式匹配算法[J].吉林工程技术师范学院学报,2009,25(10):2.

[3]佟冶,刘娜.KMP算法与特殊子串滑动算法整合的构想与实践[J].西华大学学报(自然科学版),2009,28(1):29-33.

基本信息:

中图分类号:TP301.6;TP311.11

引用信息:

[1]周雅翠,孙磊.基于KMP算法的next函数理解与分析[J].吉林建筑工程学院学报,2012,29(01):79-82.

发布时间:

2012-02-15

出版时间:

2012-02-15

检 索 高级检索

引用

GB/T 7714-2015 格式引文
MLA格式引文
APA格式引文