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 n>0, 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 n>0, which can be cut into any number of smaller poles. The value of a pole of length / is given by v(0), according to the following table: von N 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] (6) What is the maximum evenue for a pole of length 3? [2 marks] (C) Give a recurrence relation that gives the maximum revenue r(k) in terms of smaller sub-problems, or as a base case. [8 marks) (d) 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] (e) 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)

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_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

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions