Journal of South China University of Technology(Natural Science Edition) ›› 2012, Vol. 40 ›› Issue (6): 103-108.

• Computer Science & Technology • Previous Articles     Next Articles

A Fast Algorithm for Approximate Pattern Matching

Li Yong-jun  Ao Dao-gan   

  1. School of Computer Science and Engineering,South China University of Technology,Guangzhou 510006,Guangdong,China
  • Received:2011-12-26 Revised:2012-03-13 Online:2012-06-25 Published:2012-05-03
  • Contact: 李拥军(1968-) ,男,博士,副教授,主要从事计算机网络与人工智能研究. E-mail:liyj@scut.edu.cn
  • About author:李拥军(1968-) ,男,博士,副教授,主要从事计算机网络与人工智能研究.
  • Supported by:

    国家自然科学基金资助项目( 61070015) ; 广东省科技计划项目( 2011B010200039) ; 广州市科技计划项目( 11C42080722)

Abstract:

In order to improve the performance of the dynamic programming algorithm,a traditional method of solving the approximate pattern matching problem, a novel filtering-type approximate pattern matching algorithm is proposed,which combines the advantages of the dynamic programming algorithm, splits the pattern string into smaller pattern pieces with the same length,divides the text string to be matched into sub-strings and further establishes the corresponding index. Moreover,a new filtering strategy is proposed to eliminate the redundancy of the match examination. Example results show that the proposed algorithm is superior to the existing ones due to its small match time cost and high performance,especially under the condition of long pattern string matching; and that,as compared with the traditional dynamic programming algorithm,the proposed algorithm reduces the match time by more than 50% when the pattern string length is more than 45.

Key words: approximate pattern matching, dynamic programming algorithm, matching time