Homework 6 CPSC 4100 – 01 solution

$24.99

Original Work ?

Download Details:

  • Name: Homework-6-lptmaq.zip
  • Type: zip
  • Size: 4.19 MB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (9 votes)

A 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.