Identical-machines Scheduling
   HOME

TheInfoList



OR:

Identical-machines scheduling is an
optimization problem In mathematics, computer science and economics, an optimization problem is the problem of finding the ''best'' solution from all feasible solutions. Optimization problems can be divided into two categories, depending on whether the variables ...
in
computer science Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to practical disciplines (includi ...
and
operations research Operations research ( en-GB, operational research) (U.S. Air Force Specialty Code: Operations Analysis), often shortened to the initialism OR, is a discipline that deals with the development and application of analytical methods to improve decis ...
. We are given ''n'' jobs ''J''1, ''J''2, ..., ''Jn'' of varying processing times, which need to be scheduled on ''m'' identical machines, such that a certain objective function is optimized, for example, the
makespan In operations research, the makespan of a project is the length of time that elapses from the start of work to the end. This type of multi-mode resource constrained project scheduling problem (MRCPSP) seeks to create the shortest logical project sc ...
is minimized. Identical machine scheduling is a special case of uniform machine scheduling, which is itself a special case of
optimal job scheduling Optimal job scheduling is a class of optimization problems related to scheduling. The inputs to such problems are a list of ''jobs'' (also called ''processes'' or ''tasks'') and a list of ''machines'' (also called ''processors'' or ''workers''). The ...
. In the general case, the processing time of each job may be different on different machines; in the case of identical machine scheduling, the processing time of each job is the same on each machine. Therefore, identical machine scheduling is equivalent to multiway number partitioning. A special case of identical machine scheduling is single-machine scheduling. In the standard three-field notation for optimal job scheduling problems, the identical-machines variant is denoted by P in the first field. For example, " P, , C_\max" is an identical machine scheduling problem with no constraints, where the goal is to minimize the maximum completion time. In some variants of the problem, instead of minimizing the ''maximum'' completion time, it is desired to minimize the ''average'' completion time (averaged over all ''n'' jobs); it is denoted by P, , \sum C_i. More generally, when some jobs are more important than others, it may be desired to minimize a ''
weighted average The weighted arithmetic mean is similar to an ordinary arithmetic mean (the most common type of average), except that instead of each of the data points contributing equally to the final average, some data points contribute more than others. The ...
'' of the completion time, where each job has a different weight. This is denoted by P, , \sum w_i C_i.


Algorithms


Minimizing average and weighted-average completion time

Minimizing the ''average'' completion time (P, , \sum C_i) can be done in polynomial time. The SPT algorithm (Shortest Processing Time First), sorts the jobs by their length, shortest first, and then assigns them to the processor with the earliest end time so far. It runs in time O(''n'' log ''n''), and minimizes the average completion time on identical machines, P, , \sum C_i. * There can be many SPT schedules; finding the SPT schedule with the smallest finish time (also called OMFT - ''optimal mean finish time'') is NP-hard. Minimizing the ''weighted average'' completion time is NP-hard even on identical machines, by reduction from the knapsack problem. It is NP-hard even if the number of machines is fixed and at least 2, by reduction from the
partition problem In number theory and computer science, the partition problem, or number partitioning, is the task of deciding whether a given multiset ''S'' of positive integers can be partitioned into two subsets ''S''1 and ''S''2 such that the sum of the numbers ...
. Sahni presents an exponential-time algorithm and a polynomial-time approximation scheme for solving both these NP-hard problems on identical machines: * Optimal average-completion-time; * Weighted-average-completion-time.


Minimizing the maximum completion time (makespan)

Minimizing the ''maximum'' completion time (P, , C_\max) is NP-hard even for ''identical'' machines, by reduction from the
partition problem In number theory and computer science, the partition problem, or number partitioning, is the task of deciding whether a given multiset ''S'' of positive integers can be partitioned into two subsets ''S''1 and ''S''2 such that the sum of the numbers ...
. Many exact and approximation algorithms are known. Graham proved that: * Any
list scheduling List scheduling is a greedy algorithm for Identical-machines scheduling. The input to this algorithm is a list of jobs that should be executed on a set of ''m'' machines. The list is ordered in a fixed order, which can be determined e.g. by the pri ...
algorithm (an algorithm that processes the jobs in an arbitrary fixed order, and schedules each job to the first available machine) is a 2-1/m approximation for ''identical'' machines. The bound is tight for any ''m''. This algorithm runs in time O(''n''). * The specific list-scheduling algorithm called Longest Processing Time First (LPT), which sorts the jobs by descending length, is a 4/3-1/3m approximation for ''identical'' machines. It is also called greedy number partitioning. Coffman, Garey and Johnson presented a different algorithm called multifit algorithm, using techniques from bin packing, which has an approximation factor of 13/11≈1.182. Huang and Lu presented a simple polynomial-time algorithm that attains an 11/9≈1.222 approximation in time O(''m'' log ''m'' + ''n''), through the more general problem of '' maximin-share allocation of chores''. Sahni presented a PTAS that attains (1+ε)OPT in time O(n\cdot (n^2 / \epsilon)^). It is an FPTAS if ''m'' is fixed. For m=2, the run-time improves to O(n^2 / \epsilon). The algorithm uses a technique called ''interval partitioning''. Hochbaum and Shmoys presented several approximation algorithms for any number of identical machines (even when the number of machines is not fixed): * For any ''r'' >0, an algorithm with approximation ratio at most (6/5+2−''r'' ) in time O(n(r+\log)). * For any ''r'' >0, an algorithm with approximation ratio at most (7/6+2−''r'' ) in time O(n(r m^4+\log)). * For any ''ε''>0, an algorithm with approximation ratio at most (1+ε) in time O((n/\varepsilon)^) . This is a PTAS. Note that, when the number of machines is a part of the input, the problem is strongly NP-hard, so no FPTAS is possible. Leung improved the run-time of this algorithm to O\left((n/\varepsilon)^\right).


Maximizing the minimum completion time

Maximizing the minimum completion time (P, , C_\min) is applicable when the "jobs" are actually spare parts that are required to keep the machines running, and they have different life-times. The goal is to keep machines running for as long as possible. The LPT algorithm attains at least \frac of the optimum. Woeginger presented a PTAS that attains an approximation factor of 1- in time O(c_n\log), where c_ a huge constant that is exponential in the required approximation factor ε. The algorithm uses Lenstra's algorithm for
integer linear programming An integer programming problem is a mathematical optimization or feasibility program in which some or all of the variables are restricted to be integers. In many settings the term refers to integer linear programming (ILP), in which the objective ...
.


General objective functions

Alon, Azar, Woeginger and Yadid consider a more general objective function. Given a positive real function ''f'', which depends only on the completion times ''Ci'', they consider the objectives of minimizing \sum_^m f(C_i), minimizing \max_^m f(C_i), maximizing \sum_^m f(C_i), and maximizing \min_^m f(C_i). They prove that, if ''f'' is non-negative,
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
, and satisfies a strong continuity assumption that they call "F*", then both minimization problems have a PTAS. Similarly, if ''f'' is non-negative,
concave Concave or concavity may refer to: Science and technology * Concave lens * Concave mirror Mathematics * Concave function, the negative of a convex function * Concave polygon, a polygon which is not convex * Concave set * The concavity of a ...
, and satisfies F*, then both maximization problems have a PTAS. In both cases, the run-time of the PTAS is O(''n''), but with constants that are exponential in 1/''ε.''


See also

* Fernandez's method


References


External links


Summary of parallel machine problems without preemtion
{{Scheduling problems Optimal scheduling Number partitioning