SlideShare a Scribd company logo
1 of 15
Download to read offline
Shibbir Ahmed
Student Id : 0805097
Determininstic Rounding of Linear Programs
Chapter: 4
Section: 4.1
Chapter: 4
Section: 4.1
Minimizing the Sum of Completion Times on a Single
Machine
February 23, 2014
Sunday
Overview of Section 4.1
Considering a Problem of Scheduling Jobs on a Single Machine
with given Inputs & Constraints to minimize the sum of job
completion time
Illustrating an example of Nonpreemptive Schedule
Finding an optimal solution to the Preemptive version of the
scheduling problem via the rule of Shortest Remaining Processing
Time (SRPT)
Illustrating an example of Preemptive Schedule using SRPT rule
2/15
Overview of Section 4.1 (contd.)
Observation from the fact that an Optimal Nonpreemptive
Schedule is feasible for the Preemptive Scheduling problem
Lemma showing that scheduling nonpreemptively does
not delay the jobs by too much
Proving a Theorem for scheduling a single machine to
minimize the sum of completion times by the Lemma & the
Observation
3/15
Explanation of Some Terms
Scheduling
Allocation of limited resources to the given set of jobs over time
Components of a Scheduling Problem Tasks/Jobs
Constraints
Resources
Objective/Goal
Single Machine
Only one resource available for the processing of tasks/jobs
4/15
Explanation of Some Terms (contd.)
Nonpreemptive
In which a running job can be interrupted before the completion
of a Job
or
For starting another Job
Preemptive
Running Job is executed till Completion of that job
For delaying to complete
Jobs with higher priority
Nonpreemtive Job can not be interrupted
5/15
Problem of Scheduling Job on a
Single Machine
Constraints
Inputs
A schedule for jobs on a single machine is to be constructed such that ;
Number of Jobs𝑛
Release Date i.e., The time of arrival of job in the scheduling system𝑟𝑗
Processing Time i.e., The time for which job executes on a machine𝑝𝑗
(i) At most One Job is processed at each point in time
(ii) No Job is processed before its release date
(iii) Each Job must be processed nonpreemptively
6/15
Problem of Scheduling Job on a
Single Machine (contd.)
Objective
Find the schedule that minimizes ,
Completion Time i.e., The time at which Job j finished its
processing
C𝑗
C𝑗
𝑛
𝑗=1
The Problem of Minimizing the Average Completion Time
Equivalent to
because
The Average Completion Time just rescales the objective function for each
𝟏/𝒏feasible solution by a factor of
7/15
Example of Nonpreemptive Schedule
Job No. Processing
Time (p)
Release
Date (r)
Job1 2 0
Job2 1 4
Job3 4 1
Completion
Time (C)
2
5
9
Job 1 Job 2 Job 3
0 42 5 9 Time
C𝑗
𝑗
= 2 + 5 + 9
= 16
8/15
Shortest Remaining Processing Time
(SRPT) Rule
An Optimal Solution to the Preemptive version of the scheduling
problem can be found in polynomial time via
SRPT rule.
(i) Starting at time 0 and schedule the job with the
smallest amount of remaining processing time
as long as the job is past its release date &
have not been already completed
(ii) Scheduling the job until either it is completed or a
new job is released
(iii) Iterating the process
9/15
Job No. Processing
Time (p)
Release
Date (r)
Job1 2 0
Job2 1 4
Job3 4 1
Completion
Time (C)
2
5
7
Job 1 Job 2 Job 3
0 4
Job 3
2 5 7 Time
C𝑗
𝑗
= 2 + 5 + 7
= 14
Example of Preemptive Schedule
using SRPT rule
Note:
The Processing of
job1 is not
interrupted when
job3 arrives at time 1
10/15
Observation: 4.1
𝐶𝑗
𝑝𝑛
𝑗=1 ≤ OPT
The Completion time of job j in an optimal preemptive schedule𝐶𝑗
𝑝
Let,
OPT The Sum of Completion time in an optimal nonpreemptive schedule
the fact that an Optimal Nonpreemptive
Schedule is feasible for the Preemptive
Scheduling problem
Observation
Proved by
11/15
Scheduling Algorithm
Now, Considering this Scheduling Algorithm a Lemma is to be proved.
(i) Finding an optimal preemptive schedule using SRPT
(ii) Scheduling the job nonpreemptively in the same order
that they complete in this preemptive schedule
Example
𝐶1
𝑝
𝐶2
𝑝
𝐶𝑗
𝑝
≤ ≤ … ≤
(i) Schedule Job1 from its release date 𝒓 𝟏 𝑡𝑜 𝑡𝑖𝑚𝑒 (𝒓 𝟏+ 𝒑 𝟏)
(ii) Schedule Job2 as soon as possible after Job1 ; i.e., max(𝒓 𝟏+ 𝒑 𝟏, 𝒓 𝟐) to
max(𝒓 𝟏+ 𝒑 𝟏, 𝒓 𝟐) + 𝒑 𝟐
𝒇𝒐𝒓 𝑪𝒋
𝑵 Job j is processed from max *𝑪𝒋−𝟏
𝑵
, 𝒓𝒋+ 𝑡𝑜 max *𝑪𝒋−𝟏
𝑵
, 𝒓𝒋+ + 𝒑𝒋
12/15
Lemma: 4.2
Proof
Consequently, in the time interval from 𝒎𝒂𝒙
𝒌=𝟏,…,𝒋
𝒓 𝒌 to 𝑪𝒋
𝑵
, there
can not be any point in time at which machine is idle.
𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑗𝑜𝑏 𝑗 = 1, … , 𝑛 𝐶𝑗
𝑁 ≤ 2𝐶𝑗
𝑃
As, 𝑗 is processed in the optimal preemptive schedule after jobs1, … , 𝑗 − 1
&𝑪𝒋
𝑷
≥ 𝒎𝒂𝒙
𝒌=𝟏,…,𝒋
𝒓 𝒌 𝑪𝒋
𝑷
≥ 𝒑 𝒌
𝑗
𝑘=1
𝑪𝒋
𝑵
≥ 𝒎𝒂𝒙
𝒌=𝟏,…,𝒋
𝒓 𝒌
So,
Therefore, 𝑪𝒋
𝑵
≤ 𝒎𝒂𝒙
𝒌=𝟏,…,𝒋
𝒓 𝒌 + 𝒑 𝒌
𝑗
𝑘=1 ≤ 𝟐𝑪𝒋
𝑷
13/15
Theorem: 4.3
Therefore,
𝑓𝑟𝑜𝑚 𝑳𝒆𝒎𝒎𝒂 𝟒. 𝟐 𝐶𝑗
𝑁 ≤ 2𝐶𝑗
𝑃
& 𝑓𝑟𝑜𝑚 𝑶𝒃𝒔𝒆𝒓𝒗𝒂𝒕𝒊𝒐𝒏 𝟒. 𝟏 ≤𝐶𝑗
𝑃
𝑛
𝑗=1
OPT
2 𝐶𝑗
𝑃
𝑛
𝑗=1
𝐶𝑗
𝑁
𝑛
𝑗=1
≤ ≤ 2 OPT
Concluding Remark Scheduling in order of the completion times of an
optimal preemptive schedule is a 2-approximation
algorithm for scheduling a single machine with release
dates to minimize the sum of completion times.
14/15
February 23, 2014
Sunday

More Related Content

What's hot

Critical Path Method/ Program Evaluation and Review Technique
Critical Path Method/ Program Evaluation and Review TechniqueCritical Path Method/ Program Evaluation and Review Technique
Critical Path Method/ Program Evaluation and Review Technique
Jomari Gingo Selibio
 

What's hot (20)

Algorithm Analysis
Algorithm AnalysisAlgorithm Analysis
Algorithm Analysis
 
Scheduling
SchedulingScheduling
Scheduling
 
Jonson"s Rule Production scheduling
 Jonson"s Rule Production scheduling Jonson"s Rule Production scheduling
Jonson"s Rule Production scheduling
 
Analysis algorithm
Analysis algorithmAnalysis algorithm
Analysis algorithm
 
Flow shop scheduling problem, processing time associated with probabilities i...
Flow shop scheduling problem, processing time associated with probabilities i...Flow shop scheduling problem, processing time associated with probabilities i...
Flow shop scheduling problem, processing time associated with probabilities i...
 
Complex Project Crashing Algorithm
Complex Project Crashing AlgorithmComplex Project Crashing Algorithm
Complex Project Crashing Algorithm
 
Commonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time SchedulingCommonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time Scheduling
 
Amdahl`s law -Processor performance
Amdahl`s law -Processor performanceAmdahl`s law -Processor performance
Amdahl`s law -Processor performance
 
Per tand project crashing
Per tand project crashingPer tand project crashing
Per tand project crashing
 
Float in Projects
Float in ProjectsFloat in Projects
Float in Projects
 
Critical Path Method/ Program Evaluation and Review Technique
Critical Path Method/ Program Evaluation and Review TechniqueCritical Path Method/ Program Evaluation and Review Technique
Critical Path Method/ Program Evaluation and Review Technique
 
Cost optimal algorithm
Cost optimal algorithmCost optimal algorithm
Cost optimal algorithm
 
Job shop scheduling
Job shop schedulingJob shop scheduling
Job shop scheduling
 
Critical Path Method
Critical Path MethodCritical Path Method
Critical Path Method
 
Chpt7
Chpt7Chpt7
Chpt7
 
Critical Path Method
Critical Path MethodCritical Path Method
Critical Path Method
 
Complexity Analysis
Complexity Analysis Complexity Analysis
Complexity Analysis
 
Cpmprt
CpmprtCpmprt
Cpmprt
 
Production Scheduling in a Job Shop Environment with consideration of Transpo...
Production Scheduling in a Job Shop Environment with consideration of Transpo...Production Scheduling in a Job Shop Environment with consideration of Transpo...
Production Scheduling in a Job Shop Environment with consideration of Transpo...
 
Time cost optimisation
Time cost optimisationTime cost optimisation
Time cost optimisation
 

Viewers also liked

“Reason of Choosing Private University for Higher Education in Bangladesh: A...
“Reason of Choosing Private University for Higher Education in Bangladesh:  A...“Reason of Choosing Private University for Higher Education in Bangladesh:  A...
“Reason of Choosing Private University for Higher Education in Bangladesh: A...
Shahriar Rawshon
 
The advantages of smart phones
The advantages of smart phonesThe advantages of smart phones
The advantages of smart phones
Lefa_M
 

Viewers also liked (8)

Preprocessing of Academic Data for Mining Association Rule, Presentation @WAD...
Preprocessing of Academic Data for Mining Association Rule, Presentation @WAD...Preprocessing of Academic Data for Mining Association Rule, Presentation @WAD...
Preprocessing of Academic Data for Mining Association Rule, Presentation @WAD...
 
Mining the Social Web to Analyze the Impact of Social Media on Socialization,...
Mining the Social Web to Analyze the Impact of Social Media on Socialization,...Mining the Social Web to Analyze the Impact of Social Media on Socialization,...
Mining the Social Web to Analyze the Impact of Social Media on Socialization,...
 
4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]
 
Knowledge Discovery from Academic Data using Association Rule Mining, Paper P...
Knowledge Discovery from Academic Data using Association Rule Mining, Paper P...Knowledge Discovery from Academic Data using Association Rule Mining, Paper P...
Knowledge Discovery from Academic Data using Association Rule Mining, Paper P...
 
“Reason of Choosing Private University for Higher Education in Bangladesh: A...
“Reason of Choosing Private University for Higher Education in Bangladesh:  A...“Reason of Choosing Private University for Higher Education in Bangladesh:  A...
“Reason of Choosing Private University for Higher Education in Bangladesh: A...
 
The advantages of smart phones
The advantages of smart phonesThe advantages of smart phones
The advantages of smart phones
 
Advantages and disadvantages of smartphones
Advantages and disadvantages of smartphones Advantages and disadvantages of smartphones
Advantages and disadvantages of smartphones
 
Advantages and Disadvantages of Mobile phone
Advantages and Disadvantages of Mobile phoneAdvantages and Disadvantages of Mobile phone
Advantages and Disadvantages of Mobile phone
 

Similar to Determininstic rounding of linear programs

Scheduling 155 © David Lippman Creative Commons BY-SA.docx
Scheduling   155 © David Lippman  Creative Commons BY-SA.docxScheduling   155 © David Lippman  Creative Commons BY-SA.docx
Scheduling 155 © David Lippman Creative Commons BY-SA.docx
durantheseldine
 
Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptx
naghamallella
 

Similar to Determininstic rounding of linear programs (20)

Clock driven scheduling
Clock driven schedulingClock driven scheduling
Clock driven scheduling
 
SCHEDULING RULES DONE.pptx
SCHEDULING  RULES DONE.pptxSCHEDULING  RULES DONE.pptx
SCHEDULING RULES DONE.pptx
 
Job Shop Scheduling.pptx
Job Shop Scheduling.pptxJob Shop Scheduling.pptx
Job Shop Scheduling.pptx
 
Computational Thinking 11- ActivitySelection.pptx
Computational Thinking 11- ActivitySelection.pptxComputational Thinking 11- ActivitySelection.pptx
Computational Thinking 11- ActivitySelection.pptx
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Scheduling 155 © David Lippman Creative Commons BY-SA.docx
Scheduling   155 © David Lippman  Creative Commons BY-SA.docxScheduling   155 © David Lippman  Creative Commons BY-SA.docx
Scheduling 155 © David Lippman Creative Commons BY-SA.docx
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
Operations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdfOperations Research_18ME735_module 5 sequencing notes.pdf
Operations Research_18ME735_module 5 sequencing notes.pdf
 
Document 14 (6).pdf
Document 14 (6).pdfDocument 14 (6).pdf
Document 14 (6).pdf
 
Cpu scheduling algorithm on windows
Cpu scheduling algorithm on windowsCpu scheduling algorithm on windows
Cpu scheduling algorithm on windows
 
AN EFFICIENT HEURISTIC ALGORITHM FOR FLEXIBLE JOB SHOP SCHEDULING WITH MAINTE...
AN EFFICIENT HEURISTIC ALGORITHM FOR FLEXIBLE JOB SHOP SCHEDULING WITH MAINTE...AN EFFICIENT HEURISTIC ALGORITHM FOR FLEXIBLE JOB SHOP SCHEDULING WITH MAINTE...
AN EFFICIENT HEURISTIC ALGORITHM FOR FLEXIBLE JOB SHOP SCHEDULING WITH MAINTE...
 
An Efficient Heuristic Algorithm for Flexible Job Shop Scheduling with Mainte...
An Efficient Heuristic Algorithm for Flexible Job Shop Scheduling with Mainte...An Efficient Heuristic Algorithm for Flexible Job Shop Scheduling with Mainte...
An Efficient Heuristic Algorithm for Flexible Job Shop Scheduling with Mainte...
 
Scheduling algorithm in real time system
Scheduling algorithm in real time systemScheduling algorithm in real time system
Scheduling algorithm in real time system
 
Cpu scheduling qusetions
Cpu scheduling qusetionsCpu scheduling qusetions
Cpu scheduling qusetions
 
exp 3.docx
exp 3.docxexp 3.docx
exp 3.docx
 
Cpm n pert lecture 1
Cpm n pert lecture 1Cpm n pert lecture 1
Cpm n pert lecture 1
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
 
Cpm module iii reference
Cpm module iii referenceCpm module iii reference
Cpm module iii reference
 
Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptx
 

Recently uploaded

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Recently uploaded (20)

(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 

Determininstic rounding of linear programs

  • 1. Shibbir Ahmed Student Id : 0805097 Determininstic Rounding of Linear Programs Chapter: 4 Section: 4.1 Chapter: 4 Section: 4.1 Minimizing the Sum of Completion Times on a Single Machine February 23, 2014 Sunday
  • 2. Overview of Section 4.1 Considering a Problem of Scheduling Jobs on a Single Machine with given Inputs & Constraints to minimize the sum of job completion time Illustrating an example of Nonpreemptive Schedule Finding an optimal solution to the Preemptive version of the scheduling problem via the rule of Shortest Remaining Processing Time (SRPT) Illustrating an example of Preemptive Schedule using SRPT rule 2/15
  • 3. Overview of Section 4.1 (contd.) Observation from the fact that an Optimal Nonpreemptive Schedule is feasible for the Preemptive Scheduling problem Lemma showing that scheduling nonpreemptively does not delay the jobs by too much Proving a Theorem for scheduling a single machine to minimize the sum of completion times by the Lemma & the Observation 3/15
  • 4. Explanation of Some Terms Scheduling Allocation of limited resources to the given set of jobs over time Components of a Scheduling Problem Tasks/Jobs Constraints Resources Objective/Goal Single Machine Only one resource available for the processing of tasks/jobs 4/15
  • 5. Explanation of Some Terms (contd.) Nonpreemptive In which a running job can be interrupted before the completion of a Job or For starting another Job Preemptive Running Job is executed till Completion of that job For delaying to complete Jobs with higher priority Nonpreemtive Job can not be interrupted 5/15
  • 6. Problem of Scheduling Job on a Single Machine Constraints Inputs A schedule for jobs on a single machine is to be constructed such that ; Number of Jobs𝑛 Release Date i.e., The time of arrival of job in the scheduling system𝑟𝑗 Processing Time i.e., The time for which job executes on a machine𝑝𝑗 (i) At most One Job is processed at each point in time (ii) No Job is processed before its release date (iii) Each Job must be processed nonpreemptively 6/15
  • 7. Problem of Scheduling Job on a Single Machine (contd.) Objective Find the schedule that minimizes , Completion Time i.e., The time at which Job j finished its processing C𝑗 C𝑗 𝑛 𝑗=1 The Problem of Minimizing the Average Completion Time Equivalent to because The Average Completion Time just rescales the objective function for each 𝟏/𝒏feasible solution by a factor of 7/15
  • 8. Example of Nonpreemptive Schedule Job No. Processing Time (p) Release Date (r) Job1 2 0 Job2 1 4 Job3 4 1 Completion Time (C) 2 5 9 Job 1 Job 2 Job 3 0 42 5 9 Time C𝑗 𝑗 = 2 + 5 + 9 = 16 8/15
  • 9. Shortest Remaining Processing Time (SRPT) Rule An Optimal Solution to the Preemptive version of the scheduling problem can be found in polynomial time via SRPT rule. (i) Starting at time 0 and schedule the job with the smallest amount of remaining processing time as long as the job is past its release date & have not been already completed (ii) Scheduling the job until either it is completed or a new job is released (iii) Iterating the process 9/15
  • 10. Job No. Processing Time (p) Release Date (r) Job1 2 0 Job2 1 4 Job3 4 1 Completion Time (C) 2 5 7 Job 1 Job 2 Job 3 0 4 Job 3 2 5 7 Time C𝑗 𝑗 = 2 + 5 + 7 = 14 Example of Preemptive Schedule using SRPT rule Note: The Processing of job1 is not interrupted when job3 arrives at time 1 10/15
  • 11. Observation: 4.1 𝐶𝑗 𝑝𝑛 𝑗=1 ≤ OPT The Completion time of job j in an optimal preemptive schedule𝐶𝑗 𝑝 Let, OPT The Sum of Completion time in an optimal nonpreemptive schedule the fact that an Optimal Nonpreemptive Schedule is feasible for the Preemptive Scheduling problem Observation Proved by 11/15
  • 12. Scheduling Algorithm Now, Considering this Scheduling Algorithm a Lemma is to be proved. (i) Finding an optimal preemptive schedule using SRPT (ii) Scheduling the job nonpreemptively in the same order that they complete in this preemptive schedule Example 𝐶1 𝑝 𝐶2 𝑝 𝐶𝑗 𝑝 ≤ ≤ … ≤ (i) Schedule Job1 from its release date 𝒓 𝟏 𝑡𝑜 𝑡𝑖𝑚𝑒 (𝒓 𝟏+ 𝒑 𝟏) (ii) Schedule Job2 as soon as possible after Job1 ; i.e., max(𝒓 𝟏+ 𝒑 𝟏, 𝒓 𝟐) to max(𝒓 𝟏+ 𝒑 𝟏, 𝒓 𝟐) + 𝒑 𝟐 𝒇𝒐𝒓 𝑪𝒋 𝑵 Job j is processed from max *𝑪𝒋−𝟏 𝑵 , 𝒓𝒋+ 𝑡𝑜 max *𝑪𝒋−𝟏 𝑵 , 𝒓𝒋+ + 𝒑𝒋 12/15
  • 13. Lemma: 4.2 Proof Consequently, in the time interval from 𝒎𝒂𝒙 𝒌=𝟏,…,𝒋 𝒓 𝒌 to 𝑪𝒋 𝑵 , there can not be any point in time at which machine is idle. 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑗𝑜𝑏 𝑗 = 1, … , 𝑛 𝐶𝑗 𝑁 ≤ 2𝐶𝑗 𝑃 As, 𝑗 is processed in the optimal preemptive schedule after jobs1, … , 𝑗 − 1 &𝑪𝒋 𝑷 ≥ 𝒎𝒂𝒙 𝒌=𝟏,…,𝒋 𝒓 𝒌 𝑪𝒋 𝑷 ≥ 𝒑 𝒌 𝑗 𝑘=1 𝑪𝒋 𝑵 ≥ 𝒎𝒂𝒙 𝒌=𝟏,…,𝒋 𝒓 𝒌 So, Therefore, 𝑪𝒋 𝑵 ≤ 𝒎𝒂𝒙 𝒌=𝟏,…,𝒋 𝒓 𝒌 + 𝒑 𝒌 𝑗 𝑘=1 ≤ 𝟐𝑪𝒋 𝑷 13/15
  • 14. Theorem: 4.3 Therefore, 𝑓𝑟𝑜𝑚 𝑳𝒆𝒎𝒎𝒂 𝟒. 𝟐 𝐶𝑗 𝑁 ≤ 2𝐶𝑗 𝑃 & 𝑓𝑟𝑜𝑚 𝑶𝒃𝒔𝒆𝒓𝒗𝒂𝒕𝒊𝒐𝒏 𝟒. 𝟏 ≤𝐶𝑗 𝑃 𝑛 𝑗=1 OPT 2 𝐶𝑗 𝑃 𝑛 𝑗=1 𝐶𝑗 𝑁 𝑛 𝑗=1 ≤ ≤ 2 OPT Concluding Remark Scheduling in order of the completion times of an optimal preemptive schedule is a 2-approximation algorithm for scheduling a single machine with release dates to minimize the sum of completion times. 14/15