Vidyalelo
Data Structure · Q42

String Matching

Programming · Data Structure · question 42

Q42

Which algorithm is well-suited for string matching when dealing with long and complex patterns?

A.
Boyer-Moore
Answer
B.
Knuth-Morris-Pratt (KMP)
C.
Rabin-Karp
D.
Naive Search

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board