节点文献

一种改进的Sunday字符串匹配算法

An Imporved Sunday String Matching Algorithm

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 刘雨心孟亮窦银科

【Author】 LIU Yuxina,MENG Lianga,DOU Yinkeb(a.College of Computer Science and Technology; b.College of Electrical and Power Engineering,TUT,Taiyuan 030024,China)

【机构】 太原理工大学计算机科学与技术学院太原理工大学电气与动力工程学院

【摘要】 针对Sunday匹配算法在首字符和正文存在大量重复,使得其平均执行效率降低这一问题,提出了一种改进的Sunday算法。首先将重复的首字符压缩为一个字符,然后使用压缩后的字符串和正文进行匹配,若匹配成功,对成功匹配的位置信息前的字符和首字符进行循环匹配;如果匹配位数和模式串相同,则返回成功,否则返回失败。改进后的算法大大减少了匹配次数,使执行速度有了明显的提高。

【Abstract】 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.

【关键词】 Sunday模式匹配字符串算法马尔科夫链
【Key words】 Sundaypattern matchingcharacter stringalgorithmMarkov chain
【基金】 国家自然科学基金资助项目(41176080);山西省自然科学基金资助项目(2010011023-2)
  • 【文献出处】 太原理工大学学报 ,Journal of Taiyuan University of Technology , 编辑部邮箱 ,2013年05期
  • 【分类号】TP301.6
  • 【被引频次】4
  • 【下载频次】183
节点文献中: 

本文链接的文献网络图示:

本文的引文网络