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]
2 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]2 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
A cylindrical metal specimen having an original diameter of 12.8 mm and gauge length of 50.80 mm is pulled in tension until frac
Sedaia [141]

Answer:

%Reduction in area = 73.41%

%Reduction in elongation = 42.20%

Explanation:

Given

Original diameter = 12.8 mm

Gauge length = 50.80mm

Diameter at the point of fracture = 6.60 mm (0.260 in.)

Fractured gauge length = 72.14 mm.

%Reduction in Area is given as:

((do/2)² - (d1/2)²)/(do/2)²

Calculating percent reduction in area

do = 12.8mm, d1 = 6.6mm

So,

%RA = ((12.8/2)² - 6.6/2)²)/(12.8/2)²

%RA = 0.734130859375

%RA = 73.41%

Calculating percent reduction in elongation

%Reduction in elongation is given as:

((do) - (d1))/(d1)

do = 72.14mm, d1 = 50.80mm

So,

%RA = ((72.24) - (50.80))/(50.80)

%RA = 0.422047244094488

%RA = 42.20%

3 0
4 years ago
Low-level coding means that...
svet-max [94.6K]

Answer:

a.) a component item is coded at the lowest level at which it appears in the BOM structure is the correct answer.

Explanation:

  • Low-level coding is a kind of programming language used in BOM structures and it carries basic commands that are identified by a computer.
  • The two types of low-level coding are
  • Assembly language.
  • machine language.
  • The advantages of using low-level coding are programs develop by using low-level code are very memory effective and quick and there no need to use interpreters for the conversion of the source to machine code.
7 0
4 years ago
What is a material safety data sheet? A. a categorized list of hazardous substances in an industry B. a document with safety inf
horsena [70]

Answer: A.

Explanation:

safety data sheet are documents that list information relating to occupational safety and health for the use of various substances and products.

3 0
3 years ago
Please help me I need to answer this problem
Norma-Jean [14]

Answer:

f

Explanation:

7 0
3 years ago
If the stopping sight distance required to avoid colliding with a fallen boulder on a mountain pass is 800 feet, what is the lik
Anettt [7]

Answer:

Grade is 10.32%

Explanation:

Given data:

stopping side distance is 800ft

t = 2.5 sec

design speed v = 65 miles/hr

a/g value is 0.35

stopping side distance is SSD

SSD = 1.47 vt + \frac{v^2}{30(a/g - G}

plugging all value for G

800 = 1.47 \times 65\times 2.4 + \frac{65^2}{30(0.35 -G)}

800 - 229.32 = \frac{65^2}{30(0.35 -G)}

570.68 = \frac{65^2}{30(0.35 -G)}

G = 0.1032

Grade is 10.32%

5 0
4 years ago
Other questions:
  • What are the factors of production in business? Land, labor, and capital land, capital, and interest land, labor, and customer b
    10·2 answers
  • Calculate the equivalent capacitance of the three series capacitors in Figure 12-1 A) 0.060 uF B) 0.8 uF C) 0.58 uF D) 0.01 uF
    12·1 answer
  • Help pls I don’t understand the question.
    9·1 answer
  • Drivers killed in speed related accidents usually have a history of_______
    8·2 answers
  • Which of the following units of measurement is denoted by a single apostrophe mark (')?
    6·1 answer
  • A. A compound gear train is composed of four gears: E,F,G,H. Gear E has 15 teeth and is meshed with gear F. Gear F has 25 teeth
    11·1 answer
  • What are the disadvantages of having a liquid cooled engine?
    5·1 answer
  • Showing or hiding records in a database is called “filtering.”<br> True<br> False
    8·2 answers
  • As you have learned, not all motor oils are the same. What are two things that make them different?.
    11·1 answer
  • A bridge a mass of 800 kg and is able to support up to 4 560 kg. What is its structural efficiency?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!