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
Please help! ( ;v;)/
OleMash [197]

Answer:

C:40

Step-by-step explanatio:

c²=h²-c²

c²=58²-42²

√c²= √3364- 1764

C=√1600

c=40

3 0
3 years ago
Which fraction is between 0 and 1/2
Greeley [361]
A fraction between 0 and 1/2

What is smaller than 1/2?

Smaller than 0.5 is 0.3

0.3 = 1/3

A fraction smaller than 1/2 and bigger than 0 is 1/3

Final answer:        1/3 
5 0
4 years ago
Which of the following expressions is equivalent to the expression -5(3x + 8)
AveGali [126]

Answer:

d

Step-by-step explanation:

easy

6 0
3 years ago
What would this be how would I do it? Please help HELP HELP ASAP HELP
Svetllana [295]

For the given triangle, x = 8.6 cm.

Step-by-step explanation:

Step 1:

In the triangle, the given angle is 35°, the hypotenuse side's length is 15 cm. Assume the opposite side's length is x cm. To determine the opposite side's length, we determine the sin of the angle. To calculate the sin of an angle, we divide the opposite side's length by the hypotenuse's length.

sin\theta = \frac{oppositeside}{hypotenuse} .

Step 2:

The opposite side's length = x cm.

The hypotenuse side's length = 15 cm.

sin\theta = \frac{oppositeside}{hypotenuse}, sin35=0.5735, sin 35 = \frac{x}{15} ,

0.5299=\frac{x}{15}, x = 0.5735(15) =  8.6025

So x of the given triangle measures 8.6025 cm, rounding this off, we get 8.6 cm.

6 0
3 years ago
Identify the error in the student's work. Then, explain what they did wrong and give the correct answer.
lana66690 [7]
Everything is correct until they got to switching 55 instead of x<5 of that makes sense
8 0
3 years ago
Other questions:
  • Circle the letters of the parallel lines.
    9·1 answer
  • 8+5x-2=-14 what would x be?
    8·2 answers
  • How to convert 2.4 to radical form
    15·1 answer
  • If x3=-27 then what is x?
    9·2 answers
  • Eric randomly surveyed 150 adults from a certain city and asked which team in a contest they were rooting​ for, either North Hig
    11·1 answer
  • Please help me my test is almost over 14 points
    9·2 answers
  • Can you help me please ​
    14·1 answer
  • What are the x-intercepts of the function f(x) = -2x^2 - 3x + 20?
    9·2 answers
  • HELP ASAP NO LINKS PLS (OR THEY WILL BE REPORTED) SIMPLE ANSWER PLS
    12·2 answers
  • The lines of the equations are parallel, perpendicular, or neither. y = 2x + 3 y = 2x 1)parallel
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!