Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given a rectangular piece of cloth with dimensions x Y , where x and Y are positive integers, and a list of n

You are given a rectangular piece of cloth with dimensions xY, where x and Y are positive
integers, and a list of n products that can be made using the cloth. For each product iin[1,dots,n] you know that a rectangle of cloth of dimensions aibi is needed and that the final selling price of the product is ci. Assume the 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 a dynamic programming algorithm that determines the best return on the xY piece of cloth, that is, a strategy for cutting the 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. Write the definition, base case, solution and formula.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago

Question

How do members envision the ideal team?

Answered: 1 week ago