subject
Mathematics, 30.07.2019 18:10 mikkilynnpeace1982

For each of the following sequences and "volumes, " decide whether the knapsack problem is superincreasing and how many solutions (if any) it has: (a) {2, 3, 7, 20, 35, 69}, v = 45: (b) {1, 2, 5, 9, 20, 49}, v = 73: (c) {1, 3, 7, 12, 22, 45}, v = 67: (d) {2, 3, 6, 11, 21, 40}, v = 39: (e) {4, 5, 10, 30, 50, 101}, v = 186: (f) {3, 5, 8, 15, 28, 60}, v = 43: the knapsack problem. given a set {v_i} of k positive integers and an integer v, find a k-bit integer n = (epsilon_k - 1 epsilon_k - 2 .. epsilon_1 epsilon_0)_2 (where the epsilon_i elementof {0, 1} are the binary digits of n) such sigma^k - 1_i = 0 epsilon_i v_i = v, if such an n exists. note that there may be no solution n or many solutions, or there might be a unique solution, depending on the k-tuple {v_i} and the integer v. a special case of the knapsack problem is the superincreasing knapsack problem. this is the case when the v_i, arranged in increasing order, have the property that each one is greater than the sum of all of the earlier v_i.

ansver
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 17:40, kiingbr335yoqzaxs
Given abcd ac=38 and ae=3x+4 find the value of x
Answers: 2
image
Mathematics, 21.06.2019 18:40, antmaan15
The table shows the results of three plays in a football game. what is the net result of the three plays? football game 1st play 5 yards 2nd play -9 yards 3rd play 12 yards
Answers: 2
image
Mathematics, 21.06.2019 20:30, googoo4
The cost of using a service is $0.25 per min. what equation correctly represents the total cost c, in dollars, for d days of use?
Answers: 2
image
Mathematics, 21.06.2019 22:00, ihatedevin12
If abcde is reflected over the x-axis and then translated 3 units left, what are the new coordinates d?
Answers: 3
You know the right answer?
For each of the following sequences and "volumes, " decide whether the knapsack problem is superincr...

Questions in other subjects:

Konu
Biology, 05.10.2020 17:01
Konu
Mathematics, 05.10.2020 17:01
Konu
Mathematics, 05.10.2020 17:01