The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we help you to solve your academic and programming questions fast.
In eduladder you can Ask,Answer,Listen,Earn and Download Questions and Question papers.
Watch related videos of your favorite subject.
Connect with students from different parts of the world.
Apply or Post Jobs, Courses ,Internships and Volunteering opportunity. For FREE
See Our team
Wondering how we keep quality?
Got unsolved questions? Ask Questions

Data-structure-with-C-10CS35-unit-8-->View question

Consider the weights and values of items listed below. Note that there is only one unit of each item.

Item number |Weight(in Kgs)  |Value(in Rupees)
1                     10                        60
2                      7                         28
3                      4                         20
4                      2                          24

The task is to pick a subset of these items such that their total weight is no more than 11 Kgs
and their total value is maximized. Moreover, no item may be split. The total value of items
picked by an optimal algorithm is denoted by Vopt. A greedy algorithm sorts the items by
their value-to-weight ratios in descending order and packs them greedily, starting from the
first item in the ordered list. The total value of items picked by the greedy algorithm is
denoted by Vgreedy.
The value of Vopt − Vgreedy

is ____________.


Asked On2019-05-29 11:55:51 by:vivekEdu

Taged users:


Likes:
Be first to like this question

Dislikes:
Be first to dislike this question
Talk about this  Like  Dislike
View all qusetions
Answers
Not yet answerd
This question has not found any answer yet! If you know the answer for this question please help us to find an answer.Please read
How to post an answer on eduladder


Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder