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
The real power delivered by a source to two impedances, ????1=4+????5⁡Ω and ????2=10⁡Ω connected in parallel, is 1000 W. Determi
kirza4 [7]

Answer:

The question is incomplete, below is the complete question

"The real power delivered by a source to two impedance, Z1=4+j5⁡Ω and Z2=10⁡Ω connected in parallel, is 1000 W. Determine (a) the real power absorbed by each of the impedances and (b) the source current."

answer:

a. 615W, 384.4W

b. 17.4A

Explanation:

To determine the real power absorbed by the impedance, we need to find first the equivalent admittance for each impedance.

recall that the symbol for admittance is Y and express as

Y=\frac{1}{Z}

Hence for each we have,  

Y_{1} =1/Zx_{1}\\Y_{1} =\frac{1}{4+j5}\\converting to polar \\  Y_{1} =\frac{1}{6.4\leq 51.3}\\  Y_{1} =(0.16 \leq -51.3)S

for the second impedance we have

Y_{2}=\frac{1}{10}\\Y_{2}=0.1S

we also determine the voltage cross the impedance,

P=V^2(Y1 +Y2)

V=\sqrt{\frac{P}{Y_{1}+Y_{2}}}\\

V=\sqrt{\frac{1000}{0.16+0.1}}\\ V=62v

The real power in the impedance is calculated as

P_{1}=v^{2}G_{1}\\P_{1}=62*62*0.16\\ P_{1}=615W

for the second impedance

P_{2}=v^{2}*G_{2}\\   P_{2}=62*62*0.1\\384.4w

b. We determine the equivalent admittance

Y_{total}=Y_{1}+Y_{2}\\Y_{total}=(0.16\leq -51.3 )+0.1\\Y_{total}=(0.16-j1.0)+0.1\\Y_{total}=0.26-J1.0\\

We convert the equivalent admittance back into the polar form

Y_{total}=0.28\leq -19.65\\

the source current flows is

I_{s}=VY_{total}\\I_{s}=62*0.28\\I_{s}=17.4A

6 0
3 years ago
5 kg of a wet steam has a volume of 2 m3
Verizon [17]
Have you seen the state of her body. Mad. If I wear it I ain’t wearing a jolly. ADEOLA wanna ride in the gysa
4 0
3 years ago
thermodynamics A nuclear power plant based on the Rankine cycle operates with a boiling-water reactor to develop net cycle power
IrinaK [193]

Answer:

(a) the percent thermal efficiency is 27.94%

(b) the temperature of the cooling water exiting the condenser is 31.118°C

Explanation:

3 0
3 years ago
THE MASS FOR OBJECT 1 is 107.01 grams what is the objects force in Newton’s answer please
Aleksandr [31]

Given that,

Mass of the object 1, m = 107.01 grams

To find,

Force on the object.

Solution,

The force acting on the object is gravitational force. The force is given by the formula as follow :

F = mg

g is acceleration due to gravity

F = 0.10701 kg × 9.8 m/s²

F = 1.048 N

So, the force acting on object 1 is 1.048 N.

5 0
3 years ago
Động cơ không đồng bộ 3 pha là gì
Tems11 [23]

Answer:

uhhhhhhh lemme think

Explanation:

7 0
3 years ago
Other questions:
  • DNA isolated from water samples collected in six different sites was prepared and analyzed by gel electrophoresis for the presen
    12·1 answer
  • The in situ moist unit weight of a soil is 17.3 kN/m3 and the moisture content is 16%. The specific gravity of soil solids is 2.
    12·1 answer
  • A 11.5 nC charge is at x = 0cm and a -1.2 nC charge is at x = 3 cm ..At what position or positions on the x-axis is the electric
    5·1 answer
  • A cuboidal tank is half filled with water. By what percent will the hydrostatic force on one of the vertical sides of the tank i
    15·1 answer
  • What should you consider when choosing the type of hearing protection you use?
    15·1 answer
  • An aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 30 . It has been determ
    5·1 answer
  • PLEASE PLEASE PLEASE HELP
    9·1 answer
  • The safest hammers are those with heads that are?
    14·1 answer
  • During a storm, gage station A was inoperative but the surrounding stations, B, C, and D, recorded rainfall of 5.2, 4.5, and 6.1
    14·1 answer
  • What year did Vidal Sassoon come to America ?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!