Examveda

What is the primary benefit of using the Rabin-Karp algorithm?

A. Lower space complexity compared to others.

B. Efficient for multiple pattern matching using hashing.

C. Better for single pattern matching.

D. Lower space complexity compared to others.

Answer: Option B


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching