McqMate
| Q. |
Which of the following methods can be used to solve the longest common subsequence problem? |
| A. | recursion |
| B. | dynamic programming |
| C. | both recursion and dynamic programming |
| D. | greedy algorithm |
| Answer» C. both recursion and dynamic programming | |
| Explanation: both recursion and dynamic programming can be used to solve the longest subsequence problem. | |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet