Daa Self Study Topic Presentation: Scheduling Identical Processors
Daa Self Study Topic Presentation: Scheduling Identical Processors
PRESENTATION
SCHEDULING IDENTICAL PROCESSORS
Non-deterministic algorithms :
• Do not have result of each operation defined
• It has a range of probability
NP – HARD AND NP – COMPLETE :
• P : set of all decision problems solvable by deterministic
algorithm in Polynomial time.
• NP : set of all decision problems solvable by non-
deterministic algorithms in polynomial time.
… … …
Problem Statement :
Terms used to denote:
Theorem :
Minimum finish time non preemptive algorithm is reduced from
the Partition algorithm.
Prove that for the same set of inputs, the partition algorithm has
a solution or not.
Given :
• ‘n’ jobs to be scheduled
• ti is the processing requirement for a job of index i
THEOREM 1 :
Proof :
Proof for m = 2 i.e. 2 processors
Let ai be an instance of the partition problem where 1<= i <= n.
Suppose n jobs with processing times ti = ai where 1<= i <= n.
A non preemptive schedule exist iff –
✓Partition exists for the input ai for 1<= i <= n
Theorem :
Weighted minimum finish time non preemptive algorithm is
reduced from the Partition algorithm
Prove that for the same set of inputs, the partition algorithm has
a solution or not.
Given :
• ‘n’ jobs to be scheduled
• ti is the processing requirement for a job of index I
• wi is the weight associated with a job of index i
THEOREM 2 :
Proof :
Proof for m = 2 i.e. 2 processors
Let ai be an instance of the partition problem where 1<= i <= n.
Suppose n jobs with processing times ti = ai = wi i.e. weight for
each job where 1<= i <= n.
A non preemptive schedule exist iff –
✓Partition exists for the input ai for 1<= i <= n
THEOREM 2 :
Proof :
Weights and times for processors P1 are
and P2 are
Soln. This input has a solution for the partition algorithm, hence a
schedule is possible.
Schedule = {10, 4, 1} and {7, 5, 3}
MFT = (10+4+1+7+5+3)/2 = 15 units
WMTF = (100 + 16 + 1 + 49 + 25 + 9)/2 + (900)/4 = 325 units
THANK YOU!