Question: Consider a single machine that can process jobs. We receive a set of job requests { 1 , 2 , dots, n } , and

Consider a single machine that can process jobs. We receive a set of job requests {1,2,dots,n},
and the i th request takes a positive time duration ai to process. We are able to use the machine
for the period between time 0 and specified time T. Our goal is to process the jobs so as
to keep the machine busy for the entire time it is available. Give an efficient algorithm to
determine whether the machine can be kept busy for the entire time T, and which jobs should
be processed. You may assume the processing times ai and total available time T are positive
integers. Also state and justify the running time of your algorithm.
Consider a single machine that can process jobs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!