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
Agraph of a trapezoid can have diagonals with slopes that are negative reciprocals and two pairs of adjacent sides that are congruent, true or false, and why
Answers: 1
question
Mathematics, 21.06.2019 20:00
Aclothing store has the sign shown in the shop window. pani sees the sign and wants to buy 3 shirts and 2 pairs of jeans. the cost of each shirt before the discount is $12, and the cost of each pair of jeans is $19 before the discount. write and simplify an expression to find the amount pani pays if a $3 discount is applied to her total
Answers: 2
question
Mathematics, 21.06.2019 22:20
Factor and solve to find roots x squared -x - 90 =0
Answers: 1
question
Mathematics, 21.06.2019 22:30
Gabrielle's age is two times mikhail's age. the sum of their ages is 84. what is mikhail's age?
Answers: 2
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
Mathematics, 04.07.2019 02:50
Questions on the website: 13722363