• Aucun résultat trouvé

Improved Online Scheduling in Maximizing Throughput of Equal Length Jobs Nguyen Kim Thang (university Paris-Dauphine, France)

N/A
N/A
Protected

Academic year: 2022

Partager "Improved Online Scheduling in Maximizing Throughput of Equal Length Jobs Nguyen Kim Thang (university Paris-Dauphine, France)"

Copied!
20
0
0

Texte intégral

(1)

Improved Online Scheduling in Maximizing Throughput of

Equal Length Jobs

Nguyen Kim Thang

(university Paris-Dauphine, France)

(2)

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

(3)

Model

Objective: maximize the total value of jobs completed on time.

Online Scheduling

Jobs: arrive at , processing time , deadline , value (weight) .pi di ri 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) .

(4)

Competitive ratio

An algorithm ALG is -competitive if for any instance α I

(maximization problem) OP T (I)

ALG(I) α

(5)

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 negotiation Adversary (lower bound) (upper bound)

OP T (I)

ALG(I) α

(6)

Contribution

unit weight

unbounded processing times equal processing

times

bounded processing times (by )k

general

α = 1 α = Θ(log k)

4.24 α = Θ(k/ log k)

3 3

2 α 5

(7)

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 3

2 α 5

(8)

Settling the competitivity

i

wj

j α · wi

Methods: charging scheme, potential function, etc

(9)

Settling the competitivity

i

wj

j α · wi

Methods: charging scheme, potential function, etc

ALG

ADV

(10)

Starting point

Paradox: low weight,

imminent deadline

which jobs? higher weight, later deadline

(11)

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 j t t + qj(t) dj

(12)

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 j t t + qj(t) dj

(13)

Observations

Some job would be delayed by new urgent jobs (even with low weight)

Treatment:

A job is urgent at time if i t di < t + qi(t) + p

Correlation among jobs’ deadlines is ignored

Ensure no significant lost if new heavy jobs arrive.

(14)

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

(15)

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

(16)

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

(17)

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

(18)

The charging scheme

j i

wi wj

phase of job i

f (i) 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)

(19)

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.

(20)

Thank you!

Thank Kristoffer!

Références

Documents relatifs

Ratio of the number of activated droplets (“CCN”) relative to the number of condensation nuclei (“CN”) plotted as a function of dry particle diameter for glutaric acid particles

So, con- sidering jobs with any number of Map and Reduce tasks in this model is particularly important for practical applica- tions, since the basic idea behind MapReduce computation

However in our research we consider graphs with a few number of vertices and we can find all maximal cliques in reasonable time.. We use the algorithm by Tanaka

It was also found that these interviews in themselves seemed to be filling a need -the need to communicate to IRC general problem areas (and by implication, areas of

MinTime algorithm performs well for the roofline model, but as more over- head is introduced in the communication and Amdahl’s models, it continues to allocate a large number

Save /conserve /economize /maintain /preserve /keep /sustain /uphold Retain /manage/ control.... COUNTRY

We propose an online approach based on a MILP formulation to schedule the missions of au- tonomous robots for agricultural activities each time a robot goes back to the warehouse

The main novelty of the method is that it builds sequences of groups of production and delivery jobs that are fixed for all scenarios, while the job sequence inside each production