McqMate

Q. |
## Longest common subsequence is an example of |

A. | greedy algorithm |

B. | 2d dynamic programming |

C. | 1d dynamic programming |

D. | divide and conquer |

Answer» B. 2d dynamic programming | |

Explanation: longest common subsequence is an example of 2d dynamic programming. |

1.7k

0

Do you find this helpful?

12

View all MCQs in

Design and Analysis of AlgorithmsNo comments yet

- The longest increasing subsequence problem is a problem to find the length of a subsequence from a sequence of array elements such that the subsequence is sorted in increasing order and it’s length is maximum. This problem can be solved using
- Which of the following methods can be used to solve the longest common subsequence problem?
- Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the longest common subsequence?
- What is the time complexity of the brute force algorithm used to find the longest common subsequence?
- Which of the following is the longest common subsequence between the strings “hbcfgmnapq” and “cbhgrsfnmq” ?
- Longest palindromic subsequence is an example of
- For any given sequence, there will ALWAYS be a unique increasing subsequence with the longest length.
- Which of the following problems can be solved using the longest subsequence problem?
- Which of the following methods can be used to solve the longest palindromic subsequence problem?
- For which of the following, the length of the string is not equal to the length of the longest palindromic subsequence?