Examveda

In the Boyer-Moore algorithm, what is the purpose of the bad character rule?

A. To preprocess the text.

B. To sort characters of the pattern.

C. To check for hash collisions.

D. To skip portions of the text that cannot match.

Answer: Option D


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching