Research on a faster algorithm for pattern matching

  • Authors:
  • Han Kesong;Wang Yongcheng;Chen Guilin

  • Affiliations:
  • Shanghai Jiaotong University, Department of Computer Science, Shanghai, P.R. China;Shanghai Jiaotong University, Department of Computer Science, Shanghai, P.R. China;Shanghai Jiaotong University, Department of Computer Science, Shanghai, P.R. China

  • Venue:
  • IRAL '00 Proceedings of the fifth international workshop on on Information retrieval with Asian languages
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

Based on deep analysis of Boyer-Moore algorithm and Quick Search algorithm, we propose a faster algorithm for single pattern matching by utilizing the continuous skip over the text, this idea enables its high performance because of the large shift on the text, its best time complexity is O(n/(m+1)), which is an inspiring research result. We also discuss the average time complexity of this suggested algorithm, which demonstrates and proves its high efficiency. Our experimental result shows that the algorithm is superior to other algorithms for pattern matching, such as Boyer-Moore algorithm, Quick Search algorithm, Shift Or algorithm, Reverse Factor algorithm, Reverse Colussi algorithm, Improved Apostolico-Giancarlo algorithm and so on. Especially, when the pattern is smaller, our algorithm is more efficient than other algorithms, which is very practical in natural language text retrieval.