期刊文献+

一种改进的Sunday字符串匹配算法 被引量:1

An Imporved Sunday String Matching Algorithm
下载PDF
导出
摘要 针对Sunday匹配算法在首字符和正文存在大量重复,使得其平均执行效率降低这一问题,提出了一种改进的Sunday算法。首先将重复的首字符压缩为一个字符,然后使用压缩后的字符串和正文进行匹配,若匹配成功,对成功匹配的位置信息前的字符和首字符进行循环匹配;如果匹配位数和模式串相同,则返回成功,否则返回失败。改进后的算法大大减少了匹配次数,使执行速度有了明显的提高。 Aiming at a large number of repeated characters in the first character and body with Sunday matching algorithm and the falling of the average execution efficiency, an improved algorithm for Sunday matching algorithm is proposed in this paper. Firstly, the repeated first character is compressed to one character, and then the compressed text strings is used to match the body characters. If the match is successful, we continue the cyclic matching of the character in front of position information of successful match and the first character. If the number and pattern of the two strings match, it returns success, otherwise it returns failure. This can reduce a lot of meaningless matching operations. The experimental result shows that the improved algorithm enhances the speed of the algorithm.
出处 《太原理工大学学报》 CAS 北大核心 2013年第5期604-607,共4页 Journal of Taiyuan University of Technology
基金 国家自然科学基金资助项目(41176080) 山西省自然科学基金资助项目(2010011023-2)
关键词 SUNDAY 模式匹配 字符串 算法 马尔科夫链 Sunday pattern matching character string algorithm Markov chain
  • 相关文献

参考文献4

二级参考文献17

  • 1王成,刘金刚.一种改进的字符串匹配算法[J].计算机工程,2006,32(2):62-64. 被引量:26
  • 2Sunday D M. A Very Fast Substring Search Algorithm[J]. Communications of ACM, 1990, 33(8): 132-142.
  • 3Sunday D M.A very fast substring search algorithm[J].Communications of ACM, 1990,33(8) : 132-142.
  • 4Smith P D.Experiments with a very fast substring search aigorithm[J].Soiiware-Practice & Experience, 1991,21 (10) : 1065-!074.
  • 5BOYER R.S.,MOORE J.S.,1977,A fast string searching algorithm[J],Communications of the ACM,20:762~772.
  • 6SUNDAY D.M.,1990,A very fast substring search algorithm[J],Communications of the ACM,33(8):132~142.
  • 7LECROQ,T.,1995,Experimental results on string matching algorithms[J],Software-Practice & Experience,25(7):727~765.
  • 8http://www.research.att.com/~lewis/reuters21578.html[Z].
  • 9Kendall K. A Database of Computer Attacks for the Evaluation of Intrusion Detection Systems [D].USA:MIT (Massachusettes Institute of Technology),Department of Electrical Engineering and Computer Science, 1999-06.
  • 10Charras C.Exact String Matching Algorithms[Z]. http://www-igm.univ-mlv.fr/-lecroq/string/.

共引文献38

同被引文献5

引证文献1

二级引证文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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