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?

🎲 Try a Random Question  |  Total Questions in Quiz: 24  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Analysis Of Algorithms: String Matching Algorithms — practice the complete quiz, review flashcards, or try a random 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?