McqMate

Q. |
## For which of the following, the length of the string is not equal to the length of the longest palindromic subsequence? |

A. | a string that is a palindrome |

B. | a string of length one |

C. | a string that has all the same letters(e.g. aaaaaa) |

D. | some strings of length two |

Answer» D. some strings of length two | |

Explanation: a string of length 2 for eg: ab is not a palindrome. |

1.1k

0

Do you find this helpful?

6

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
- What is the length of the longest palindromic subsequence for the string “ababcdabba”?
- For every non-empty string, the length of the longest palindromic subsequence is at least one.
- What is the time complexity of the brute force algorithm used to find the length of the longest palindromic subsequence?
- Which of the following is not a palindromic subsequence of the string “ababcdabba”?
- Which of the following methods can be used to solve the longest palindromic subsequence problem?
- Longest palindromic subsequence is an example of
- For any given sequence, there will ALWAYS be a unique increasing subsequence with the longest length.
- Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the longest common subsequence?
- Given a string, you have to find the minimum number of characters to be inserted in the string so that the string becomes a palindrome. Which of the following methods can be used to solve the problem?