Examveda

What is the primary purpose of the "bad character rule" in the Boyer-Moore algorithm?

A. To skip segments of the text based on mismatched characters.

B. To preprocess the pattern.

C. To hash the pattern.

D. To sort the pattern.

Answer: Option A


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching