subject
Mathematics, 27.03.2020 04:11 GreenHerbz206

You have mined a large slab of marble from a quarry. For simplicity, suppose the marble slab is a rectangle measuring n inches in height and m inches in width. You want to cut the slab into smaller rectangles of various sizes - some for kitchen counter tops, some for large sculpture projects, others for memorial headstones. You have a marble saw that can make either horizontal or vertical cuts across any rectangular slab. At any time, you can query the spot price P[x, y] of an x-inch by y-inch marble rectangle, for any positive integers x and y. These prices depend on customer demand, and people who buy marble counter tops are weird, so don’t make any assumptions about them; in particular, larger rectangles may have significantly smaller spot prices. Given the array of spot prices and the integers m and n as input, design a dynamic programming algorithm to compute how to subdivide an n × m marble slab to maximize your profit. Your solution must output both the maximum profit as well as the sequence of cuts necessary to obtain that profit. A sequence of cuts can be described as a sequence of tuples (V, x, ymin, ymax) for vertical cuts, (H, y, xmin, xmax) of horizontal cuts. For example, the rectangle depicted below has been subdivided via the sequence of cuts [(V, 10, 0, 13),(H, 8, 0, 10),(V, 4, 0, 8)]

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 18:00
On saturday a souvenir shop had 125 customers.sixty four percent of the costumers paid with a credit card. how many costumers paid with cash?
Answers: 1
question
Mathematics, 21.06.2019 22:30
Given the system of equations presented here: 2x + 4y = 14 4x + y = 20 which of the following actions creates an equivalent system such that, when combined with the other equation, one of the variables is eliminated? multiply the second equation by â’4 to get â’16x â’ 4y = â’80 multiply the second equation by â’1 to get â’4x â’ y = â’20 multiply the first equation by 2 to get 4x + 8y = 28 multiply the first equation by â’1 to get â’2x â’ 4y = â’14
Answers: 1
question
Mathematics, 22.06.2019 00:30
What should be done to both sides of the equation in order to solve -5m = -40? a) multiply by -5. b) divide by -5. c) multiply by -40. d) divide by -40.
Answers: 2
question
Mathematics, 22.06.2019 00:30
Which equation represents h for right triangle abc
Answers: 3
You know the right answer?
You have mined a large slab of marble from a quarry. For simplicity, suppose the marble slab is a re...
Questions
question
Biology, 15.09.2021 21:00
question
Biology, 15.09.2021 21:00
question
Mathematics, 15.09.2021 21:00
question
Mathematics, 15.09.2021 21:00
Questions on the website: 13722363