1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. Which algorithm efficiently finds the longest common…

Added 12 Sep 2025

Which algorithm efficiently finds the longest common subsequence of two sequences?

  1. Naive Recursion
  2. Dynamic Programming Correct answer
  3. Greedy Algorithm
  4. Divide and Conquer

Correct answer

B. Dynamic Programming

17 views

MCQSEXAM

Explanation

The dynamic programming approach solves LCS in O(mn) time and space.

Reference

Asked in: GATE CS, UGC NET CS

https://www.geeksforgeeks.org/longest-common-subsequence-dp-4/

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs