Vidyalelo
Data Structure · all questions

String Matching
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

70

Questions

4/4

Page

Pick an option on a question to see the right answer and solution.

Who created the Rabin Karp Algorithm?

Select an option to see the answer and solution.

Given a pattern of length- 5 window, find the spurious hit in the given text string.
Pattern: 3 1 4 1 5 
Modulus: 13
Index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Text:   2 3 5 9 0 2 3 1 4 1 5   2   6   7   3   9   9   2   1   3   9

Select an option to see the answer and solution.

What is the basic formula applied in Rabin Karp Algorithm to get the computation time as Theta(m)?

Select an option to see the answer and solution.

Quick search algorithm starts searching from the right most character to the left.

Select an option to see the answer and solution.

What character shift tables does Boyer-Moore's search algorithm use?

Select an option to see the answer and solution.

What is a Rabin and Karp Algorithm?

Select an option to see the answer and solution.

Given input string = "ABCDABCATRYCARCABCSRT" and pattern string = "CAT". Find the first index of the pattern match using quick search algorithm.

Select an option to see the answer and solution.

What is the time complexity of the Quick search algorithm?

Select an option to see the answer and solution.

What character shift tables does quick search algorithm use?

Select an option to see the answer and solution.

The searching phase in quick search algorithm has good practical behaviour.

Select an option to see the answer and solution.