A Fast Pattern Matching Algorithm with Two Sliding Windows (TSW)
Amjad A. Hudaib, Rola Al-Khalid, Dima Suleiman et al. · Journal of Computer Science · 2008
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.
Cited by 35 works. doi:10.3844/jcssp.2008.393.401
Authors
References
- Fast Pattern Matching in Strings
- A fast string searching algorithm
- Text Compression
- Practical fast searching in strings
- Fast string searching
- Flexible Pattern Matching in Strings: Practical On-Line Search Algorithms for Texts and Biological Sequences
- Handbook of Exact String Matching Algorithms
- Algorithm Design: Foundations, Analysis, and Internet Examples
- Jewels of Stringology
- Two-way string-matching