Examveda

What is the preprocessing phase in the Knuth-Morris-Pratt (KMP) algorithm used for?

A. To find all possible matches.

B. To sort the text.

C. To create a partial match table.

D. To compute hash values for patterns.

Answer: Option C


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching