节点文献

对QS串匹配算法的一种改进

AN IMPROVED QUICK SEARCH ALGORITHM FOR STRING MATCHING

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

【作者】 李雪梅代六玲童新海王雄

【Author】 Li Xuemei~(1) Dai Liuling~2 Tong Xinhai~1 Wang Xiong~1()~1(Department of Electronic Information Engineering,BESTI,Beijing 100070,China)()~2(Department of Computer Science,NUST,Nanjing Jiangsu 210094,China)

【机构】 北京电子科技学院电子信息工程系南京理工大学计算机科学系北京电子科技学院电子信息工程系 北京100070江苏南京210094北京100070

【摘要】 本文提出一种改进的QS算法IQS。基于CPU进行一次字节长度的字符比较和进行一次机器字长长度的整数比较所花费的时间完全相同的事实,以及QS算法对当前尝试中比较顺序和匹配失败位置不关心的特点,IQS将字符比较映射到整数域进行。由于比较次数被成倍减少,算法的平均复杂度被降低,效率相应得到提高。在真实语料上的实验结果表明,IQS算法的匹配速度明显高于QS算法。

【Abstract】 This paper suggests an Improved Quick Search(IQS) algorithm for string matching.Because CPU spends same time on a comparison between two characters whose length is 8 bits as between two integers whose length equal to machine word length.And because QS algorithm doesn’t care about the position of mismatch at each attempt,IQS algorithm carries out the comparisons in the integer field rather than one character by one character.Since the comparisons are reduced manifold,the average complexity of algorithm decreases and the efficiency of algorithm increases correspondingly.Tests on an actual corpus show that IQS algorithm is more efficient than QS algorithm.

【关键词】 串匹配QS算法IQS算法
【Key words】 String matching QS algorithm IQS algorithm
  • 【文献出处】 计算机应用与软件 ,Computer Applications and Software , 编辑部邮箱 ,2006年03期
  • 【分类号】TP309
  • 【被引频次】10
  • 【下载频次】107
节点文献中: 

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

本文的引文网络