Download presentation
1
Christina Touhey April 11, 2003
Scheduling Theory Christina Touhey April 11, 2003
2
Real Life Applications
Building a house, bike, bird house, etc. Completing chores or homework Scheduling movie times, class times or practice times Similar to the Traveling Salesman Problem in that a minimal cost circuit is sought The key point of scheduling theory is to save time by being efficient
3
Important Definitions
Processors-The “workers” who do the task. Tasks-The individual jobs or tasks that need to be done in the complex project. Processing times-How much time it takes a processor to complete the task. Precedence relations-Restrictions where one task might need to be completed before another task is started.
4
Recall from Class A directed graph can only go in the direction specified. For example only A can go to B, B cannot got to A. In scheduling terms this means that task A must be completed before task B. B A
5
Example 1 A, B, C, D and E are all tasks that need to be completed.
Start(0) End(0) C(7) E(5) A, B, C, D and E are all tasks that need to be completed. The number in the parentheses is the number of units of time each task takes to complete. We have two restrictions or precedence relations: 1. Tasks A and B must be completed before D. 2. Task C must be completed before E.
6
Decreasing Time Algorithm
The priority list is listed by the times in decreasing order. For example: Arbitrary List: A(6), B(5), C(7), D(2), E(5) Decreasing Time List: C(7), A(6), B(5), E(5), D(2) Two workers: A(6) C E A B D C A C C E A B C A B D(2) B(5) End(0) Start(0) C(7) E(5)
7
Critical Path Algorithm
Based solely on the critical path-the longest sum of the processing times. Using the previous example: A(6) A processor doing task A then task D would take 8 units of time. A processor doing task B then task D would take 7 units of time. A processor doing task C then task E would take 12 units of time. D(2) B(5) Start(0) End(0) C(7) E(5) The critical path is Start-C-E-End or just C-E since it is the longest total processing time of 12 units of time.
8
Lights (Replace bulbs)
Scheduling Example We want to make a schedule for fixing an apartment with one worker having to complete these tasks and specific restrictions. Task Symbol (Time) Bathrooms (Clean) B(8) Carpets (Shampoo) C(4) Filters (Replace) F(1) General Cleaning G(8) Kitchen (Clean) K(12) Lights (Replace bulbs) L(1) Paint P(32) Smoke detectors S(1) Windows (Wash) W(4) Precedence Relations
9
With one worker it takes 71 units of time!
Using the Decreasing Time Algorithm: PKBGWCFLS 10 20 F L P 30 40 50 P B K 60 70 K G W S C With one worker it takes 71 units of time! We are of course assuming that the worker works continuously for this amount of time.
10
For Class to try: Using the same information in the scheduling example, make a schedule for fixing the same apartment with two workers.
11
Using the same information in the scheduling example, make a schedule for fixing the same apartment with two workers. 10 20 F P L W1 W2 30 40 50 W1 P K G B W2 60 W1 G S C W W2
12
No efficient algorithm that is guaranteed to always produce an optimal schedule is presently known.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.