A Review of String Matching Algorithms with Emphasison Finite Automata
Abstract
String matching is a fundamental problem in computer science with applications in text processing, bioinformatics, and information retrieval. Over the past decades, a vari- ety of algorithms have been developed; however, selecting an appropriate algorithm for spe- cific applications remains challenging. This paper provides a narrative review of major string matching algorithms, including classical approaches, automata-based methods, bit-parallel techniques, and hashing algorithms, to analyze their performance and applicability. Special attention is given to finite automata, which provide a theoretical framework for various string-matching approaches; however, their limitations, such as high preprocessing cost and memory consumption, are also critically examined. By examining existing literature, this paper identifies key characteristics, strengths, and limitations of different algorithms. The review also compares these approaches from a practical perspective and shows that hybrid algorithms, which combine multiple techniques, often achieve better performance in large-scale data environments. The findings suggest that no single algorithm is optimal for all scenarios, and future research should focus on combining different techniques to improve performance.
References
- Hakak, S. I., Kamsin, A., Shivakumara, P., Gilkar, G. A., Khan, W. Z., & Imran, M. (2019). Exact string matching algorithms: Survey, issues, and future research directions. IEEE Access, 7, 69614–69638. https: //doi.org/10.1109/ACCESS.2019.2914071
- Faro, S., & Lecroq, T. (2013). The exact online string matching problem: A review of the most recent results. ACM Computing Surveys, 45(2), 1–42. https: //doi.org/10.1145/2431211.2431212
- Ren, J., Xia, F., Chen, X., Liu, J., Hou, M., Shehzad, A., Sultanova, N., & Kong, X. (2021). Match- ing algorithms: Fundamentals, applications and challenges. IEEE Transactions on Emerging Top- ics in Computational Intelligence, 5(3), 332–350. https: //doi.org/10.1109/TETCI.2021.3067655
- Navarro, G. (2001). A guided tour to approximate string matching. ACM Computing Surveys, 33(1), 31–88. https: //doi.org/10.1145/375360.375365
- Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2009). Introduction to algorithms (3rd ed.). MIT Press.
- Crochemore, M., & Rytter, W. (2002). Jewels of stringology: Text algorithms. World Scientific Publishing. https: //doi.org/10.1142/4838
- Rabin, M. O., & Karp, R. M. (1987). Efficient randomized pattern-matching algorithms. IBM Journal of Research and Development, 31(2), 249–260.