Loading practice questions
What is the basic principle in the Rabin-Karp algorithm?
Correct Answer: A — Hashing
Explanation:
Rabin-Karp uses hashing. Every substring of the text is converted to a hash value and compared with the hash value of the pattern for fast matching.