![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/public/images/logos/logo-white.png)
McqMate
Q. |
Which of the following problems should be solved using dynamic programming? |
A. | mergesort |
B. | binary search |
C. | longest common subsequence |
D. | quicksort |
Answer» C. longest common subsequence | |
Explanation: the longest common subsequence problem has both, optimal substructure and overlapping subproblems. hence, dynamic programming should be used the solve this problem. |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet