Home / MCQ Bank / Computer
Computer String Matching

What is the primary benefit of using the Rabin-Karp algorithm?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Efficient for multiple pattern matching using hashing.

Related Computer Questions

What is the primary function of the HBase Scanner in HBase? How do you create a theme with a dark background in ggplot2? What will be the output of the following code? #include <iostream> #include <string> using namespace std; void func1(string input,string output) { if(input.length()==0) { cout<<output<<","; return; } for(int i=0;i<=output.length();i++) func1(input.substr(1),output.substr(0,i) + input[0] + output.substr(i)); } int main() { char str[] = "AB"; func1(str, ""); return 0; } What is the purpose of the 'friend' keyword in a C++ function declaration? In Inheritance concept, which of the following members of base class are accessible to derived class members?