Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The formulation of the problem is as follows: Given a rod of length n inches and a table of prices p, for i =

The formulation of the problem is as follows: Given a rod of length n inches and a table of prices p, for i = 

The formulation of the problem is as follows: Given a rod of length n inches and a table of prices p, for i = 1, 2, ...,n, determine the maximum revenue r obtainable by cutting up the rod and selling the pieces. Note that if the price pn for a rod of length n is large enough, an optimal solution may require no cutting at all. a) Formulate this problem using sub problems. b) Analyse the sub-problems and comment on whether the sub-sub-problems of those sub-problems overlap or not. 10 length, i1 2 3 4 5 6 7 8 9 price, p 1 5 8 10 14 8 9 7 4 13 Table 1: Length and associated price for an instance of a rod cutting problem c) For the instance of the rod-cutting problem given in Table 1, can you find an optimal solution? Build a dynamic-programming table and analyse that table to find the optimal solution. You can write necessary code to build the table. Include the table in your report. d) Does the following "greedy" strategy work for the instance of the rod-cutting problem given in Table 1? Define the density of a rod of length i to be p/i, that is, its value per inch. The greedy strategy ctivate Win for a rod of length n cuts off a first piece of length i, where 1 i n, having maximum density. Go to Settings to It then continues by applying the greedy strategy to the remaining piece of length n - i.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

a Formulation using Subproblems The rodcutting problem can be formulated using subproblems as follows Subproblem Determine the maximum revenue obtaina... 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_2

Step: 3

blur-text-image_3

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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Algorithms questions