Question: Consider the schedule procedure of the scheduling algorithm with deadlines ( Algorithm 4 . 4 ) . Let d be the maximum deadline among the
Consider the schedule procedure of the scheduling algorithm with deadlines Algorithm Let d be the maximum deadline among the tasks. Modify the algorithm to schedule the tasks as late as possible without exceeding their deadlines.
First, initialize disjoint sets for integers from to d Let SmallS represent the smallest member in the set S When scheduling a task, find the set S that includes the smallest deadline and the task itself. If SmallS remove the task. Otherwise, schedule the task at time SmallS and combine sets S and the set that includes SmallS
Assuming the use of the disjoint set data structure described in Appendix C show that this algorithm has a time complexity of Omlgm where m is the minimum of d and n
Agorithm void scheduleint n constint deadlineeqsuenceof integer& J
index i;
sequenceofinteger ;K
J ;
for i; i n i
K J and add i in increasing order of deadlinei;
if K is feasible
J K;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
