MCQ Single Best Answer Easy

Q Which algorithm is used to find all occurrences of a pattern in a text?

ID: #5776 String Algorithms 193 views
Question Info
#5776Q ID
EasyDifficulty
String AlgorithmsTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Knuth-Morris-Pratt algorithm
  • B Boyer-Moore algorithm
  • C Longest common subsequence algorithm
  • D Rabin-Karp algorithm
Correct Answer: Option B

Explanation

Answer: b) Boyer-Moore algorithm

Explanation: The Boyer-Moore algorithm is used to find all occurrences of a pattern in a text.

Share This Question

Challenge a friend or share with your study group.