Example of Decreasing Time Algorithm

Example of Decreasing Time Algorithm

<p> Davenport University MATH200 – Planning and Scheduling</p><p>Example of Decreasing Time Algorithm for Independent Tasks</p><p>Problem: We must create a schedule for independent tasks using the decreasing time algorithm with two processors to complete the eight task project with times given in figure 1 below. </p><p>Figure 1 - The Task List (Task times in circles)</p><p>T-1 T-2 T-3 T-4</p><p>8 7 5 3</p><p>5 6 9 4</p><p>T-5 T-6 T-7 T-8</p><p>Optimal Time for Independent Task Problem: Recall that among our goals in creating a schedule is to both minimize total project time and minimize the amount of down (or idle) time experienced by the processors. Unlike the other cases, determining the optimal time for an independent task project happens to be fairly straightforward: Sum the task times, divide by the number of processors, and then round up to the next whole number if necessary. </p><p>In our example, the total of the task times is 47 and dividing it by 2 (number of processors) gives us 23.5. So, if our method below yields a project schedule that is complete at time 24 (23.5 rounded up to the next whole number), then our schedule will be optimal.</p><p>Solution: As we begin the scheduling process, we need to place the tasks in descending order with respect to time: T-7, T-1, T-2, T-6, T-3*, T-5*, T-8, and T-4 </p><p>*Note: Tasks that take an equal amount of time can be scheduled in any order. Instead of listing T-3 before T-5 above, we could have chosen T-5 before T-3 and it would still result in the identical project completion time.</p><p>With just the two processors, we can only start the top two tasks on the priority list: T-7 and T-1. T-1 finishes first (at time 8) and we can immediately start T-2. T-7 is complete soon after (at time 9), and we can begin T-6. T-2 and T-6 finish simultaneously (at time 15) and are followed by T-3 and T-5 (it is coincidence that these items ended up being started at the same time). T-3 and T-5 also end concurrently (time 20) and the final two tasks, T-8 and T-4, now begin. T-8 is the last task to be completed at time 24 (see Figure 2 below for complete schedule). </p><p>Figure 2 - Processor Schedule Machine 1 T-7 T-6 T-3 T-8 Machine 2 T-1 T-2 T-5 T-4 Time 8 9 15 20 23 24</p><p>Reflection: In this instance we were able to create an optimal schedule. Again, please remember that we will not always be so fortunate.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us