@article {10.3844/jcssp.2008.393.401, article_type = {journal}, title = {A Fast Pattern Matching Algorithm with Two Sliding Windows (TSW)}, author = {Hudaib, Amjad and Al-Khalid, Rola and Suleiman, Dima and Itriq, Mariam and Al-Anani, Aseel}, volume = {4}, number = {5}, year = {2008}, month = {May}, pages = {393-401}, doi = {10.3844/jcssp.2008.393.401}, url = {https://thescipub.com/abstract/jcssp.2008.393.401}, abstract = {In this research, we propose a fast pattern matching algorithm: The Two Sliding Windows (TSW) algorithm. The algorithm makes use of two sliding windows, each window has a size that is equal to the pattern length. Both windows slide in parallel over the text until the first occurrence of the pattern is found or until both windows reach the middle of the text. The experimental results show that TSW algorithm is superior to other algorithms especially when the pattern occurs at the end of the text.}, journal = {Journal of Computer Science}, publisher = {Science Publications} }