期刊文献+

一种改进Boyer-Moore算法效率的预处理算法 被引量:1

A pre-processing algorithm for improving efficiency of the Boyer-Moore algorithm
下载PDF
导出
摘要 通过理论分析和测试发现,对大多数字符串而言,按某个方向搜索文本总是会比按另一个方向的搜索速度快.提出了新的预处理算法,在使用Boyer-Moore算法之前先确定一个较优的搜索方向,其时间复杂度和空间复杂度分别为O(σm)和O(σ+m),其中σ和m分别为字母表的大小和字符串图案的长度.采用真实的人类DNA序列测试,包括序列库中前1 000个长度超过1 000的完整序列作为文本,从中随机选出1 000个长度为20的序列片段作为图案,进行实验对比,证明可以将搜索时间平均缩短到原来的约90%. The original Boyer-Moore algorithm can be easily adjusted to match the pattern in the alternative direction.Theoretical analysis and experiments showed that for most string patterns,matching a pattern in one direction is always more efficient than in other direction for almost all texts.A pre-processing algorithm with time complexity O(σm) and space complexity O(σ+m) was proposed,where σ and m are the size of the alphabet and the length of the pattern respectively.The novel algorithm determines an optimal matching direction by examining the pattern only and then uses the Boyer-Moore algorithm in the optimal direction to match the pattern.In the experiments,1000 DNA sequences from a human gene database with each length being more than 1000 were chosen as the texts,then 1000 sequence segments with each length being 20 were randomly chosen from these sequences as the patterns.The results showed that the proposed algorithm can averagely reduce the time of pattern matching to 90?% of that of the original algorithm.
出处 《华中科技大学学报(自然科学版)》 EI CAS CSCD 北大核心 2005年第z1期265-267,共3页 Journal of Huazhong University of Science and Technology(Natural Science Edition)
关键词 DNA序列 字符串 图案匹配 BOYER-MOORE算法 DNA sequence string pattern matching Boyer-Moore algorithm
  • 相关文献

参考文献5

  • 1[1]Frank Stomp.Correctness of substring-preprocessing in Boyer-Moore' s pattern matching algorithm [J].Theoretical Computer Science,2003,290(1):59-78
  • 2[2]Michailidis P D,Margaritis K G.On-line string matching algorithm:survey and experimental results[J].Intern J Computer Math,2001,76:411-434
  • 3[3]Tarhio J,Peltora H.String matching in the DNA alphabet[J].Software-Practice and Experience,1997,27(7):851-861
  • 4[4]Cole R.Tight bounds on the complexity of the BoyerMoore pattern matching algorithm [J].SIAM Journal on Computing,1994,23(5):1 075-1 091
  • 5[5]http://www-igm.univmlv.fr/.lecroq/string/

同被引文献9

  • 1Boyer R S, Moore J S. A fast string searching algorithm[J]. Communications of the ACM, 1977, 20(10): 762-772.
  • 2Frank Stomp. Correctness of substring-preprocessing in Boyer-Moore' s pattern matching algorithm[J]. Theoretical Computer Science, 2003, 290 (1) : 59-78.
  • 3Han Kesong, Wang Yongcheng, Chen Guilin. Research on a faster algorithm for pattern matching [C]// Proceedings of the Fifth International Workshop on on Information Retrieval with Asian Languages. Hong Kong.. [s.n.], 2000: 119-124.
  • 4Erdogan O, Cao P. Hash-AV: fast virus signature scanning by cache-resident filters[J]. International Journal of Security and Networks, 2007, 2(1/2) : 50- 59.
  • 5Baeza-Yates R, Gonnet G H. A new approach to text searching[J]. Communications of the ACM, 1992, 35(10):74-82.
  • 6Lu Yi, Lu Shiyong, Ram J L. Fast search in DNA sequence databases using punctuation and indexing [C] // Proceedings of the 2nd IASTED International Conference on Advances in Computer Science and Technology. Anaheim: ACTA, 2006, 351-356.
  • 7王浩,周晓峰.基于入侵检测系统snort的BM模式匹配算法的研究和改进[J].计算机安全,2009(2):38-40. 被引量:5
  • 8钱屹,侯义斌.一种快速的字符串匹配算法[J].小型微型计算机系统,2004,25(3):410-413. 被引量:25
  • 9李洋,王康,谢萍.BM模式匹配改进算法[J].计算机应用研究,2004,21(4):58-59. 被引量:16

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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