![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
![]() |
![]() |
![]() ![]() |
Author | Message |
gita
Newbie ![]() Joined: 08Apr2007 Online Status: Offline Posts: 19 |
![]() ![]() ![]() Posted: 08Apr2007 at 10:52pm |
5.3 Job Scheduling:
In a job-scheduling problem, we are given a list of n jobs. Every job i is associated with an integer deadline di ³
0 and a profit pi ³
0 for any job i, profit is earned if and only if the job is completed
within its deadline. A feasible solution with maximum sum of profits is
to be obtained now.
To
find the optimal solution and feasibility of jobs we are required to
find a subset J such that each job of this subset can be completed by
its deadline. The value of a feasible solution J is the sum of profits
of all the jobs in J.
Steps in finding the subset J are as follows:
1 - yes - 20 2 yes - - 15 3 cannot accommodate -- 4 - - yes 5 40 In the first unit of time job 2 is done and a profit of 15 is gained, in the second unit job 1 is done and a profit 20 is obtained finally in the 3rd unit since the third job is not available 4th job is done and 5 is obtained as the profit in the above job 3 and 5 could not be accommodated due to their deadlines. Exercise 5
Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
![]() |
|
![]() ![]() |
||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
|
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.