IT206: Design and Analysis of Algorithms

profilekinjalr10

 

Read chapters 19-20.

A sequence is a palindrome if it reads the same whether we read it from left to right or right to left. For instance, A C G G G G C A is a palindrome.

A G T C M C T G A is a palindrome of length 9.

Problem:

Here  is a set of characters.

S A G E S R A D A R U K M Y G Y M D T O P S P O T B S

1. Find the longest palindrome or sequence in the set. 

2. Write your own algorithm to explain how to arrive to the solution. Illustrate your answer. Your algorithm should work with any set of characters.

 You are required to make at least two comments on the responses posted by you classmates with a minimum of 50 words. Make sure you design your response with your own words. Your responses to your classmates must be of substance; not just “I agree” or “Good Post.” The purpose of the responses is to convert the discussion forum into a quality academic environment through which you improve your knowledge and understanding. Read and review all assigned course materials and chapters before you start working on your assignments. 

    • 3 months ago
    • 7
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      Algorithm-9mins8611.docx
    • attachment
      Algorithm-9mins8611.pdf
    Bids(91)