Examveda

What is the worst-case time complexity of the Rabin-Karp algorithm when dealing with multiple patterns?

A. O(m + n)

B. O(m*n)

C. O(mnk)

D. O(n)

Answer: Option C


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching