Examveda

How does the Rabin-Karp algorithm handle collisions in hashing?

A. By using a rolling hash.

B. By using a secondary hash function.

C. By rehashing the entire pattern.

D. By using a separate data structure.

Answer: Option A


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching