Home / MCQ Bank / Computer
Computer String Matching

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

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To create a partial match table.

Related Computer Questions

How do you define a constructor in Ruby? What will be the output of the following C code? #include <stdio.h> typedef struct student { char *a; }stu; void main() { struct stu s; s.a = "hi"; printf("%s", s.a); } Which of the following icons is used to add an attachment to an Email? Which of the following argument specifies margin size with regards to par function? ______ phase merges the counts for unique ngrams or ngram fragments across multiple documents.