52. If n is the length of text(T) and m is the length of the pattern(P) identify the correct pre-processing algorithm. (where q is a suitable modulus to reduce the complexity)
p=0; t0=0;
p=0; t0=0;
53. What is the worst case running time in searching phase of Boyer-Moore's algorithm?
54. Which of the following is the fastest algorithm in string matching field?
55. What is the worst case running time of Rabin Karp Algorithm?
56. What happens when the modulo value(q) is taken large?
57. Rabin- Karp algorithm can be used for discovering plagiarism in a sentence.
58. 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?
59. Which of the following algorithms formed the basis for the Quick search algorithm?
60. Given a pattern of length- 5 window, find the valid match in the given text.
Pattern: 2 1 9 3 6
Modulus: 21
Index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Text: 9 2 7 2 1 8 3 0 5 7 1 2 1 2 1 9 3 6 2 3 9 7
Pattern: 2 1 9 3 6
Modulus: 21
Index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Text: 9 2 7 2 1 8 3 0 5 7 1 2 1 2 1 9 3 6 2 3 9 7