Vidyalelo
Data Structure · Q2

String Matching

Programming · Data Structure · question 2

Q2

What is the time complexity of the Boyer-Moore string matching algorithm in the best case?

A.
O(m + n)
B.
O(n)
C.
O(m/n)
Answer
D.
O(m log n)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board