Question: Problem 2: Suppose you have one machine and a set of n jobs a1,a2,...an to process on that machine. Each job a, has a processing

 Problem 2: Suppose you have one machine and a set of

Problem 2: Suppose you have one machine and a set of n jobs a1,a2,...an to process on that machine. Each job a, has a processing time tj, a profit p, and a deadline d,. The machine can process only one job at a time, and job a, must run uninterrupted for t, consecutive time units. If job aj is completed by its deadline d,, you receive profit p,, but if it is completed after its deadline, you receive a profit of 0. Give an algorithm to find the schedule that obtains the maximum amount of profit, assuming that all processing times are integers between 1 and n. What is the running time of your algorithm

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 Databases Questions!