2013Journal of Sanming UniversityRequires access

Two Improved Fast Single Pattern Matching Algorithms of QS

Zhou Zhi-pin

Open publisher page 0 citations

Abstract

Pattern matching algorithms has been widely used in various fields. Aiming at how to reduce the number of attempts as well as improve the efficiency of the algorithm, two pattern matching algorithms are presented to improve the algorithm of quick search. The first algorithm matches the text window by checking whether the last character occurs in the pattern string, and then shifts the pattern string depending on the situation. The second algorithm constructs two bad character shift tables of BM and QS algorithms', then look up these two tables to determine the shift distance each time, making the pattern string reach the maximum shift distance. This greatly reduces the number of attempts and increases the shift distance. The experimental results show that UCD and MSD algorithms' matching speed is significantly faster than QS and other algorithms'.

About this research paper

What this paper is about

Pattern matching algorithms has been widely used in various fields. Aiming at how to reduce the number of attempts as well as improve the efficiency of the algorithm, two pattern matching algorithms are presented to improve the algorithm of quick search. The first algorithm matches the text window by checking whether the last character occurs in the pattern string, and then shifts the pattern string depending on the situation. The second algorithm constructs two bad character shift tables of BM and QS algorithms', then look up these two tables to determine the shift distance each time, making the pattern string reach the maximum shift distance. This greatly reduces the number of attempts and increases the shift distance. The experimental results show that UCD and MSD algorithms' matching speed is significantly faster than QS and other algorithms'.

Why it matters

A significance statement is not available in the OpenAlex record.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

Pattern matching algorithms has been widely used in various fields. Aiming at how to reduce the number of attempts as well as improve the efficiency of the algorithm, two pattern matching algorithms are presented to improve the algorithm of quick search. The first algorithm matches the text window by checking whether the last character occurs in the pattern string, and then shifts the pattern string depending on the situation. The second algorithm constructs two bad character shift tables of BM and QS algorithms', then look up these two tables to determine the shift distance each time, making the pattern string reach the maximum shift distance. This greatly reduces the number of attempts and increases the shift distance. The experimental results show that UCD and MSD algorithms' matching speed is significantly faster than QS and other algorithms'.

Key concepts: String searching algorithm, Algorithm, Pattern matching, Character (mathematics), Matching (statistics), Commentz-Walter algorithm, String (physics), Approximate string matching

Related papers

Back to paper searchBrowse research topicsOriginal source
Two Improved Fast Single Pattern Matching Algorithms of QS — Research Paper | ScholarLens