subject

The 0-1 knapsack problem. Given six items {(vi , wi)} for i = 1, 2, . . . , 6 as follows: i vi wi 1 40 100 2 35 50 3 18 45 4 4 20 5 10 10 6 2 5 and the total weight W = 100, where vi and wi are the value and weight of item i, respectively. Find the greedy solutions by using following strategies: 1 (a) Greedy by value, i. e., at each step select from the remaining items the one with the highest value (b) Greedy by weight, i. e., at each step select from the remaining items the one with the least weight. (c) Greedy by value density, i. e.,

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 21:40
Clunker motors inc. is recalling all vehicles in its extravagant line from model years 1999—2002 as well as all vehicles in its guzzler line from model years 2004—2007. a boolean variable named recalled has been declared. given a variable modelyear and a string modelname, write a statement that assigns true to recalled if the values of modelyear and modelname match the recall details and assigns false otherwise.
Answers: 2
question
Computers and Technology, 25.06.2019 05:00
The ratio of men to women in a certain factory is 3 to 4 .there are 210 men.how many workers are there?
Answers: 2
You know the right answer?
The 0-1 knapsack problem. Given six items {(vi , wi)} for i = 1, 2, . . . , 6 as follows: i vi wi 1...
Questions
question
Mathematics, 27.01.2020 20:31
question
Chemistry, 27.01.2020 20:31
question
Biology, 27.01.2020 20:31
question
Mathematics, 27.01.2020 20:31