Examveda

Which algorithm is particularly well-suited for string matching when the pattern is very short?

A. Knuth-Morris-Pratt (KMP)

B. Rabin-Karp

C. Naive Search

D. Boyer-Moore

Answer: Option C


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching