A Comparative Evaluation of Knuth-Morris-Pratt Algorithm and Large Language Models with Retrieval Augmented Generation | IEEE Conference Publication | IEEE Xplore