String Matching on Data Structure and Algorithms related Questions and Answers


Question :   If the expected number of valid shifts is small and modulus is larger than the length of pattern what is the matching time of Rabin Karp Algorithm?
1. Theta(m)
2. Big-Oh(n+m)
3. Theta(n-m)
4. Big-Oh(n)
Answer :   2 - Big-Oh(n+m)  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter