期刊文献+

一种模式匹配快速算法 被引量:5

A Fast String-matching Algorithm
下载PDF
导出
摘要 在定义模式串的特征值之后,给出了判断两等长串匹配的必要条件以及两相邻子串的特征值之间的递推关系。在此基础上,提供一种模式匹配快速算法,其时间复杂度可达O(n)。该算法彻底避免了回溯现象,执行效率要比RK算法高。 After introducing the definition of a string's eigenvalue ,necessary conditions used to judge if two strings having equal lengths are matched, and a recurrence relation between the eigenvalues of two adjacent substrings are given. Then a fast string-matching algorithm which expected running time is O(n) is presented. The algorithm is more effective than RK algorithm and avoiding all backtrackings thoroughly.
作者 刘玉龙 刘啸
出处 《计算机科学》 CSCD 北大核心 2008年第1期219-220,共2页 Computer Science
关键词 模式 模式匹配 特征值 递推 String, Pattern, String-matching, Eigenvalue,Recursion
  • 相关文献

参考文献2

  • 1Cormen T H, Leiserson C E, Rivest R L Clifford Stein. In:Introduction to algorithms. Second Edition. Cambridge: The MIT Press, 2001.
  • 2周培德.算法设计与分析[M].北京:机械工业出版社,1998.

共引文献3

同被引文献34

引证文献5

二级引证文献25

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部