TY - JOUR AU - Hudaib, Amjad AU - Al-Khalid, Rola AU - Suleiman, Dima AU - Itriq, Mariam AU - Al-Anani, Aseel PY - 2008 TI - A Fast Pattern Matching Algorithm with Two Sliding Windows (TSW) JF - Journal of Computer Science VL - 4 IS - 5 DO - 10.3844/jcssp.2008.393.401 UR - https://thescipub.com/abstract/jcssp.2008.393.401 AB - 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.