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
Lisa went to the hardware store and bought 12 pieces rope. Each rope was 34 of a meter long. If the rope cost $3.50 a meter, how
andrew11 [14]
One rope = 34m
12 ropes = 34 x 12 = 408m
Total cost = $3.50 x 408 = $1428
7 0
3 years ago
Izzys dog is 10 1/2 years old. Car end dog is 18 months old. How many years older is Izzys dog.
dsp73
12 months in a year. So 18 months= 1 year and 6 months. Izzys dog is 10 1/2= 10 years and six months. Then subtract 1 year and 6 months by 10 year and six months and it would be exactly 9 years older.
6 0
3 years ago
Solve the following system of equations by substitution. Show all steps.
Alinara [238K]

Answer:

Given system of equations:

\begin{cases}f(x)=-x^2+2x+3\\g(x)=-2x+3\end{cases}

To solve by substitution, equate the equations and solve for x:

\begin{aligned}f(x) & = g(x)\\\implies -x^2+2x+3 & = -2x+3\\-x^2+4x & = 0\\x^2-4x & = 0\\x(x-4) & = 0\\\implies x & = 0\\\implies x-4 & = 0 \implies x=4\end{aligned}

Therefore, the x-values of the solution are x = 0 and x = 4.

To find the y-values of the solution, substitute the found values of x into the functions:

f(0)=-(0)^2+2(0)+3=3

g(0)=-2(0)+3=3

f(4)=-(4)^2+2(4)+3=-5

g(4)=-2(4)+3=-5

Therefore, the solutions to the given system of equations are:

(0, 3) and (4, -5)

4 0
2 years ago
Help me please i don’t know the answer
FromTheMoon [43]

Answer:

its12

Step-by-step explanation:

7 0
2 years ago
Read 2 more answers
Translate the sentence into an equation. Five more than the product of a number and 9 is equal to 6
kap26 [50]
The first thing we will do for this case is to define the following variable:
 x = real number.
 We then have the following sentence:
 "Five more than the product of a number and 9 is equal to 6"
 The equation sought is:
 9x + 5 = 6
 Answer:
 
An equation for the sentence is:
 
9x + 5 = 6
6 0
3 years ago
Other questions:
  • The mathematical equation relating the independent variable to the expected value of the dependent variable; that is, e(y) = ?0
    5·1 answer
  • Damon is shooting 2 free throws. The probability that Damon will make a free throw is 80%.
    12·1 answer
  • Lucy does the following problem incorrectly. Explain the error and redo the problem showing the correct answer. Lucy’s answer -1
    7·1 answer
  • What is the Gcf of 6x^3?
    7·1 answer
  • What would the variable table be?
    14·2 answers
  • Which is the "The sum of 4 times a number and 7" as an algebraic expression?
    5·2 answers
  • Ten subtracted from a number if the difference is 30 what was the orginal number​
    11·1 answer
  • Plz help will mark brainliest plz!!
    13·1 answer
  • (11-3²) ×5 <br> (Nnmbkmbnnbhmbmnhnbbb , these r jus letters to completea 20 letters qs at least lol
    5·1 answer
  • What mass of solid that has a molar mass of 89.0 g/mol should be added to 100.0 g of benzene to raise the boiling point of benze
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!