Elsevier

Operations Research Letters

Volume 38, Issue 6, November 2010, Pages 585-588
Operations Research Letters

Competitive analysis of preemptive single-machine scheduling

https://doi.org/10.1016/j.orl.2010.08.012Get rights and content

Abstract

We give an online algorithm for minimizing the total weighted completion time on a single machine where preemption of jobs is allowed and prove that its competitive ratio is at most 1.57.

Introduction

Many scheduling problems with the objective of minimizing the average (weighted) completion time can be approximated efficiently to within any constant arbitrarily close to 1, i.e. they have polynomial time approximation schemes (PTAS’s) [1]. However, in the online setting where we assume jobs arrive over time and the schedule is constructed without knowledge of jobs arriving in the future, the best known approximation ratio is often much worse than what we get from offline computing. For some problems, lower bounds show that no algorithm that works online can have a small approximation ratio, but for other problems these bounds are missing and they may have simple, efficient online algorithms with ratios close to 1. In this paper, we study the single-machine scheduling problem with preemption of jobs and the average weighted completion time objective. This problem does have a PTAS and the best known lower bound on the competitive ratio (online approximation ratio) is only 1.073 [5]. We give a simple, O(nlogn)-time online algorithm and prove that its competitive ratio is at most 1.57. (A slightly different proof is given in the author’s Ph.D. Thesis [11].) Our proof is based on the elegant technique of modified instances.

An instance I of our problem is given by a set JN and for each jJ a positive processing time pj, non-negative weight wj and non-negative release time rj. We assume all numbers are rational and write ρj=wj/pj. A schedule determines for each moment in time which job is processed on the machine. Each job j needs to be processed for exactly pj time units and must not start before time rj. Preemption is allowed, i.e., we may split the pj units over several intervals. Given a feasible schedule σ, we denote the completion time of job j by Cj and denote the weighted sum of completion times by Z(σ). We denote the minimum weighted sum of completion times over all feasible schedules for I by OPT(I).

In the non-preemptive setting no deterministic online algorithm can be better than 2-competitive [7]. A 2-competitive algorithm was given by Anderson and Potts [3]. A simplified proof by Queyranne [9] shows that the ratio holds with respect to the preemptive problem as well. Goemans, Wein and Williamson (cited as a personal communication in [10]) noted that scheduling at any point in time the job with highest ratio of weight over processing time gives a 2-competitive algorithm. This is sometimes called the preemptive weighted shortest processing time rule (WSPT). Megow [8] considers the shortest weighted remaining processing time rule (SWRPT) in which at any moment the job with largest ratio of weight over remaining processing time is processed. She shows that the ratio of this algorithm is at most 2 but not better than 1.21 and conjectures that it is much smaller than 2. In contrast to the non-preemptive problem, the best lower bound on the ratio for the preemptive problem is only 1.073 [5]. A randomized online algorithm with ratio 4/3 was given by Schulz and Skutella [10]. For an overview of approximation ratios for average completion time scheduling see [2], [4], [12].

The mean busy time of a job in a schedule is the average time at which it is processed. Formally, let δj(t) be the indicator function of job j in a given schedule, i.e., δj(t)=1 if job j is processed at time t and δj(t)=0 otherwise. Then, the mean busy time Mj of job j is defined by Mj=1pj0δj(t)tdt. Observe that for any job MjCjpj/2. Equality holds if and only if job j is not preempted. Given an instance I, we say that functions δj(t):[0,)[0,1] for all j define a relaxed schedule if

  • (i)

    jδj(t)1 for all t0, and

  • (ii)

    rjδj(t)dt=pj for all jJ.

Intuitively, the machine can process more than one job at a time, although at a lower speed. We restrict to functions that are piecewise constant with only a polynomial number of discontinuities. Consequently, each job finishes in finite time. Consider the problem of minimizing the mean busy time over all relaxed schedules, i.e., minimize jwjMj=jwjpj0δj(t)tdt subject to (i) and (ii). For a given instance I, we denote this problem by M(I) and its optimal value by OPTM(I). It is easy to show that the optimal solution is found by scheduling jobs preemptively in order of non-increasing ratio of wj/pj (the preemptive WSPT rule) [6]. If is a complete order of the jobs such that wj/pjwk/pk if jk, then we call the schedule that processes jobs preemptively in order of the WSPT schedule w.r.t. . For a given (relaxed) schedule Δ (defined by some functions δj(t)), we denote its weighted mean busy time by ZM(Δ).

Section snippets

Algorithm and proof

Our algorithm has a parameter c1 and it applies the preemptive WSPT rule with the restriction that a job is not preempted at a time t if it can be completed before time ct. It matches with the preemptive WSPT rule for c=1.

ONLINE(c):
At any moment t that a job completes, start the job with largest ratio of wj/pj among the available jobs. At any moment t that a new job is released and the remaining processing time of the currently running job is more than (c1)t, start the job with largest ratio

References (12)

  • F. Afrati et al.

    Designing PTASs for min-sum scheduling problems

    Discrete Applied Mathematics

    (2006)
  • F. Afrati, E. Bampis, C. Chekuri, D. Karger, C. Kenyon, S. Khanna, I. Milis, M. Queyranne, M. Skutella, C. Stein, M....
  • E.J. Anderson et al.

    Online scheduling of a single machine to minimize total weighted completion time

    Mathematics of Operations Research

    (2004)
  • J.R. Correa et al.

    LP-based online scheduling: from single to parallel machines

    Mathematical Programming

    (2009)
  • L. Epstein et al.

    Lower bounds for on-line single-machine scheduling

  • M.X. Goemans, Improved approximation algorithms for scheduling with release dates, in: Proc. 8th Symp. on Discrete...
There are more references available in the full text version of this article.

Cited by (13)

View all citing articles on Scopus
View full text