I need help! Can anyone tell me in words?
Suppose you are given a set S ={a1, a2 ,.......an} of tasks,
Task ai requires Pi ( pi ={p1, p2,......pn} )units of processing time to complete, once it has started.
You have one computer on which to run these tasks, and the computer can run only one task at a time.
Let ci ( ci ={c1, c2,......cn} )be the completion time of task ai , that is, the time
at which task ai completes processing. Goal is to minimize the average completion time
For example, suppose there are two tasks, a1 and a2 , with p1 = 3 andp2 = 5,
and consider the schedule in which a2 runsfirst, followed by a1 .
Then c2 = 5, c1 = 8, and the average completion time is (5 + 8)=2 = 6.5
(a) Give an algorithm that schedules the tasks so as to minimize the average completion time. Each
task must run non-preemptively, that is, once task a i is started it must run continuously for p i
units of time.
Suppose you are given a set S ={a1, a2 ,.......an} of tasks,
Task ai requires Pi ( pi ={p1, p2,......pn} )units of processing time to complete, once it has started.
You have one computer on which to run these tasks, and the computer can run only one task at a time.
Let ci ( ci ={c1, c2,......cn} )be the completion time of task ai , that is, the time
at which task ai completes processing. Goal is to minimize the average completion time
For example, suppose there are two tasks, a1 and a2 , with p1 = 3 andp2 = 5,
and consider the schedule in which a2 runsfirst, followed by a1 .
Then c2 = 5, c1 = 8, and the average completion time is (5 + 8)=2 = 6.5
(a) Give an algorithm that schedules the tasks so as to minimize the average completion time. Each
task must run non-preemptively, that is, once task a i is started it must run continuously for p i
units of time.
