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
Which is the solution set for –7 ≤ 4x + 1 ≤ 5?<br><br> I added a picture !
Oksi-84 [34.3K]
-7\leq4x+1\leq5\ \ \ \ |subtract\ 1\\\\-7-1\leq4x+1-1\leq5-1\\\\-8\leq4x\leq4\ \ \ \ |divide\ by\ 4\\\\-8:4\leq4x:4\leq4:4\\\\\boxed{-2\leq x \leq1\Rightarrow x\in[-2;\ 1]}

\boxed{x\geq-2\ and\ x\leq1}\to\answer{\boxed{C}}
6 0
3 years ago
Read 2 more answers
A 1.51 gram bar of gold is worth 1567.01 dollars. what is the value in dollar of a 2.23 gram of gold ingot?
marin [14]

Answer:

Step-by-step explanation:

1.51 gram to $ 1567.01 = 2.23 gram to $ x

1.51 / 1567.01 = 2.23 / x

cross multiply because this is a proportion

(1.51)(x) = (1567.01)(2.23)

1.51x = 3494.43

x = 3494.43 / 1.51

x = $ 2314.19 <===== what 2.23 grams of gold is worth

==========================

x = first car and y = new car

x = 28,033.51

y = 2x - 301.26

y = 2(28,033.51) - 301.26

y = 56,067.02 - 301.26

y = $ 55,765.76 <====== new car cost

7 0
3 years ago
A film crew is filming an action movie, where a helicopter needs to pick up a stunt actor
stealth61 [152]

Answer: |-30| + |25|

Step-by-step explanation:

6 0
3 years ago
Find an equation of the line parallel to the line 3x + 6y = 5 and passing through the point (1 , 3). Write the equation in the s
Nina [5.8K]

Answer:

I think that would be 3x+6y=21 sorry if I am wrong

Step-by-step explanation:

3 0
3 years ago
What are the factors of x^2-144?
Ksju [112]

Answer:

(x-12) (x+12)

Step-by-step explanation:

If you factor it out since both are perfect squares you would place an x on each side and then find the square root of 144, which is 12 and put a positive and a negative in each parenthesis.

9 0
3 years ago
Other questions:
  • What is the Slope intercept form for coordinates (0,-11) and (11/2,0)
    12·1 answer
  • Please tell me the answers for number 6 part a and b even though i did it
    5·1 answer
  • The recipe Mrs. Hilt is using 2 1/3 cups of flour. She only has a contianor that holds 1/3 of a cup. How many times should she f
    7·1 answer
  • How long would it take me to save up 1000 dollars if I make 20 dollars a week?
    12·1 answer
  • A circle is described by the equation x2 + y2 + 14x + 2y + 14 = 0. What are the coordinates for the center of the circle and the
    6·2 answers
  • WANT FREE 15 POINTS + BRAINLIEST? ANSWER THIS CORRECTLY AND I GOT YOU
    11·2 answers
  • What is 8 divide 1/5? <br> What is 8 divide by 1/5
    6·2 answers
  • The red figure is congruent to the blue figure. Complete the transformations so that the blue figure is the image of the red fig
    13·2 answers
  • HELP HELP HELP HELP <br><br> What is the equation of the trend line in the scatter plot ?
    9·1 answer
  • Please help lol, im a baka-_-
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!