Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. This question is about dynamic programming. You are given a pole of length no, which can be cut into any number of smaller poles.

image text in transcribed
1. This question is about dynamic programming. You are given a pole of length no, which can be cut into any number of smaller poles. The value of a pole of length i is given by vi), according to the following table: Length i value (0) 1 3 2 5 3 11 4 14 5 16 6 19 7 20 8 24 9 28 10 28 The maximum revenue r(i) for a pole of length i is the maximum amount of value that can be achieved from the pole, perhaps by cutting it into pieces and summing the values of the pieces. (a) What is the maximum revenue for a pole of length 2? [2 marks] (b) What is the maximum revenue for a pole of length 3? [2 marks] (c) (d) Give a recurrence relation that gives the maximum revenue r(k) in terms of smaller sub-problems, or as a base case. [8 marks] Using your recurrence relation from part (c), calculate the table needed to find r(10), the maximum revenue for a pole of length 10. [10 marks) What length pieces could a pole of length 10 be cut into to obtain the maximum revenue? Give one solution that leads to the maximum revenue. [3 marks) (e)

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

What are the pros and cons regarding Angelica joining the union?

Answered: 1 week ago

Question

3 How supply and demand together determine market equilibrium.

Answered: 1 week ago