期刊文献+

基于坏字符序检测的快速模式匹配算法 被引量:6

QUICK PATTERN MATCHING ALGORITHM BASED ON BAD CHARACTER SEQUENCE CHECKING
下载PDF
导出
摘要 提出一种基于坏字符序检测的快速模式匹配算法(BCSBM)。该算法利用相邻字符序列在模式串中不出现的概率较单字符高的特性,基于好字符和坏字符序表实现字符匹配过程的"跳跃"。BCSBM算法显著减少了匹配窗口内字符的匹配次数,同时增大了匹配窗口的平均移动距离。算法的实际测试效率较高,在文本或模式串相对较长的情况下该算法的效率提高明显。 The paper introduces BCSBM algorithm based on bad characters sequence checking.BCSBM algorithm takes advantages of the less probability of the presence of an adjacent character sequence than that of a single character within a pattern string,and realizes the jumping of the character matching process according to good characters and bad character sequences.BCSBM algorithm significantly reduces the times of character matching inside the matching window while increases the average movement distance of the matching window.As tested in reality,the algorithm's efficiency is higher than other pattern matching algorithms,especially when there are longer texts or pattern strings.
作者 王浩 张霖
出处 《计算机应用与软件》 CSCD 北大核心 2012年第5期114-116,129,共4页 Computer Applications and Software
基金 安徽高校省级自然科学研究重点项目(KJ2009A61) 安徽高校省级自然科学研究一般项目(KJ2010B041)
关键词 模式匹配 字符序 BM算法 BMHS算法 Pattern matching Character sequence BM algorithm BMHS algorithm
  • 相关文献

参考文献7

  • 1Knuth D E ,Morris J H ,Pratt V R. Fast pattern matching in string[ J]. SIAM Journal on Computing, 1977,20 ( 6 ) :323 - 350. 被引量:1
  • 2Boyer R S, Moore J S. A Fast String Searching Algorithm[ J ]. Commu- nications of the ACM, 1977,20:762 - 772. 被引量:1
  • 3Abo A V, Corasick M J. Efficient string matching : an aid to bibliog raphic search [J ]. Communications of ACM, 1975,18 (6) :333 - 340. 被引量:1
  • 4Wu S, Manber U. Agrep: A Fast Approximate Pattern-Matching Tool [ C ]//Usenix Winter Technical Conference, 1992 : 153 - 162. 被引量:1
  • 5Fan Jangjong, Su Kehyih. An Efficient Algorithm fur Matching Multiple Patterns [ J ]. IEEE Transaction on Knowledge and Data Engineering, 1993,5(2) :339 -351. 被引量:1
  • 6Horspool R N. Practical fast searching in srtings[ J]. Software Practice & Experience, 1980,10 (6) :501 - 506. 被引量:1
  • 7Sunday D M. A very fast substring search algorithm[ J]. Communication of the ACM, 1990,33 (8) ; 132 - ld2. 被引量:1

同被引文献58

  • 1李雪莹,刘宝旭,许榕生.字符串匹配技术研究[J].计算机工程,2004,30(22):24-26. 被引量:26
  • 2张娜,张剑.一个快速的字符串模式匹配改进算法[J].微电子学与计算机,2007,24(4):102-105. 被引量:11
  • 3BOYER R S, MOORE J S. A fast string searching algorithm [ J]. Communications of the ACM, 1977, 20(10) : 762 -772. 被引量:1
  • 4HORSPOOL R N. Practical fast searching in strings [ J]. Software Practice and Experience, 1980, 10(6): 501 -506. 被引量:1
  • 5SUNDAY D M. A very fast substring search algorithm [ J]. Commu- nications of the ACM, 1990, 33(8): 132 -142. 被引量:1
  • 6COMMENTZ-WALTER B. A string matching algorithm fast on the average [ C]// Proceedings of the 6th Colloquium, on Automata, Languages and Programming, LNCS 71. Berlin: Springer-Verlag, 1979: 118-132. 被引量:1
  • 7WU S, MANBER U. A fast algorithm for muhi-pattern searching, TR-94-17 [R]. Tucson: University of Arizona, 1994. 被引量:1
  • 8KNUTH D E, MORRIS J H, PRATT V R. Fast pattern matching in strings [J]. SIAM Journal of Computing, 1977, 6(2) : 323 -350. 被引量:1
  • 9RYTTER W. A correct preprocessing algorithm for Boyer-Moore string searching [ J]. SIAM Journal of Computing, 1980, 9(3) : 509 -512. 被引量:1
  • 10HUME A, SUNDAY D M. Fast string searching [ J]. Software Prac- tice and Experience, 1991, 21(11) : 1221 - 1248. 被引量:1

引证文献6

二级引证文献10

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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