Algorithm to produce schedule for least completion time

Assignment Help Data Structure & Algorithms
Reference no: EM1366994

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 minitriathlon exercise: each contestant must swim 20 laps of a pool, then bike 10 miles, 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 the first person is out of the pool, a second contestant begins swimming the 20 laps; as soon as he or she is out and starts biking, a third
contestant begins swimming... and so on.) Each contestant has a projected swimming time (the expected time it will take him or her to complete the 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, assumning that they each spend 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 person can be in the pool at any time.) What's 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: EM1366994

Questions Cloud

Arc price elasticity of demand : Evaluate arc price elasticity of demand between prices of $4 and $6 and compute the point price elasticity at the price of $6 state the significance of the coefficients.
Importance of interdisciplinary collaboration : Describe the significance of interdisciplinary collaboration in meeting the health care needs of families. How is that collaboration distinct from that which takes place in the acute care or ambulatory setting?
Pros and cons of boutique healthcare : Describe the pros and cons of boutique healthcare. Go back and critique the positions and recognize strengths and weaknesses.
Prepare the entry to record the sale of the receivables : On March 3, Lisa Ceja Appliances sells $700,000 of its receivables to Horatio  Factors Inc. Horatio Factors assesses a finance charge of 3% of the amount of receivables  sold.
Algorithm to produce schedule for least completion time : What is the best order for sending people out, if one wants whole competition to be over as early as possible? More precisely, provide efficient algorithm which produces schedule whose completion time is as small as possible.
Decision to market the non-profit entity : In a 1- to 2- page paper defend the decision to market the non-profit entity. In this paper, you are to argue for the mission of the organization.
Create work breakdown structure and network diagram : Work Breakdown Structure (Gantt Chart) and Network Diagram According to the PMBOK Guide also create the predecessor relationships to create a network diagram
Determine the dollar size of the issue : Your firm needs to increase $10 million. Suppose that flotation costs are expected to be $15 per share and that the market price of the stock is $120,
Oversight and funding of healthcare services : The role of the United States Government in both the oversight and funding of healthcare services.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Currency conversion development

Currency Conversion Development

  Computing randomized quick sort-s running time

Suppose that all element values are equal. What would be randomized quick sort's running time in this case? Each element of A[p .. q-1] is less than A[q], and each element of A[t+1 .. r] is greater than A[q]

  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.

  Explaining augmented red-black tree

Consider T be augmented red-black tree, where each node x has attribute x.size, which is number of internal nodes in subtree rooted at x. Given such augmented red-black tree T.

  Give time algorithm that outputs satisfying assignment

Find out  whether there is an assignment of true/false values to the literals such that at least a*m clauses will be true. Note that 3-SAT(1) is exactly the 3-SAT problem. Give an O(m*n)-time algorithm that outputs a satisfying assignment for 3-S..

  Algorithm for a bank account

Write algorithm to settle following question: A bank account starts out with $10,000. Interest is compounded monthly at 6 percent per year (0.5 percent per month).

  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.

  Polynomial time algorithm for rooted directed acyclic graphs

Illustrate that if you were given a polynomial time algorithm for determining whether two rooted directed acyclic graphs are isomorphic, then polynomial time algorithm for testing.

  Show state of memory after processes by best fit algorithm

Using the best fit algorithm, show the state of memory after processes of 212K, 417K, 112K and 350K (in request order) arrive.

  What is the most difficult part of creating the algorithm

Pseudocode algorithm you would write for a simple task. What do you think is the most difficult part of creating the algorithm? What can you do to make this process easier?

  Write algorithm using pseudo code consensus algorithm

Write an algorithm, using pseudo code, "Consensus algorithm": A group of ten people need to decide which one flavor of ice cream they will all order, out of three options.

  Algorithm for string of numbers recognize all the substrings

Write down algorithm, using pseudocode, to perform the following task, Given a string of numbers, recognize all of the substrings that form numbers that are divisible by 3.

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