Examveda

In which scenario is the Naive string matching algorithm the least efficient?

A. When the pattern and text are very long.

B. When the pattern is very short.

C. When the text is sorted.

D. When there are many matches in the text.

Answer: Option A


This Question Belongs to Data Structure >> String Matching

Join The Discussion

Related Questions on String Matching