1. Home
  2. All MCQs

All MCQs with Answers · Page 1754

45,334 multiple choice questions from every subject, newest first. Switch on practice mode to hide the answers and test yourself.

Newest first

Which data structure provides efficient pattern matching with O(m) preprocessing and O(n) search time?

  1. Naive String Matching
  2. Knuth-Morris-Pratt Algorithm Correct answer
  3. Rabin-Karp Algorithm
  4. Boyer-Moore Algorithm
MCQSEXAM Read explanation