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 17:00
You have $600,000 saved for retirement. your account earns 5.5% interest. how much, to the nearest dollar, will you be able to pull out each month, if you want to be able to take withdrawals for 20 years?
Answers: 1
question
Mathematics, 21.06.2019 17:30
Which is the equation of a line perpendicular to the line with the equation 3x+4y=8
Answers: 1
question
Mathematics, 21.06.2019 20:00
Sarah took the advertising department from her company on a round trip to meet with a potential client. including sarah a total of 11 people took the trip. she was able to purchase coach tickets for $280 and first class tickets for $1280. she used her total budget for airfare for the trip, which was $6080. how many first class tickets did she buy? how many coach tickets did she buy?
Answers: 1
question
Mathematics, 22.06.2019 00:00
Y=21.95x+10 y=22.45x solve by substitution
Answers: 1
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
English, 30.11.2020 01:00
question
English, 30.11.2020 01:00
question
Biology, 30.11.2020 01:00
question
English, 30.11.2020 01:00
Questions on the website: 13722361