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...
2021 Census to Census Coverage Survey Matching Results.
2021 Census to Census Coverage Survey Matching Results.
The 2021 England and Wales Census was matched to the Census Coverage Survey (CCS). This was an essential requisite for estimating undercount in the Census. To ensure outputs could ...
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...
Map-Matching Algorithm Based on Hidden Markov and Constraint Value Pruning
Map-Matching Algorithm Based on Hidden Markov and Constraint Value Pruning
Map matching is the process of matching global positioning system (GPS) trajectory data with map data. Its purpose is to determine the actual route of the moving object. Because of...
Enhancement of Rabin-Karp Algorithmusing XOR Filter
Enhancement of Rabin-Karp Algorithmusing XOR Filter
Purpose–Thestudy aims to enhance the Rabin-Karp Algorithm that underlinesthe problem encountered wherein the algorithm’s runtimeperformanceis affected due tothe continuous rap...
Lateral Vibration Analysis of Oil Production Casing String in Deepwater Shallow Under Earthquake Excitations
Lateral Vibration Analysis of Oil Production Casing String in Deepwater Shallow Under Earthquake Excitations
Abstract
The majority of deep-sea oil and gas exploration areas are located in seismic active zone, such as the South China Sea and Suez basin in Egypt. As casing st...
Buckling of Concentric String Pipe-in-Pipe
Buckling of Concentric String Pipe-in-Pipe
Abstract
During the design stage of concentric tubular strings, the outer string is always considered to be rigid. However, in reality, the outer string can become d...


