Exercise The longest palindromic subsequence problem is a classic variation of the Longest Common Subsequence (LCS) problem. The idea is to find LCS of the given string with its reverse, i.e., call LCS(X, reverse(X)) and the longest common subsequence will be the longest palindromic subsequence. 1- We consider the sequence X = ABBDCACB. Apply the appropriate dynamic programming algorithm to compute the longest palindrome sequence and it is length. You must show all the computing steps. Exercise 2 Find an optimal solution for the knapsack instance n (number of objects) -7 and W (total weight) -15, in such a way that the total weight is less than or equal to a given limit and the total profit value is as large as possible. Profits and weights of each object are as follows (p1, p2p7) (10, 5, 15, 7, 6, 18, 3) (w1, w2.........w7) = (2,3,5,7,6,4,1)

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter18: Deterministic Dynamic Programming
Section18.4: Resource-allocation Problems
Problem 3P
icon
Related questions
Question
Please help me quickly
Exercise
The longest palindromic subsequence problem is a classic variation of the Longest Common
Subsequence (LCS) problem. The idea is to find LCS of the given string with its reverse, i.e., call LCS(X,
reverse(X)) and the longest common subsequence will be the longest palindromic subsequence.
1- We consider the sequence X = ABBDCACB. Apply the appropriate dynamic programming
algorithm to compute the longest palindrome sequence and it is length. You must show all the
computing steps.
Exercise 2
Find an optimal solution for the knapsack instance n (number of objects) -7 and W (total weight) -15, in
such a way that the total weight is less than or equal to a given limit and the total profit value is as
large as possible. Profits and weights of each object are as follows
(p1, p2p7)
(10, 5, 15, 7, 6, 18, 3)
(w1, w2.........w7) = (2,3,5,7,6,4,1)
Transcribed Image Text:Exercise The longest palindromic subsequence problem is a classic variation of the Longest Common Subsequence (LCS) problem. The idea is to find LCS of the given string with its reverse, i.e., call LCS(X, reverse(X)) and the longest common subsequence will be the longest palindromic subsequence. 1- We consider the sequence X = ABBDCACB. Apply the appropriate dynamic programming algorithm to compute the longest palindrome sequence and it is length. You must show all the computing steps. Exercise 2 Find an optimal solution for the knapsack instance n (number of objects) -7 and W (total weight) -15, in such a way that the total weight is less than or equal to a given limit and the total profit value is as large as possible. Profits and weights of each object are as follows (p1, p2p7) (10, 5, 15, 7, 6, 18, 3) (w1, w2.........w7) = (2,3,5,7,6,4,1)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning