11.28 | Data Structures and Algorithms Using C++
For the above, scheduling jobs are sorted in descending order of processing times, i.e. (9, 8, 5, 3, 2, 1). First
job
j
4
is to be processed. Since all the machines are available initially
j
4
can be given to any of the three ma-
chines. Assume that
j
4
is assigned to machine
m
1
so
m
1
is not available to other jobs until 9 units of time. Job
j
2
can be assigned to any of the two machines that is either
m
2
or
m
3
as both are still available at time 1. Suppose
job
j
2
is assigned to machine
m
2
then
m
2
is not available up to 8 units of time. Job
j
5
is processed on machine
m
3
from time 1 to 6 units. Now job
3
is to be assigned, the rst machine that becomes idle is
m
3
at time 6 units
and
j
3
is assigned ...