Examveda

What is the role of the "good suffix" rule in the Boyer-Moore algorithm?

A. To calculate hash values.

B. To match patterns with multiple lengths.

C. To optimize the search by skipping unnecessary comparisons.

D. To preprocess the pattern.

Answer: Option C


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching