1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sveticcg [70]
3 years ago
5

Given an array A = [a1, a2, . . . , an] of nonnegative integers, consider the following problems: 1 P Partition: Determine wheth

er there is a subset P ⊆ [n] ([n] := {1, 2, · · · , n}) such that i∈P ai = P j∈[n]\P aj 2 Subset Sum: Given some integer k, determine whether there is a subset P ⊆ [n] such that P i∈P ai = k 3 Knapsack: Given some set of items each with weight wi and value vi , and fixed numbers W and V , determine whether there is some subset P ⊆ [n] such that P P i∈P wi ≤ W and i∈P vi ≥ V For each of the following clearly describe your reduction, justify runtime and correctness.(a) Find a linear time reduction from Subset Sum to Partition.(b) Find a linear time reduction from Subset Sum to Knapsack.
Mathematics
1 answer:
boyakko [2]3 years ago
5 0

Answer:

i think the answer is a

Step-by-step explanation:

You might be interested in
I NEED THIS ASAP Are two regular hexagons always congruent? Explain your answer
Scorpion4ik [409]
The two regular hexagons could have different side lengths, so they will not necessarily always be congruent, but they will always be similar.
8 0
3 years ago
Read 2 more answers
Five people each write a positive integer on a piece of paper. If the average of these five integers is 8, what is the greatest
erik [133]

Answer:

Option D. 40

Step-by-step explanation:

Let

x------>the greatest possible value  

we know that

If four people write the number zero, then the average will be

8=(0+0+0+0+x)/5\\ \\40=0+x\\ \\x=40

6 0
3 years ago
Read 2 more answers
.......Evaluate | 7 | = ?
Serhud [2]

Answer:

7

Step-by-step explanation:

absolute value of 7 is 7

7 0
3 years ago
Soybean meal is 18% protein. How many pounds each should be mixed together in order to get 360-lb mixture that is 17% protein?
konstantin123 [22]

Answer:

The answer is 40 and I calculated it, it’s true

Step-by-step explanation:

I promise

3 0
2 years ago
A crate has 272 red and green apples. How many green apples are there?
Rus_ich [418]

Answer:

149

Step-by-step explanation:

4 0
3 years ago
Other questions:
  • The length of the ears on the shadow puppet is 3 inches. The length of the ears on the shadow is 4 inches. What is the scale fac
    15·1 answer
  • An experiment is broken up into two parts. In the first part of the experiment a penny is tossed in the air. If the coin lands o
    11·1 answer
  • A circular pond has a diameter of 4.5 feet.Which is closest to the circumference of the pond
    14·2 answers
  • Four tangent circles centered on the x-axis are shown below. The radius of circle A is twice the radius of circle O. The radius
    10·1 answer
  • What is 2/3 - 8/12 please help me understand this :)
    13·2 answers
  • in how many ways can a mail carrier place three letters in five mailboxes if each box may receive more than one letter?
    6·1 answer
  • 2x+y=7 NEED HELP WITH THIS EQUATION
    6·2 answers
  • What does this equal 12*5*6*100*67*82*200*419*638*35*134
    7·2 answers
  • 4. Kelly bought a total of 30 game cards some of which cost $0.45 each and some of which cost
    8·1 answer
  • Join this meeting and ill let you in (dont show face or voice and link is in replies)
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!