Question: Problem 2 . ( Kleinberg and Tardos, Chapter 4 , Problem 6 ) Your friend is working as a camp counselor, and he is in
Problem Kleinberg and Tardos, Chapter Problem Your friend is working as a camp counselor, and he is in charge of organizing activities for a set of juniorhighschoolage campers. One of his plans is the following minitriathalon exercise: each contestant must swim laps of a pool, then bike miles, then run miles. The plan is to send the contestants out in a staggered fashion, via the following rule: the contestants must use the pool one at a time. In other words, first one contestant swims the laps, gets out, and starts biking. As soon as this first person is out of the pool, a second contestant begins swimming the laps ; as soon as heshes out and starts biking, a third contestant begins swimming and so on Each contestant has a projected swimming time the expected time it will take him or her to complete the laps a projected biking time the expected time it will take him or her to complete the miles of bicycling and a projected running time the time it will take him or her to complete the miles of running Your friend wants to decide on a schedule for the triathalon: an order in which to sequence the starts of the contestants. Let's say that the completion time of a schedule is the earliest time at which all contestants will be finished with all three legs of the triathalon, assuming they each spend exactly their projected swimming, biking, and running times on the three parts. Again note that participants can bike and run simultaneously, but at most one person can be in the pool at any time. What's the best order for sending people out, if one wants the whole competition to be over as early as possible? More precisely, give an efficient algorithm that produces a schedule whose completion time is as small as possible. Prove the optimality of your algorithm using the exchange argument method.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
