Examveda

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

A. 11-16

B. 3-8

C. 13-18

D. 15-20

Answer: Option C


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching