ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What is the worst case time complexity of KMP algorithm for pattern searching (m = length of text, n = length of pattern)?
Correct Answer: C — O(m)
KMP algorithm is an efficient pattern searching algorithm. It has a time complexity of O(m) where m is the length of text.