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 19:30
Plz.yesterday, the snow was 2 feet deep in front of archie’s house. today, the snow depth dropped to 1.6 feet because the day is so warm. what is the percent change in the depth of the snow?
Answers: 1
question
Mathematics, 22.06.2019 04:20
6. tim is trying to study but hours go by and he doesn't get anything done. what time management advice would tim? work in smaller chunks of time an hour or less whenever you have a few minutes to spare. create flashcards. talk to your instructor right away and make a plan together for how you can get back on track, take scheduled breaks only or allow yourself only 5-10 minute breaks find somewhere quiet like a library or school to study tum off your phone and/or tell others you are busy
Answers: 2
question
Mathematics, 22.06.2019 04:30
Of the total number of spectators at a circus show, 1/4 are men. 2/5 of the remaining number of spectators are women. there are 132 women at the circus show. how many children are at the circus show?
Answers: 2
question
Mathematics, 22.06.2019 05:30
Mandy and four of her friends want to see a movie. if m represents the cost for one person to see a movie, which expression represents the cost for mandy and her friends to see a movie?
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