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
disa [49]
3 years ago
11

You are given a rectangular piece of cloth with dimensions X by Y, where X and Y are positive integers, and a list of n products

that can be made using the cloth. For each product i in [1,n] you know that a rectangle of cloth of dimensions ai by bi is needed and that the final selling price of the product is ci. Assume that ai, bi, and ci are all positive integers. You have a machine that can cut any rectangular piece of cloth into two pieces either horizontally or vertically. Design an algorithm that finds the best strategy for cutting an X by Y piece of cloth so that the products made from the resulting pieces give the maximum sum of selling prices. You are free to make as many copies of a given product as you wish, or none if desired. How can i prove that the recursion is exponential and that dynamic programming is polynomial
Engineering
1 answer:
Bond [772]3 years ago
3 0

The proof that recursion is exponential and that dynamic programming is polynomial is given by the formula;

P(x,y) = max{

P(x,y)

max (1 <= h <= X) { P[h, Y] + P(X - h, Y) }

max (1 <= v <= Y) { P[X, v] + P[X, Y - v] }

}

To prove that the recursion is exponential and that dynamic programming is polynomial. we will do so as follows;

Let us first have the assumption that the cloth is in such a manner that  either way, a product can be oriented. This implies that that after a cut, we will now have two pieces of cloth.

Now, we will make a list of the side lengths of the products that can fit in the piece after which we will consider a vertical cut for each of the side length as well as a horizontal cut for each of the side length, then we apply the same algorithm to each of the two resulting pieces.  

Thus, after the point above, it is likely true that in some instances, there may be a place to cut that is not at a product side length. However, It might be better for us to make a list of lengths composed of one or more pieces side by side as long as the sum is less than the length of the side being considered.

 

Lastly, we would note that this recursive approach is not limited to just two -dimensional problems as It could also be applied to a single or more than two dimensions. A useful proof would be to prove it for one dimension, then assuming it is true for n dimensions, prove it is true for n + 1 dimensions.

Thus;

P(x,y) = max{

P(x,y)

max (1 <= h <= X) { P[h, Y] + P(X - h, Y) }

max (1 <= v <= Y) { P[X, v] + P[X, Y - v] }

}

Read more at; brainly.com/question/11665190

You might be interested in
Using the AASHTO 1993 Flexible Pavement Design Procedure, design a pavement cross section that will provide 10 years service. Th
natali 33 [55]

Answer:

Check the explanation

Explanation:

Single Unit Truck ESAL = 43.38 + 5.16 = 48.54

Semi Unit Truck ESAL = 43.38+ 6.00+7.4 = 56.78

So total ESAL's during design life = (400*48.54 + 350*56.78)*365*10/18000 = (19416+19873)*3650= 3939

Kindly check the attached image

Here

Reliability = 95% = 0.95, therefore ZR = -1.645, S0 = 0.4, MR = 18

Delta PSI = 4.2-2.5= 1.7

Resilient Modulus = 18000 psi, So MR = 18

Assume SN = 3.0 for flexible pavements

There W18 calculates to 0.26807

So

log10 (3939) = 9.36*log10(SN+1) -.2/(.4+1094/(SN+1)5.19)) -6.01

Structural Number SN = a1*d1 + a2*d2 *m2 +a2*d3 *m3

= a1*d1 + a2*d2 +a2*d3

5 0
3 years ago
Creating vacancies in ceramics. Consider doping ZrO2 with small concentrations of Nb205. The valence of Nb is 5. Assume that Nb
Murljashka [212]

Answer:

Creating vacancies in ceramics. Consider doping ZrO₂ with small concentrations of Nb205. The valence of Nb is 5. Assume that Nb ions sit in Zr ion sites

a. A substitutional defect will be produced.

b. With this dopping, the Nb increases electron band conduction and decreases oxygen anion conduction in ZrO₂.

Explanation:

(a) The defect produced by dopping a little concentration of Nb₂O5 with Nb in the +5 charge state is known as a substitutional defect.

(b) With this dopping, the Nb increases electron band conduction and decreases oxygen anion conduction in ZrO₂.

Moreover, if oxygen vacancies are rate-limiting defect, the corrosion of ZrO₂ decreases and if electrons are rate-limiting then the corrosion of ZrO₂ is accelerated.

7 0
4 years ago
Consider a solid circular shaft subjected to bending and torsion so that the state of stress of interest involves only a normal
Alex17521 [72]

Answer:

The detailed explanation of answer is given in attached file.

Explanation:

7 0
4 years ago
The high-pressure fuel pumps used in gasoline direct-injection (GDI) systems are powered by ________.
lidiya [134]

Answer:

Camshaft

Explanation:

5 0
3 years ago
Saturated liquid water at 150 F is put under pressure to decrease the volume by 1% while keeping the temperature constant. To wh
Romashka-Z-Leto [24]

Answer:

Between 5 & 10 MPa in Table B.1.4

Explanation:

150F = 65°C

State 1:

T = 65°C , x = 0.0; Table B.1.1: v = 0,001020 m^3 /kg

Process: T = constant = 65°C

State 2:

T, v = 0.99 x v f (65°C)  = 0.99 x 0,001020 = 0.0010098 m^3 /kg

Between 5 & 10 MPa in Table B.1.4

5 0
3 years ago
Other questions:
  • A multistage pump is required to deliver water to a head of 50 m at flow rate of 0.1 m^3/s. A motor rotating at 1800 rpm is avai
    8·1 answer
  • A fluid of density 1400 kg/m^3 and viscosity of 0.9 kg/m.s flows through an 80 mm diameter pipe with a velocity of 5 m/s. What t
    6·1 answer
  • What is 12 cm theodolite​
    8·2 answers
  • What type of siege engines were used by Saladin to capture Jerusalem in 1187?
    8·1 answer
  • Which of the following activities could be considered unethical?
    7·1 answer
  • 30 points and brainiest if correct please help A, B, C, D
    15·1 answer
  • A 550 kJ of heat quantity needed to increase water temperature from 32°C to 80°C. Calculate the mass
    8·1 answer
  • A fill covering a wide area is to be placed at the surface of this profile. The fill has a total unit weight of 20 kN/m^3 and is
    11·1 answer
  • What Advantage does a voltmeter have over a noncontact voltage indicator when testing for voltage
    15·1 answer
  • Optimum engine oil pressure at operating temperature and moderate engine load should be __________ ps
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!