Vous êtes sur la page 1sur 1

CDP- CS310

LAB - 01
There are n jobs to be scheduled over k
single core machines. Each job J_i has a
four tuple associated to it <S_i, F_i, M_i,
V_i> where :
S_i
F_i
M_i
V_i

:
:
:
:

Start time
End time
Machine
Value

A schedule is defined as a list of jobs


<J_5, J_2, ...> that can be executed
together. Whenever any job J_i got executed
a reward of value V_i got added to the
Overall Reward.
Design and implement an algorithm that can
be used to derive a schedule such that :
(a) No two jobs overlap in time.
(b) The overall reward is maximized.
Basically consider all possible feasible job
schedule and maximize the Overall Reward.
Prove the correctness of your algorithm
theoretically as well as with
different
test cases. Also analyze its space and time
complexities.

Vous aimerez peut-être aussi