期刊文献+

改进的QS模式匹配算法的性能分析 被引量:2

Performance analysis of improved quick search algorithms for pattern matching
下载PDF
导出
摘要 在详细分析QS匹配算法的基础上,提出了一种改进的算法I_QS算法。I_QS算法把模式串中每相邻两个字符构成一个字符串,由这些字符串组成字符串表并确定其位置,同时通过当前匹配窗口的后三个字符来确定下一次的右移量。为了分析I_QS算法的性能,从不同模式串数目角度,对I_QS算法进行匹配所需要的时间、所尝试的次数、所比较的字符个数三方面进行实验。实验结果表明,由于I_QS算法能够最大限度地向右移动,从而大大地减少移动次数和缩短匹配时间,有效地提高模式匹配速度。 The paper suggests an Improved Quick Search (I QS) algorithm for string matching based on the detailed analysis of Quick Search (QS) algorithm. The I_QS algorithm uses every adjacent two characters of pattern string to make up of a string and constitutes a string table, then confirms the position of strings. It uses back three characters of the current match- ing window to determine the distance of next shif. To analyse the performance of the I QS algorithm, some experiments are done from three aspects which are matched time, trial times and characters' numbers through the number of different pattern strings. The experimental results show that because the I QS algorithm can maximum limit to move to right, so it can reduce the times of moving and the time of matching. The I_QS algorithm enhances the algorithm's efficiency.
作者 巫喜红
出处 《计算机工程与应用》 CSCD 2014年第2期44-48,共5页 Computer Engineering and Applications
基金 广东省教育部产学研合作项目基金资助项目(No.2011A090200068) 梅州市科技计划基金资助项目(No.2011A04)
关键词 快速搜索(QS)算法 改进的快速搜索(I-QS)算法 性能 模式匹配 Quick Search(QS) algorithm Improved Quick Search(I_QS) algorithm performance pattern matching
  • 相关文献

参考文献6

二级参考文献13

  • 1李雪梅,代六玲,童新海,李莉.一种串匹配的快速Boyer-Moore算法[J].计算机应用研究,2005,22(9):49-51. 被引量:7
  • 2杨薇薇,廖翔.一种改进的BM模式匹配算法[J].计算机应用,2006,26(2):318-319. 被引量:25
  • 3张娜,侯整风.一种快速的BM模式匹配改进算法[J].合肥工业大学学报(自然科学版),2006,29(7):834-838. 被引量:9
  • 4Knuth D E,Morris J H,Pratt V R.Fast pattern in strings[J].SIJM Journal on computing,1977,6(2):323-350.
  • 5Boyer R S,Moore J S.A fast string searching algorithm[J].Communications of the ACM,1977,20(10):762-772.
  • 6SUNDAY D M.A very fast substring search algorithm[J].Communications of the ACM,1990,33(3):132-142.
  • 7Hochberg J Jackson K, Stallings C,et al.NADIR:An Automated System for Detecting Network Intrusion and Misuse.Computers and Security, 1993,12(3):235-248.
  • 8Knuth DE , Morris JH, Pratt VR. Fast Pattern Matching in Strings[J].SIAM Journal on Computer, 1977,6(2) :323-350.
  • 9Boyer RS , Moore JS. A Fast String Searching Algorithm[J].Communications of the ACM ,1977,20(10) :762-772.
  • 10Crochemorc M,Rytter W.Text Algorithms.Oxford University Press. 1994.

共引文献53

同被引文献9

引证文献2

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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