csr2011 june18 12_00_nguyen
DESCRIPTION
TRANSCRIPT
![Page 1: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/1.jpg)
Improved Online Scheduling in Maximizing Throughput of
Equal Length JobsNguyen Kim Thang
(university Paris-Dauphine, France)
presented by Kristoffer Arnsfelt Hansen(university Aarhus, Denmark)
![Page 2: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/2.jpg)
Motivation
Enterprise: perishable product (electricity, ice-cream, ...). Clients: single-minded, arrive online, different demands. Goal: maximize the profit.
Profit maximization
$
$
$Objective: maximize the total value.
Other applications
ATM network: online packages, typically of the same length.
Data broadcast: online broadcast pages
![Page 3: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/3.jpg)
Model
Objective: maximize the total value of jobs completed on time.
Online Scheduling
Jobs: arrive at , processing time , deadline , value (weight) .
ri
pi di wi
Preemption is necessary
Preemption with restart: when a job is scheduled again, it must be executed from the beginning (e.g., data broadcast).
Preemption with resume: when a job is scheduled again, the previously done work can be resumed (e.g., ATM network) .
![Page 4: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/4.jpg)
Competitive ratio An algorithm ALG is -competitive if for any instance ! I
(maximization problem)OPT (I)ALG(I)
! !
![Page 5: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/5.jpg)
Competitive ratio An algorithm ALG is -competitive if for any instance ! I
(maximization problem)
Measure the performance of an algorithm (worst-case analysis)
What is a competitive ratio?
The price of an object (the problem):
Algorithm Adversarynegotiation
(lower bound)(upper bound)
OPT (I)ALG(I)
! !
![Page 6: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/6.jpg)
Contribution
unit weight
unbounded processing times
equal processing times
bounded processing times (by )k
general
! = 1 ! = !(log k) !
!! 4.24
! = !(k/ log k)3!
32" ! " 5
![Page 7: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/7.jpg)
Contribution
unit weight
unbounded processing times
equal processing times
bounded processing times (by )k
general
! = 1 ! = !(log k) !
!
Improved algorithms for both models of preemption
Weights and correlation between jobs’ deadlines
! 4.24! = !(k/ log k)
3!
32" ! " 5
![Page 8: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/8.jpg)
Settling the competitivity
i
wj
j
! · wi
Methods: charging scheme, potential function, etc
![Page 9: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/9.jpg)
Settling the competitivity
i
wj
j
! · wi
Methods: charging scheme, potential function, etc
ALG
ADV
![Page 10: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/10.jpg)
Starting point Paradox: low weight,
imminent deadline which jobs? higher weight,
later deadline
![Page 11: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/11.jpg)
Starting point Paradox: low weight,
imminent deadline which jobs? higher weight,
later deadline
: initial job length, : length of job at time p qj(t) j t
A job is pending at time if t t + qj(t) ! djj
![Page 12: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/12.jpg)
Starting point Paradox: low weight,
imminent deadline which jobs? higher weight,
later deadline
If no currently scheduled job, schedule the pending one with highest weight
A 5-competitive algorithm (preemption with restart)
If a new pending job arrive with weight at least twice that of the currently scheduled job, then schedule the new one (by interrupting the current job)
At any time
: initial job length, : length of job at time p qj(t) j t
A job is pending at time if t t + qj(t) ! djj
![Page 13: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/13.jpg)
Observations
Some job would be delayed by new urgent jobs (even with low weight)
Treatment:
A job is urgent at time if di < t + qi(t) + pti
Correlation among jobs’ deadlines is ignored
Ensure no significant lost if new heavy jobs arrive.
![Page 14: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/14.jpg)
Algorithm
At time , let be a new released job and the currently scheduled job, respectively. At any interruption, if then
t i, j
Initially, set Q = !, ! = 0, 1 < " < 3/2
! > 0 ! := ! + 1
![Page 15: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/15.jpg)
Algorithm
At time , let be a new released job and the currently scheduled job, respectively. At any interruption, if then
t i, j
Initially, set Q = !, ! = 0, 1 < " < 3/2
If dowi ! 2wj , wi ! 2!w(Q)schedule i
set Q = !, ! = 0
! > 0 ! := ! + 1
![Page 16: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/16.jpg)
Algorithm
At time , let be a new released job and the currently scheduled job, respectively. At any interruption, if then
t i, j
Initially, set Q = !, ! = 0, 1 < " < 3/2
If dowi ! 2wj , wi ! 2!w(Q)schedule i
set Q = !, ! = 0
If do! = 0, "wj ! wi ! 2wj
urgent and i dj ! t + 2p
schedule job which is arg max{w! : d! < t + 2p}
set Q = {j}, ! = 1
! > 0 ! := ! + 1
![Page 17: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/17.jpg)
Algorithm
At time , let be a new released job and the currently scheduled job, respectively. At any interruption, if then
t i, j
Initially, set Q = !, ! = 0, 1 < " < 3/2
If dowi ! 2wj , wi ! 2!w(Q)schedule i
set Q = !, ! = 0
If do! = 0, "wj ! wi ! 2wj
urgent and i dj ! t + 2p
schedule job which is arg max{w! : d! < t + 2p}
set Q = {j}, ! = 1
If is urgent doi
no job such that!
Sj(t) + 2p ! d! < t + 2p, w! " wj
schedule i
wi ! 2wj + wj!
! > 0 ! := ! + 1
![Page 18: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/18.jpg)
The charging scheme
ij
wiwj
phase of job i
if(i)
2wf(i)
Theorem: the algorithm is -competitive(2 +!
5)
ALG
ADV
Theorem: there is a -competitive algorithm for model of preemption with resume
(2 +!
5)
![Page 19: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/19.jpg)
Conclusion
Improved algorithms for both models of preemption
Open questions:
Settling the right competitive ratio 2.5 ! ! ! 4.24
Interesting: not to reduce the gap but new methods.
![Page 20: Csr2011 june18 12_00_nguyen](https://reader033.vdocuments.site/reader033/viewer/2022052504/54c25f6d4a795913518b458b/html5/thumbnails/20.jpg)
Thank you!
Thank Kristoffer!