Improved multi-keyword matching algorithm

Liu Ling Dai*, Shu Mei Wang, He Yan Huang, Zhao Xiong Chen

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

An improved algorithm for matching multiple strings is suggested. The new algorithm, named QMS (quick multi-pattern search), is based on the analysis of Sun Wu algorithm and the idea of QS (quick search) algorithm. QMS uses HASH table and PREFIX table to decrease the number of comparisons. During the computation of the shift distance, the character closely after the current window is considered. Thus shift distances are computed with more accurate technique, and larger average shift distance is acquired. The scanning efficiency and the space utility are improved in result. Series of tests on an actual corpus show that QMS algorithm is much more efficient than Sun Wu algorithm under usual circumstances.

Original languageEnglish
Pages (from-to)735-739
Number of pages5
JournalNanjing Li Gong Daxue Xuebao/Journal of Nanjing University of Science and Technology
Volume29
Issue number6
Publication statusPublished - Dec 2005
Externally publishedYes

Keywords

  • Boyer-Moore algorithm
  • Multi-keyword matching
  • Quick search algorithm
  • Sun Wu algorithm

Fingerprint

Dive into the research topics of 'Improved multi-keyword matching algorithm'. Together they form a unique fingerprint.

Cite this