Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q3. [30] Fractional Knapsack Problem An edited book has 6 articles. The table shows the lengths of the articles and their importance where the scale

image text in transcribed

Q3. [30] Fractional Knapsack Problem An edited book has 6 articles. The table shows the lengths of the articles and their importance where the scale of importance is 1(low) to 10(high). The book must be at most 150 pages long The problem is to edit the book so that the overall importance is maximized. 1. [20] Edit the book by choosing articles whose pages and importance are given in the table. i.e Give A. [8] the list of the chosen articles with their chosen number of pages in the order B. C. [6] the importance for each chosen article and [6] the total maximum importance of the edited book. Article Importance of article Pages 15 20 10 30 4 4 2. [10] Consider a greedy rule for the above Fractional Knapsack Problem that selects the articles in non-decreasing order of pages. If the capacity of the knapsack is not exceeded, we take all of the pages. Otherwise, we take whatever portion of the article fills the knapsack and stop. Give an example to show that this greedy algorithm does not necessarily maximize the importance

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago