Javascript must be enabled to continue!
A Fast Pattern Matching Algorithm Based on Middle Characters of Pattern String
View through CrossRef
String pattern matching is one of the important string operation. At present, the pattern matching algorithm of strings mainly includes BF algorithm, KMP algorithm, and improved KMP algorithm, BM algorithm etc. Drawing from the study of current pattern matching algorithms and practical programming experience, this paper presents a refined pattern matching algorithm that leverages the middle character of the pattern string. The enhancement offered by this pattern matching algorithm lies in its departure from the traditional approach, which typically involves sequential comparison and matching starting from the first character. This paper introduces a fast pattern matching algorithm that focuses on the middle character of the pattern string. By locating this central character within the target string and initiating the comparison and matching process from there, the algorithm significantly decreases the number of character comparisons required, thereby substantially enhancing the efficiency of the matching process. After repeated verification by program practice, The algorithm reduces the quantity of character comparisons while achieving correct matching, improves the matching efficiency, and effectively reduces the time complexity of the algorithm.
Title: A Fast Pattern Matching Algorithm Based on Middle Characters of Pattern String
Description:
String pattern matching is one of the important string operation.
At present, the pattern matching algorithm of strings mainly includes BF algorithm, KMP algorithm, and improved KMP algorithm, BM algorithm etc.
Drawing from the study of current pattern matching algorithms and practical programming experience, this paper presents a refined pattern matching algorithm that leverages the middle character of the pattern string.
The enhancement offered by this pattern matching algorithm lies in its departure from the traditional approach, which typically involves sequential comparison and matching starting from the first character.
This paper introduces a fast pattern matching algorithm that focuses on the middle character of the pattern string.
By locating this central character within the target string and initiating the comparison and matching process from there, the algorithm significantly decreases the number of character comparisons required, thereby substantially enhancing the efficiency of the matching process.
After repeated verification by program practice, The algorithm reduces the quantity of character comparisons while achieving correct matching, improves the matching efficiency, and effectively reduces the time complexity of the algorithm.
Related Results
Parameterized Strings: Algorithms and Applications
Parameterized Strings: Algorithms and Applications
The parameterized string (p-string), a generalization of the traditional string, is composed of constant and parameter symbols. A parameterized match (p-match) exists between two p...
A Tri-Character guided exact String-matching Algorithm for Efficient str detection In Forensic DNA Analysis
A Tri-Character guided exact String-matching Algorithm for Efficient str detection In Forensic DNA Analysis
The importance of string-matching algorithms in the world of modern DNA forensic technology cannot be over-stated. Short Tandem Repeats (STRs) play an important role in forensic DN...
libFLASM: a software library for fixed-length approximate string matching
libFLASM: a software library for fixed-length approximate string matching
Abstract
Background
Approximate string matching is the problem of finding all factors of a given text that are at a distance at most k from a given ...
Approximate Chinese String Matching Techniques Based on Pinyin Input Method
Approximate Chinese String Matching Techniques Based on Pinyin Input Method
String matching is one of the most typical problems in computer science. Previous studies mainly focused on accurate string matching problem. However, with the rapid development of...
Enhanced Hybrid Algorithm for E-AbdulRazzaq and Fast Online Hybrid Matching Algorithms for Exact String Matching
Enhanced Hybrid Algorithm for E-AbdulRazzaq and Fast Online Hybrid Matching Algorithms for Exact String Matching
Algorithms for string matching are considered one of the most extensively researched topics in the field of computer science due to their substantial role in various applications, ...
Off-line Parallel Exact String Searching
Off-line Parallel Exact String Searching
The string matching problem is defined as follows: given a string P0 ... Pm-1 called the pattern and a string T0 .. .Tn-1 called the text find all occurrences of the pattern in the...
Numerical analysis and Experimental Investigation of Lateral vibration on Drill String under Axial Load Constrained with Horizontal Pipe
Numerical analysis and Experimental Investigation of Lateral vibration on Drill String under Axial Load Constrained with Horizontal Pipe
Abstract
Horizontal well technology is an important means to improve drilling efficiency and oil and gas production, but it is easy to generate the lateral vibration...
Axial Excitation Tool String Modelling
Axial Excitation Tool String Modelling
Current types of axial excitation tool have been shown to produce beneficial results — in terms of load transfer to the bit, general reductions in string friction and reductions in...

