Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

dit View Go Touls s Homework-7 (1 page) Highlight Rotate Markup re CIS 606 Homework 7 Spring 2018 (Due: Apr. 4) 1. You have a

image text in transcribed
dit View Go Touls s Homework-7 (1 page) Highlight Rotate Markup re CIS 606 Homework 7 Spring 2018 (Due: Apr. 4) 1. You have a long piece of steel bar which you wish to split into a number of shorter lengths. The cost of each cut is proportional to the length of the steel bar (say ten dollars per meter). This means that the order in which the cuts are made can make a large difference in the total cost. For example, suppose you have a 31-meter steel bar, and wish to cut it at points 5, 13, 17 and 24 meters from the left-hand end. If the cuts are made in left-to-right order, the first cuts costs 310 dollars and gives two smaller bars of lengths 5 and 26 meters. The second cut is made in the 26-meter length, and thus costs 260 dollars. The total cost of making the cuts in left-to-right order is then 310+260+180+ 140-890 dollar. In contrast, if the cuts are made in reverse order, the total cost is 3 10 + 240 + 7+130 850 dollars. The problem can be formalized as follows. Given an integer length x, and the integer cutting points (where 1 s x,

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

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

More Books

Students also viewed these Databases questions