Journal of Software Engineering and Applications

Volume 8, Issue 3 (March 2015)

ISSN Print: 1945-3116   ISSN Online: 1945-3124

Google-based Impact Factor: 2  Citations  

Four Sliding Windows Pattern Matching Algorithm (FSW)

HTML  Download Download as PDF (Size: 1000KB)  PP. 154-165  
DOI: 10.4236/jsea.2015.83016    3,888 Downloads   5,721 Views  Citations

ABSTRACT

This paper presents an efficient pattern matching algorithm (FSW). FSW improves the searching process for a pattern in a text. It scans the text with the help of four sliding windows. The windows are equal to the length of the pattern, allowing multiple alignments in the searching process. The text is divided into two parts; each part is scanned from both sides simultaneously using two sliding windows. The four windows slide in parallel in both parts of the text. The comparisons done between the text and the pattern are done from both of the pattern sides in parallel. The conducted experiments show that FSW achieves the best overall results in the number of attempts and the number of character comparisons compared to the pattern matching algorithms: Two Sliding Windows (TSW), Enhanced Two Sliding Windows algorithm (ETSW) and Berry-Ravindran algorithm (BR). The best time case is calculated and found to be  while the average case time complexity is  .

Share and Cite:

Hudaib, A. , Al-Khalid, R. , Al-Anani, A. , Itriq, M. and Suleiman, D. (2015) Four Sliding Windows Pattern Matching Algorithm (FSW). Journal of Software Engineering and Applications, 8, 154-165. doi: 10.4236/jsea.2015.83016.

Cited by

[1] Performance study of the memory utilization of an improved pattern matching algorithm using bit-parallelism
Journal of Computer …, 2022
[2] Intelligent Predictive String Search Algorithm Using Two Sliding Windows in Parallel Environment
2020
[3] Enhanced Pattern Matching Algorithms for Searching Arabic Text Based on Multithreading Technology
2019
[4] Parallel Enhanced Pattern Matching Algorithm with Two Sliding Windows PETSW
International Journal of Computer Applications, 2018
[5] A Family of Exact Pattern Matching Algorithms with Multiple Adjacent Search Windows
2017
[6] A Family of Exact Pattern Matching Algorithms with Multiple Adjacent Search Windows.
2017
[7] Exact Online String Matching Bibliography
arXiv preprint arXiv:1605.05067, 2016
[8] A Fast Pattern Matching Algorithm Using Changing Consecutive Characters
2016

Copyright © 2025 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.