Computer Science, asked by naval1610chauhan, 5 months ago

Let the Text = A C AA BC
Let the Pattern = AAB
Using Naïve String Matcher, the string search will return shift values:
a.4
b.2
C.1
d.3

Answers

Answered by Anonymous
0

Answer:

Answer is Optional K

Explanation:

It is option no. b.2

Answered by Anonymous
0

If there isn't any space in the text string then it will return 2 otherwise it will return 4. (Option B)

Explanation: Naïve String Algorithm is a pattern matching algorithm and it returns the value at which the string is found. To calculate space, we could have instilled a condition where it will increment it by i+1 and the returned index will be 4.

The answer will be 2 in case of the space's non-existence

Attachments:
Similar questions