Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 7 (10 points) Obtain the optimal solution of knapsack problem in the following settings: The total capacity of the bag C is 15(C=15), and

image text in transcribed

Problem 7 (10 points) Obtain the optimal solution of knapsack problem in the following settings: The total capacity of the bag C is 15(C=15), and there is a maximum number of 7 items (N=7) with W1=2,W2=3,W3=5,W4=7,W5=1,W6=4,W7=1 and P1=10,P2=5,P3=15, P4=7,P5=6,P6=18,P7=3 their corresponding weights and values, respectively. Use the notations foptimal and fgreeis to represent the optimal solution and that obtained by greedy method in non-increasing order of the value of item Pi. What's the ratio of fgreedfoptimal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions

Question

What are the need and importance of training ?

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago