Sale!

Homework 6,CPSC 4100 – 01 solved

Original price was: $35.00.Current price is: $30.00. $25.50

Category:

Description

5/5 - (3 votes)

CPSC 4100 – 01A palindrome is a nonempty string over some alphabet that reads the same
forward and backward. Examples of palindromes are all strings of length 1, civic,
racecar, and aibohphobia (fear of palindromes). Give an efficient algorithm to find
the longest palindrome that is a subsequence of a given input string. For
example, given the input character, your algorithm should return carac. What is
the running time of your algorithm?
Implement your algorithm in C++. Submit your code on Canvas. Before
submission make sure that your code works. Do not forget to put the pledge as a
comment on your submission.