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

  Describe the jsp life cycle

Draw a diagram of the various events and transformations. Describe how you might implement logging in as used in the workshops using the session mechanism explaining what Java classes are involved and using code snippets.

  Is the hypertext fiction non-linear

Does the author address a solid aspects of the topic in his/her wiki? Is the wiki fact driven? Meaning, does the content presented clearly influence how the wiki is constructed?

  Creating entity-relationship model

The manager for the Clearwater Traders wishes to collect the following information for each order placed by a consumer: consumer's name and address, item's size or color if applicable and the retail price of each item.

  How pseudocodes can be optimized to improve efficiency

Create an Alice World with four helicopters and a list containing the helicopters. Program the world to make the helicopters each lift off from the ground one at a time and then all turn and fly away together.

  Creating the table showing decimal value

Assume if the last digit of a 2's complement binary number is 0, then number is even. If the last two digits of a 2's complement binary number are 00

  Write algorithm to identify substrings which form numbers

Write the algorithm, by using pseudo code, to do the following task. Given string of numbers, identify all the substrings which form numbers that are divisible by 3.

  Find smallest element and its index

Write a C++ program that inputs 10 integers into an array and displays the inputs, the smallest element and its index

  Draw a dfd that shows how data will be stored

Draw a DFD that shows how data will be stored, processed, and transformed in the TIMS system, Draw an FDD that shows the Personal Trainer's main functions

  The customer takes either a shopping cart or basket and

the business process you can use the business process provided in the following section but it may be more interesting

  Write a program using bubble sorting

Question :-Write a program using bubble sorting.

  Implement the priorityq class using a heap instead

Implement the PriorityQ class using a heap instead of an array

  How many different undirected graphs are there with v vertix

Graph enumeration: How many different undirected graphs are there with V vertices and E edges (and no parallel edges)? Assume the graph is represented in adjacency-list form

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