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
William runs at a constant speed of 8 miles per hour. Running at this constant speed, it takes William 75 seconds to run from hi
pav-90 [236]

Answer:

0.16 miles

Step-by-step explanation:

5 0
3 years ago
1) At a diner, the cost for a specialty waffle and a hashbrown is $9.50. The cost for 2 specialty
klemol [59]

9514 1404 393

Answer:

  • waffle $8
  • hashbrowns $1.50

Step-by-step explanation:

Using w and h for the costs of a waffle and hashbrowns, respectively, we can write the equations for the purchase amounts as ...

  w + h = 9.50

  2w + 3h = 20.50

Subtracting twice the first equation from the second gives ...

  (2w +3h) -2(w +h) = (20.50) -2(9.50)

  h = 1.50 . . . . . . simplify

  w = 9.50 -h = 8.00 . . . . . find w using the first equation

The cost of a waffle is $8.00; the cost of hashbrowns is $1.50.

4 0
3 years ago
1. Find the mean for 2, 5, 9, 4
Reil [10]

Answer:

Answer 1. 5     Answer 2. 60   Answer 3. 37

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Jerry goes to a theme park to ride the roller coasters. The theme park charges an entry fee in addition to a fee for each roller
ratelena [41]
You start with: (assuming x equals the cost to enter and y the cost of going on the rollercoasters.)
x+5y=35
x+11y=59. Multiply the top equation by -1, and subtract the equations, giving you -6y=-24, divide by -6 into both sides of the equation, to get y=4. Now replace y in one of the original equations (I recommend x+5y=35) and solve for x, giving you x=15 

The cost for entering is 15 dollars, while each coaster is 4 dollars more. You could simplify this by changing y into x and making it slope-intercept form, to track your cost. y=4x+15, so it has a slope of 4, and a y-intercept of 15. This answer should give you a good grade on a test. 
7 0
3 years ago
How do you solve 58 and 1/3÷6 and 2/3
strojnjashka [21]

Answer:

35/4, or 8 3/4 as a mixed number

Step-by-step explanation:

First, change 58 1/3 into an improper fraction by multiplying the whole number and denominator, then adding the numerator. 58 x 3 equals 174, + 1 equals 175. So, 58 1/3 as an improper fraction is 175/3. Next, change 6 2/3 into an improper fraction. 6 times 3 equals 18, plus 2 equals 20. So, it's 20/3. So, here are your two fractions:

175/3 & 20/3

To divide fractions, I like to use a method called Keep Change Flip. Basically, you keep the first fractions the same, then change the sign. The division sign changes into a multiplication symbol. Now, your equation should look like this: 175/3 x 20/3. Next, flip the fraction from 20/3 into 3/20. This is what your equation should look like now: 175/3 x 3/20. Now you can multiply the fractions together. Before you do so, you can cross reduce to make it easier. What is a number that both 3 and 3 can be divided by? The correct answer is 3. 3/3= 1, so the equation is now 175/1 x 1/20. However, you can continue to cross reduce. You can also divide 175 and 20 by 5, so the equation changes into this: 35/1 x 1/20. Multiply numerator by numerator, denominator by denominator. So, the answer is 35/4, or 8 3/4 as a mixed number. Hope this helped!

5 0
3 years ago
Other questions:
  • A ball's position, in meters, as it travels every second is represented by the position function s(t) = 4.9t2+ 350. Include unit
    8·1 answer
  • Simiplify.<br> U^2 - 4 / U^2 - 2u
    12·2 answers
  • 36 pennies to 72 pennies
    10·1 answer
  • Write an addition equation that can help you find 9 - 6. Explain your answer
    8·2 answers
  • A football stadium holds 52,000 fans. A college student is doing research and determines that on any given game day, the home te
    13·1 answer
  • a cellphone company charges $49.99 per month plus 10 cents for texting. write and solve an equation to determine how many texts
    9·1 answer
  • Write the Quadratic Formula.
    5·2 answers
  • What is the answer for 2/3 plus 4 equals 7 make this into an equation
    15·1 answer
  • Gertrude has a life insurance policy that will pay her family $97,000 per year if
    5·2 answers
  • Help me with this problem, thanks​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!