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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
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
question
Mathematics, 09.12.2019 06:31
question
Mathematics, 09.12.2019 06:31
question
Mathematics, 09.12.2019 06:31
Questions on the website: 13722360