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
Do all triangles have a hypotenuse, or only right triangles have a hypotenuse?
Nadusha1986 [10]
Only Right triangles
8 0
3 years ago
Read 2 more answers
Help please, not sure how to do this...​
olga nikolaevna [1]

Answer:

8.38

Step-by-step explanation:

The underlined number is in the hundredths place, so that means that we're going to round there. That means that you look at the number to its right and if it's lower than 5, it stays the same. However, if it's 5 or higher, you round it up. For example, if the number was 8.386, we would round it to 8.39.

5 0
3 years ago
Which is the best prediction for the number of pages in a chapter that takes 18 minutes to read?
mario62 [17]

Answer with explanation:

Time taken by a person to read number of pages in a chapter= 18 minutes

It is not given what is the length of the page.So,we can't say exactly  how many pages can a person read by completely understading what is written in each page in a chapter.

So, to fully understand each and every page in 18 minutes you can read minimum number of pages from the option given.

Option A:⇒ 15, is most appropriate.

9 0
3 years ago
Read 2 more answers
Expand each expression and collect like terms -3(2p-3q)
sertanlavr [38]

Answer

(-3 * 2p) - (-3 * 3q)

Step-by-step explanation:

I dunno how to explain it but that's it

7 0
2 years ago
a surf instructor has an initial fee of $12 and charges $8 per hour for lessons. Write a linear equation that represents the tot
Ray Of Light [21]

y = total cost

x = # of hours

$12 + $8x = y

8 0
3 years ago
Other questions:
  • A(3-x)=-2x+B if x=2 How do I find A and B what are the answers
    12·1 answer
  • The first bus route is 4 miles from school. How many yards is the first bus stop from school?
    13·2 answers
  • What is the length of a segment in the complex plane with endpoints at 4 + 2i and 7 – 2i?
    7·2 answers
  • How many integers between 1000 and 2000 have all three of the numbers 15,20 and 25 as factors
    14·1 answer
  • An office clerk earns $120 for two 4 hour shifts. How much will she earn for 15 hours of work
    9·2 answers
  • What is the answer ?​
    9·2 answers
  • 0.9 ÷ 0.12
    9·1 answer
  • What is the area of a circle with a diameter of 8​
    7·1 answer
  • If Croakie trains really hard, he has a new routine, 8s + 7 + s that he would like to do. If each somersault is 6 feet long, how
    8·1 answer
  • The graph of 3x − 2y = -1 is shown on the grid. Which ordered pair is in the solution set of 3x − 2y ≥ -1?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!