Computers and Technology

You are consulting for a trucking company that does a large amount ofbusiness shipping packages between new york and boston. the volume ishigh enough that they have to send a number of trucks each day betweenthe two locations. trucks have a fixed limit w on the maximum amountof weight they are allowed to carry. boxes arrive at the new york stationone by one, and each package i has a weight wi. the trucking stationis quite small, so at most one truck can be at the station at any time. company policy requires that boxes are shipped in the order they arrive; otherwise, a customer might get upset upon seeing a box that arrivedafter his make it to boston faster. at the moment, the company is usinga simple greedy algorithm for packing: they pack boxes in the order theyarrive, and whenever the next box does not fit, they, send the truck on itsway. but they wonder if they might be using too many trucks, and theywant your opinion on whether the situation can be improved. here ishow they are thinking. maybe one could decrease the number of trucksneeded by sometimes sending off a truck that was less full, and in thisway allow the next few trucks to be better packed. prove that, for a given set of boxes with specified weights, the greedyalgorithm currently in use actually minimizes the number of trucks thatare needed. your proof should follow the type of analysis we used forthe interval scheduling problem: it should establish the optimality of thisgreedy packing algorithm by identifying a measure under which it "staysahead" of all other solutions.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, alyssatamayo641
Speed is how fast an object moves a certain distance within a length of time. how is speed calculated? a) distance/time b) time/distance c) velocity/time d) distance x time
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, hannahliebl2000
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
image
Computers and Technology, 24.06.2019 02:00, ishmael9332
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, noahmace
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
Do you know the correct answer?
You are consulting for a trucking company that does a large amount ofbusiness shipping packages betw...

Questions in other subjects:

Konu
Biology, 05.11.2020 01:20
Konu
Spanish, 05.11.2020 01:20
Konu
Social Studies, 05.11.2020 01:20