subject

Your friend is working as a camp counselor and he is in charge of organizing activities for a set of junior high school age campers. One of his plans is the following mini-triathlon exercise.

Each contestant must jump into a swimming pool and swim 20 laps in the pool, then bike 10 kilometers, then run 5 kilometers. The plan is to send the contestants out in a staggered fashion, via the following rules. The contestants must use the pool one at a time, i. e., first, one contestant swims the 20 laps, gets out, and starts biking. As soon as this first person is out the pool, a second contestant begins swimming the 20 laps; as soon as the contestant is out and starts biking, a third contestant begins swimming, and so on.

Each contestant i has a projected swimming time si (the expected time it will take the contestant to complete the 20 laps), a projected biking time bi (the expected time it will take the contestant to complete the 10 kilometers of biking) and a projected running time ri (the time it will take the contestant to complete the 5 kilometers running) with 1 ≀ i ≀ n.

Your friend wants to make a schedule for the triathlon: an order in which to sequence the starts of the contestants. Let us 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 triathlon, assuming that they each spend exactly their projected swimming, biking, and running times on the three sports components. Notice that contestants can bike and run simultaneously, but at most one person can be in the pool at any time.

Your tasks in this question are as follows:

1. Devise a greedy algorithm for scheduling these n campers in the best order such that the completion time of the schedule is as small as possible.

2. Show the correctness of your proposed algorithm.

3. β€’ Show that the time complexity of your proposed algorithm

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29Β° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
Use a software program or a graphing utility with matrix capabilities to solve the system of linear equations using an inverse matrix. x1 + 2x2 βˆ’ x3 + 3x4 βˆ’ x5 = 6 x1 βˆ’ 3x2 + x3 + 2x4 βˆ’ x5 = βˆ’6 2x1 + x2 + x3 βˆ’ 3x4 + x5 = 3 x1 βˆ’ x2 + 2x3 + x4 βˆ’ x5 = βˆ’3 2x1 + x2 βˆ’ x3 + 2x4 + x5 = 5
Answers: 3
You know the right answer?
Your friend is working as a camp counselor and he is in charge of organizing activities for a set of...
Questions
question
History, 26.04.2020 07:00
question
Mathematics, 26.04.2020 07:01
Questions on the website: 13722361