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

Join The Discussion