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 of the following sequences of transformation is used to obtain figure A’B’C’D’ from ABCD?
weeeeeb [17]

Answer:

Most likely (B)

Step-by-step explanation:

Points of ABCD:

A (3,1)

B (3,4)

C (5,5)

D (5,2)

The algebraic rule for reflecting across the y axis:

(x,y) ---> (-x, y)

Points of ABCD after being reflected: (shown by figure 2)

A (-3, 1)

B (-3, 4)

C (-5, 5)

D (-5, 2)

Then, the figure got translated two units to the left, resulting in figure F in the picture, and A’B’C’D’ in the question.

Points of ABCD after being translated by (x-2, y) : (shown by figure F)

A (-5, 1)

B (-5, 4)

C (-7, 5)

D (-7, 2)

This should be the coordinates of A’B’C’D’.

7 0
4 years ago
Find the value of 7+c when c=18.
tankabanditka [31]

Answer:

7 + 18 = 25

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Which expression shows the area of the shaded part of the grid? A hundred grid model showing a 7 4 array shaded blue. A. 0.04 ×
aksik [14]

Answer:

C.\ Area = 0.4 * 0.7

Step-by-step explanation:

See attachment for grid

From the attachment:

There are 10 cells on the horizontal axis and there are also 10 cells on the vertical axis.

This implies that, the measurement of each cell is:

Each\ Cell = \frac{10}{10 * 10}

Each\ Cell = \frac{1}{10}

Each\ Cell = 0.10

The horizontal axis has 7 selected cells.

This measures

Horizontal = 7 * 0.10 = 0.70

The vertical axis has 4 selected cells.

This measures

Vertical = 4 * 0.10 = 0.40

So, the selected area is:

Area = Vertical * Horizontal

Area = 0.40 * 0.70

or

Area = 0.4 * 0.7

6 0
3 years ago
HELP ME PLEASE I WILL GIVE YOU A LIKE AN MARK YOU AS THE BEST ANSWER !!
oksian1 [2.3K]

Answer:it is the second diagram and it is 40 campers.

Step-by-step explanation:

4 0
3 years ago
H(x)=-2x-4,find h (-2)
Marizza181 [45]

Answer: -8

Step-by-step explanation:

Plug in -2 in h(x)=2x-4

h(-2)=2(-2)-4

       = -4-4

       = -8

6 0
3 years ago
Other questions:
  • Why did the paper rip when the student tried to stretch out the horizontal axis of his graph? Unscramble this letters to figure
    5·2 answers
  • G(n) = 3n - 3<br>f(n) = 2n - 4<br>Find g(-3) f(-3)​
    5·1 answer
  • Answer 1-9 please help i will give thanks or brainiest 10 points
    12·1 answer
  • A local health care company wants to estimate the mean weekly elder day-care cost. A sample of 10 facilities shows a mean of $25
    9·1 answer
  • 5.
    10·1 answer
  • If EG = 2u + 9 and EI = 5u - 48, find EI in parallelogram FGHI.
    12·1 answer
  • The following data represent the number of loaves of bread, in thousands, which were sold by various grocery stores in the month
    10·1 answer
  • okay guys so another question for user 8782 723 and also won't let me comment so if you see this question that's why I didn't co
    11·2 answers
  • Order the amount of rain from least to greatest
    5·1 answer
  • One angle of an isosceles triangle measures 78º. Which other angles could be in that
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!