What is the best order for sending people

Assignment Help Data Structure & Algorithms
Reference no: EM13943964

Your friend is working as a camp counselor at a camp. He needs to organize activities for the kids. One of his plans is the following marathon: each contestant must swim 20 laps of a pool, then bike 10 miles, and then run 3 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 20 laps, gets out, and starts biking. As soon as this first person is out of the pool a second contestant begins swimming the 20 laps; as soon as he is out of the pool and starts biking, a third contestant begins swimming and so on.

Each contestant has projected swimming time (the expected time it will take him or her to complete 20 laps), a projected biking time (the expected time it will take him or her to complete the 10 miles of bicycling), and a projected running time (the time it will take him or her to complete the 3 miles of running). Your friend wants to decide on a schedule for the triathlon: 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 triathlon, assuming they each spend exactly their projected swimming, biking and running times on the 3 parts. (Again, note that participants can bike and run simultaneously but at most one person can be in the pool at any time.) What is 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.

Reference no: EM13943964

Questions Cloud

Conduct an international marketing research : Students are required to choose a local product e.g. VB, Vegemite, Haigh Chocolate, Beqa Cheese etc. (product which is going to be launched in a potential overseas country of your choice) and conduct an international marketing research.
Ensure an efficient financial system : What accounts and associated books and registers would you establish to ensure an efficient financial system and why? What strategies would you implement to minimise security risks to the financial system?
They have collected by interviewing members of a village. : An efficient algorithm is proposed to do this: either it produces proposed dates of birth and death for each of the n people so that all the facts hold true, or it reports (correctly) that no such dates can exist. That is the facts collected by th..
Implementation of strategic quality management initiative : Strategic Quality Management (SQM) Implementation Plan -- Individual Assignment - 25% of grade. This SQM plan may be for a religious organization, a city, A&M-Commerce, a manufacturing or engineering organization, the organization for which you wo..
What is the best order for sending people : More precisely give an efficient algorithm that produces a schedule whose completion time is as small as possible.
Project management and teamwork : Reflect upon the project management and teamwork required in a project. Identify key roles, responsibilities and the best practice benchmarking practices found in the literature Suggested length = 1500 words
Basket-weaving course or a philosophy course : You will take either a basket-weaving course or a philosophy course, depending on what your advisor decides. You estimate that the probability of getting an A in basket weaving is 0.85, while in philosophy it is 0.60.
What is the present value of kodaks growth opportunities : Given Kodak's plowback policy, the market believed that Kodak could continue to generate 15 percent return on investment and would maintain its payout policy. Given these beliefs, what was a fair price for Kodak in 1970 immediately after it paid its ..
Prepare bank reconciliation for donald engineering associate : Prepare the bank reconciliation for Donald Engineering Associates. Journalize the November 30 transactions needed to update Donald's Cash account. Include an explanation for each entry.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Determine whether or not you believe this kind of sorting

question 1 imagine you are a part of a team that is tasked with writing a mobile app that will allow users to

  Sql statements

Suppose that the tables T1 and T2 have a 1:1 relationship. Suppose that T2 has the foreign key. Demonstrate the SQL statements necessary to move the foreign key to T1.

  Using quicksort with median-of-three

Show the steps in details of sorting {3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5} using quicksort with median-of-three partitioning and a cutoff 3 (if the elements are less than 3, using insertion sort).

  Calculate worst-case run-time complexity of algorithm

Calculate the worst-case run-time complexity of your algorithm and prove optimality of the solution it gives. Suppose that the road is a straight line with a western end and an eastern end.

  Finding the values of queuefront and queuerear

Assume that queue is a queue type object and the size of the array-implementing queue is 100. Also, assume that the value of the queueFront is 25 and the value of queueRear is twenty-five.

  Find average in binary tree using preorder traversal

Find average in binary tree using preorder traversal example for the function - Provide answer this question with example.

  Design a nonrecursive algorithm

Design a nonrecursive algorithm that visits all the nodes of a general multiway tree in level order: that is, level-by-level, going left-to-right across a level.

  Define the data structure array

Define the data structure array. Include uses; what represent the name of the array; importance of the index value; naming of the variables bundle within the array.

  How to calculate signature using mod

How does he calculate the signature on each of m1j mod n (for positive integer j), m1-1 mod n, m1*m2 mod n, and in general m1j*m2k mod n (for arbitrary integers j and k)?

  Program for stack by using dynamically allocated array

Write a C++ class which implements stack by using a dynamically allocated array. Initial size of particular stack must be determined when it is created.

  Write algorithms to perform the following operations on it

Write algorithms to perform the following operations on it - create, insertion, deletion, for testing overflow and empty conditions.

  Determining entropy of encrypted message

If this message is encrypted with DES by using a random 56-bit key, determine encrypted message's entropy?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd