Scheduling Flashcards
What type of problem is Johnson’s algorithm for, and what is its purpose?
Flow shop scheduling (jobs must be done in the same order on different machines)
Minimise makespan
What type of problem is Moore’s algorithm for, and what is its purpose?
Job shop scheduling (identical machines)
Minimise number of tardy jobs.
What is ‘makespan’
Total time taken to complete all jobs
What is the critical ratio?
Time until due / processing time
Schedule the job with the smallest critical ratio first.
NB: 0/11 = 0, -27 is smaller than -14
What is slack?
The length of time that a job can be delayed by but still be completed by it’s due date
Describe Moore’s algorithm
- Schedule jobs using Earliest Due Date
- Find the first tardy job, if none, finish.
- Reject the job with the longest processing time that is between the first scheduled job and the first tardy job (inclusive)
- Reproduce the schedule but with rejected jobs after scheduled jobs
- Complete when no scheduled jobs are tardy.
How do you use Moore’s algorithm on multiple machines?
Same process as for a single machine but always allocate the next job description on the machine with the least amount of assigned time.
Draw a Gantt to describe.
How do you use Johnson’s algorithm on multiple machines?
- Apply Johnson’s algorithm to the first and last machines. Record the order.
- Apply Johnson’s algorithm to the sum of the first 2 machines vs. the sum of the last 2 machines. Record the order.
- Repeat until the sum of the first n-1 machines vs. the sum of the last n-1 machines. Record the order.
- Draw a Gantt chart of each schedule to determine which has the shortest makespan.
Describe Johnson’s algorithm
- Select the shortest processing time of all values.
- If it’s on machine 1, schedule the job first, if machine 2, schedule it last
- Repeat. Resolve ties randomly.
- Draw a Gantt to calculate the makespan.
B _ _ _ _
B _ _ _ A
B D_ _ A
etc
Name 5 algorithms for scheduling
- Earliest due date
- Shortest processing time
- Longest processing time
- Critical ratio (time until due/processing time)
- First come first served