Who created the Rabin-Karp Algorithm?
Joseph Rabin and Michael Karp
Michael Rabin and Joseph Karp
Richard Karp and Michael Rabin
Michael Karp and Richard Rabin
10 practice sets · Page 1 of 1
Who created the Rabin-Karp Algorithm?
Joseph Rabin and Michael Karp
Michael Rabin and Joseph Karp
Richard Karp and Michael Rabin
Michael Karp and Richard Rabin
What is the basic principle in the Rabin-Karp algorithm?
Hashing
Sorting
Augmenting
Dynamic programming
If the expected number of valid shifts is small and modulus is larger than the pattern length, what is the matching time of the Rabin-Karp Algorithm?
Theta(m)
O(n+m)
Theta(n-m)
O(n)
What happens when the modulo value (q) is taken large?
Complexity increases
Spurious hits occur frequently
Cost of extra checking is low
Matching time increases
Rabin-Karp algorithm can be used for discovering plagiarism in a sentence.
True
False
What is the worst case running time of the Rabin-Karp Algorithm?
Theta(n)
Theta(n-m)
Theta((n-m+1)m)
Theta(n log m)
What is the basic formula applied in Rabin-Karp Algorithm to achieve pre-processing in Theta(m)?
Halving rule
Horner's rule
Summation lemma
Cancellation lemma
Rabin-Karp Algorithm makes use of elementary number theoretic notions.
True
False
What is the pre-processing time of the Rabin-Karp Algorithm?
Theta(m^2)
Theta(m log n)
Theta(m)
O(n)
What is the Rabin-Karp Algorithm?
String matching algorithm
Shortest path algorithm
Minimum spanning tree algorithm
Approximation algorithm