subject

Your friend is working as a camp counselor, and he is in charge of organizing activities fora set of junior-high-school-age campers. One of his plans is the following mini-triathlonexercise: each contestant must swim 20 laps of a pool, then bike 10 miles, then run 3miles. The plan is to send the contestants out in a staggered fashion, via the followingrule: the contestants must use the pool one at a time. In other words, first one contestantswims the 20 laps, gets out, and starts biking. As soon as this first person is out of thepool, a second contestant begins swimming the 20 laps; as soon as he or she is out andstarts biking, a third contestant begins swimming . . . and so on.

Each contestant has a projectedswimming time(the expected time it will take himor her to complete the 20 laps), a projectedbiking time(the expected time it will takehim or her to complete the 10 miles of bicycling), and a projectedrunning time(thetime it will take him or her to complete the 3 miles of running). Your friend wants todecide on aschedulefor the triathlon: an order in which to sequence the starts of thecontestants. Let’s say that thecompletion timeof a schedule is the earliest time at whichall contestants will be finished with all three legs of the triathlon, assuming they eachspend 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 personcan be in the pool at any time.) Whats the best order for sending people out, if one wantsthe whole competition to be over as early as possible? More precisely, give an efficientalgorithm that produces a schedule whose completion time is as small as possible.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, tristina20
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
image
Computers and Technology, 23.06.2019 08:00, hernandez09297
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
image
Computers and Technology, 23.06.2019 19:40, Latoyajenjins1789
Use a physical stopwatch to record the length of time it takes to run the program. calculate the difference obtained by calls to the method system. currenttimemillis() just before the start of the algorithm and just after the end of the algorithm. calculate the difference obtained by calls to the method system. currenttimemillis() at the start of the program and at the end of the program so that the elapsed time includes the display of the result. use the value returned by the method system. currenttimemillis() just after the end of the algorithm as the elapsed time.
Answers: 3
image
Computers and Technology, 24.06.2019 00:30, bsonicx
The best definition of an idiom is a. a word or phrase that describes a noun b. a word or phrase describing a verb c. a phrase containing figurative language in which the word expresses a different idea from its exact meaning d. a phrase that compares two unlike objects or ideas
Answers: 2
You know the right answer?
Your friend is working as a camp counselor, and he is in charge of organizing activities fora set of...

Questions in other subjects:

Konu
Spanish, 13.07.2019 17:30
Konu
Computers and Technology, 13.07.2019 17:30