Conceptio › Archive › arXiv CS
arXiv CS open access

Approximation Algorithms for Minimizing the Makespan in Distributed Proportionate Flow Shops

Dvir Shabtay et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
kerneloperating-systemsvirtualization
We study the distributed proportionate flow shop problem, in which $n$ jobs are assigned to $k$ identical flow shops with $m$ machines each, and every job has the same processing time on all machines. The makespan of a flow shop equals its total processing time plus $m-1$ times its longest processin
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

Approximation Algorithms for Minimizing the Makespan in Distributed Proportionate Flow Shops Dvir Shabtay

arXiv:2612.02642v1 [cs.DS] 1 Dec 2026

Department of Industrial Engineering and Management Ben-Gurion University of the Negev, Beer Sheva, Israel ORCID: https://orcid.org/0000-0002-2709-599X

Baruch Mor The Department of Economics and Business Administration Ariel University, Ariel, Israel ORCID: https://orcid.org/0000-0002-6909-8160

Gur Mosheiov School of Business Administration, The Hebrew University, Jerusalem, Israel Lev Academic Center, Jerusalem, Israel ORCID: https://orcid.org/0000-0002-9052-9375

Abstract We study the distributed proportionate flow shop problem, in which n jobs are assigned to k identical flow shops with m machines each, and every job has the same processing time on all machines. The makespan of a flow shop equals its total processing time plus m − 1 times its longest processing time, so the problem reduces to an assignment problem combining a load term with a bottleneck term. It generalizes P || Cmax , and we show it is NP-hard for k = 2 and strongly NP-hard when k is part of the input, for every fixed m. We analyze list scheduling algorithms that assign each job to a flow shop with the least load, the least current makespan, or the least resulting makespan. With arbitrary ordering, the load and resulting-makespan rules retain tight bound 2 − k1 , whereas the current-makespan rule  Graham’s    deteriorates to 1 1 1 1 1+ 2− m 1− k . With LPT ordering, all three rules are 1+ 1− m 1−  k -approximations. 1 Enumerating the leading job of each flow shop yields a 1 + m+2 1 − k1 -approximation, and  1 1 a MULTIFIT-type algorithm achieves 1 + m+1 1 − k1 for k ≥ 3 and 1 + 2(m+2) for k = 2; both ratios tend to 1 as m → ∞. On 1800 random instances, the MULTIFIT-type algorithm is within 0.17% of the optimum on average and optimal on 71% of them. Keywords: distributed scheduling; proportionate flow shop; makespan; approximation algorithms; list scheduling; worst-case analysis

1

Introduction

Manufacturing has shifted away from the single-factory paradigm towards distributed production. A firm now operates several plants, often in different locations. The motivation is to be closer to customers and suppliers, to increase capacity and flexibility, and to reduce production costs and risks. In such an environment, production involves two interdependent decisions: • assignment decisions, which determine the factory in which each job is processed; and 1

• scheduling decisions, which determine the exact time interval in which each operation is processed within each factory. The two decisions interact: the best assignment depends on how well each factory can sequence the jobs it receives, and the best sequence in a factory depends on which jobs are assigned to it. When the jobs require multi-stage processing, every factory is itself a flow shop. Classical parallel machine models then no longer apply, because they treat each factory as a single machine. This gives rise to the distributed permutation flow shop scheduling problem (DPFSP), introduced by Naderi and Ruiz [22]. In this problem, n jobs are processed in k identical factories, each of which is a flow shop with m machines, and the objective is typically to minimize the makespan over all factories. Following the three-field notation of Graham et al. [12], we refer to this problem as P k(F m) || Cmax . Since its introduction, the DPFSP and its many variants have attracted considerable attention, and the vast majority of this literature develops constructive heuristics and metaheuristics and evaluates them computationally. Algorithms with provable worst-case performance guarantees, in contrast, are scarce. This is not surprising: the DPFSP contains the single-factory flow shop problem F m || Cmax , which is already strongly NP-hard for m ≥ 3 [8], together with an additional assignment layer. The worst-case analysis therefore has to deal simultaneously with a hard sequencing problem inside each factory and a hard partitioning problem across factories. In this paper we identify a natural special case in which the sequencing layer disappears, so that the combinatorial core of the assignment decision can be studied analytically, and we ask how much of the classical theory of load balancing carries over to it. Proportionate flow shops. A flow shop is proportionate if the processing time of each job is the same on all machines. We denote by pj the processing time of job j on each machine. Proportionate flow shops model production lines in which the work content of a job is determined by an attribute of the job itself, such as its size or quantity, rather than by the stage. This is the case, for example, when the stages of a line are balanced so that each operation of a job takes roughly the same time. In flow shop scheduling, a permutation schedule is a schedule in which the jobs are processed in the same order on all m machines. A key structural property of a proportionate flow shop with m machines is that every permutation schedule minimizes the makespan. In fact, every permutation schedule of a set J ′ of jobs has the same (optimal) makespan Cmax (J ′ ) = P (J ′ ) + (m − 1) pmax (J ′ ),

(1)

where P (J ′ ) and pmax (J ′ ) denote the total and the maximal processing time of the jobs in J ′ , respectively [26]. In words, the longest job acts as a bottleneck: it is paid once on each of the m − 1 machines other than the one on which the total work is counted, while all other jobs contribute only their processing time. Consequently, within each factory the sequencing decision is trivial, and the whole difficulty of the distributed problem lies in the assignment of jobs to factories. The distributed proportionate flow shop. We consider a distributed flow shop scheduling problem that involves a set J of n jobs and k identical proportionate flow shops operating in parallel, each consisting of m machines. The processing time of job j, denoted by pj > 0, is identical on all machines. A solution is a partition π = {J1 , . . . , Jk } of J into k pairwise disjoint (possibly empty) subsets, where the jobs in Jℓ are processed in flow shop ℓ ∈ [k] := {1, . . . , k}. We write X Lℓ := P (Jℓ ) = pj and pmax (Jℓ ) = max pj , j∈Jℓ

j∈Jℓ

2

both equal to 0 if Jℓ = ∅. The quantity Lℓ is called the load of flow shop ℓ. By (1), our objective is to find a partition π = {J1 , . . . , Jk } minimizing  Cmax (π) := max{Cmax (Jℓ )} = max P (Jℓ ) + (m − 1) pmax (Jℓ ) . (2) ℓ∈[k]

ℓ∈[k]

Using the three-field notation, we refer to this problem as P k(F m) | prop | Cmax , and we denote the optimal value by OPT. Throughout, pmax and pmin denote the largest and the smallest processing time in the instance. The makespan Cmax (Jℓ ) of flow shop ℓ in (2) combines an additive term with a bottleneck term that depends only on its longest job. These two terms pull in opposite directions. The additive term calls for spreading the work evenly among the flow shops. The bottleneck term, on the other hand, rewards grouping long jobs together, since a flow shop pays (m − 1)pmax only once. The following small example illustrates the tension. Let k = 2 and m = 3, and consider two jobs of length 1 and six jobs of length 12 . Balancing the loads puts one long job and three short jobs on each flow shop, and each flow shop has makespan 52 + 2 · 1 = 92 . Grouping the two long jobs on one flow shop gives makespans 2 + 2 · 1 = 4 and 3 + 2 · 12 = 4, which is better, although the loads are unbalanced (2 versus 3). This tension is precisely what distinguishes the problem from classical load balancing, and it is what makes several natural list scheduling rules behave differently from their classical counterparts, as our analysis shows. Approximation algorithms. Since the problem is NP-hard (Theorem 1), we study approximation algorithms. For an algorithm H and an instance I, let Cmax (πH (I)) denote the makespan of the solution produced by H, and let OPT(I) denote the optimal makespan. Definition 1. Let ρ ≥ 1. An algorithm H is a ρ-approximation algorithm if it runs in polynomial time and Cmax (πH (I)) ≤ ρ · OPT(I) for every instance I. The approximation ratio (or worst-case ratio) of H is supI Cmax (πH (I))/OPT(I), the smallest ρ for which H is a ρ-approximation algorithm. A bound ρ on the approximation ratio is tight if the ratio of H equals ρ, and asymptotically tight if there is a family of instances {Iε } with Cmax (πH (Iε ))/OPT(Iε ) → ρ; in this case no smaller bound holds. A lower bound on the approximation ratio is established by a single instance, or a family of instances, with the stated ratio. When a bound depends on a parameter such as m, we say that it is asymptotically tight as m → ∞ if the ratio of upper to lower bound tends to 1. Finally, a polynomial-time approximation scheme (PTAS) is a family of algorithms that contains, for every fixed ε > 0, a (1 + ε)-approximation algorithm whose running time is polynomial in the input size; it is a fully polynomial-time approximation scheme (FPTAS) if the running time is also polynomial in 1/ε. P || Cmax as a special case. When m = 1, every flow shop consists of a single machine, the bottleneck term in (1) vanishes, and Cmax (Jℓ ) = P (Jℓ ). The distributed proportionate flow shop problem then coincides with the classical problem of minimizing the makespan on k identical parallel machines, P || Cmax . Hence the distributed proportionate flow shop problem generalizes P || Cmax , and the case m = 1 is a natural benchmark for approximation. For P || Cmax , Graham proved two classical results:  • list scheduling, which assigns each job to a least loaded machine, is a 2− k1 -approximation [10]; 3

• with the jobs in longest processing time (LPT) order, the same rule is a mation [11].

1 4 3 − 3k



-approxi-

These two results are the starting point of a rich theory, surveyed in Section 2, that culminated in approximation schemes [15, 1, 16]. A guiding question of this paper is therefore which of the classical guarantees survive when every machine is replaced by a proportionate flow shop with m machines, and how the guarantees depend on m. Since m = 1 is a special case, no algorithm can do better on our problem than on P || Cmax ; the question is how much worse it can do, and whether the additional structure of the bottleneck term can be exploited. Our contribution. We first show that the problem is NP-hard for k = 2 and strongly NP-hard when k is part of the input, for every fixed m ≥ 1, so that the hardness does not stem from the degenerate case m = 1 alone. We then analyze six list scheduling algorithms, which differ in two respects: • the order of the jobs, which is either arbitrary or LPT; and • the assignment rule, which sends each job to a flow shop with the least load (LL), the least current makespan (LC), or the least resulting makespan (LR). All three rules coincide with Graham’s rule when m = 1, but they differ for m ≥ 2 in how they account for the bottleneck term. Finally, we enumerate the leading job of each flow shop, the job the maximal processing time in each flow shop. This partitions the problem into  withk−1 n−1 = O(n ) restricted subproblems, which we solve by list scheduling with LPT ordering and k−1 eligibility constraints. Our results are summarized in Table 1. Algorithm

Upper bound (m ≥ 2)

Lower bound

Reference

H1 : arbitrary, LL

2 − k1

2 − k1 (every m)

Thm. 2

H3 : arbitrary, LR

2 − k1

2 − k1 (every m) R(k, m) → 3 − k2

Thm. 2 Thm. 3, Prop. 1

same (every m)

Thms. 4, 5

G(k, m) → 2 − k1

Thms. 4, 5

same

Thms. 4, 5

1 1 + 3m+4

Thm. 6, Prop. 3

same (every m)

Thm. 7

1 1 + 3m+5 1 1 + 3m+5

Thm. 8, Prop. 4

H4 : arbitrary, LC H2 : LPT, LL H5 = H6 : LPT, LR / LC k=2 Enumeration + makespan balancing Enumeration + load balancing MF (bisection + first fit), k ≥ 3 k=2

 1

1+ 2− m

 1

1− k   1 1 + 1 − m 1 − k1   1 1+ 1− m 1 − k1 m−1 1 + 2(m+1)  1 1 − k1 1 + m+2   1 1+ 1− m 1 − k1  1 1 + m+1 1 − k1 1 1 + 2(m+2)

Thm. 8, Prop. 4

Table 1: Summary of the approximation results. All lower bounds are asymptotic, i.e., they are approached arbitrarily closely by a family of instances. For m = 1, all upper bounds reduce to 1 (LPT order). Graham’s bounds 2 − k1 (arbitrary order) and 34 − 3k 1 For arbitrary order, balancing loads or resulting makespans retains Graham’s tight  bound  2− k 1 1 for every m. Balancing current makespans, however, deteriorates to 1 + 2 − m 1 − k , which tends to 3 − k2 , and this is tight as m → ∞. The reason is that the current makespan ignores the increase of the bottleneck term  caused  by a job that becomes the longest job on its flow shop. 1 1 LPT ordering yields 1 + 1 − m 1 − k for each of the three rules. Under LPT ordering, the LR

4

and LC rules produce exactly the same solution, and for k = 2 they are strictly better than the LL rule. For every rule, however, the benefit of LPT vanishes as m grows, because the bottleneck term dominates. To  overcome this, we enumerate the leading jobs of the flow shops and obtain 1 a 1 + m+2 1 − k1 -approximation in O(n log n + knk ) time. Unlike the list scheduling bounds, this ratio improves with m, and it tends to 1 as m → ∞. Interestingly, the improvement requires makespan balancing within each subproblem: combined with load balancing, enumeration does not improve on plain LPT list scheduling in the worst case. Finally, we show that a MULTIFIT-type algorithm, which searches for a target makespanand fills the flow shops one after the other with 1 1 the longest jobs, achieves a ratio of 1 + m+1 for k = 2, with running 1 − k1 for k ≥ 3 and 1 + 2(m+2) time polynomial in k. Its analysis rests on a leading-job domination lemma: unless the target is already close to OPT, the leading jobs chosen by the algorithm are not longer than those of an optimal solution. On the methodological side, all our upper bounds rest on a small set of tools that we state once: a reduction to critical instances, in which the last job determines the makespan; a single estimate of the makespan of the flow shop that receives this job; and one family of bad instances, consisting of one long job and many short ones, which shows tightness for several algorithms at once. We believe these tools are useful for other distributed scheduling models in which the cost of a factory depends on both the total work and the longest job. Our algorithms complement the approximation schemes known for parallel flow shops (Section 2). These schemes apply to our problem when k and m are fixed, or when m = 2, but they rely on dynamic programming, enumeration of the schedules of large jobs, or linear programming, and their running times are polynomials whose degree depends on 1/ε or on the number of flow shops. In contrast, our algorithms are simple greedy rules that are used in practice, run in O(n log n) or O(n log n + knk ) time, and come with explicit, mostly tight, guarantees for every m and k. In particular, for m ≥ 3 and k part of the input, we are not aware of earlier approximation guarantees for this special case. Organization. Section 2 reviews the related literature. Section 3 presents the complexity result, the lower bounds, and a set of general tools that are used repeatedly in the analysis: a reduction to critical instances, a basic upper bound for list scheduling algorithms, and a family of instances that shows tightness for several algorithms. Section 4 analyzes list scheduling with arbitrary ordering, Section 5 analyzes LPT ordering, Section 6 presents the enumeration-based algorithms, Section 7 presents the MULTIFIT-type algorithm, and Section 8 reports computational experiments. Section 9 concludes.

2

Related literature

Distributed and multi-factory scheduling. Multi-factory scheduling problems combine the assignment of jobs to factories with the scheduling of the jobs within each factory; see the survey of Behnamian and Fatemi Ghomi [2]. The DPFSP was introduced by Naderi and Ruiz [22], who proposed mixed integer programming formulations and constructive heuristics, and it has since become one of the most studied distributed scheduling models. The literature covers a large number of variants, including different objectives, additional constraints within the factories, and non-identical factories; see the review and classification of Pérez-González and Framinan [25]. The prevailing solution approaches are constructive heuristics and metaheuristics, with iterated greedy algorithms as a prominent and successful example [27]. These methods are evaluated on benchmark instances, and to the best of our knowledge they do not come with worst-case performance guarantees.

5

Parallel flow shops. The same assignment-plus-sequencing structure has been studied in the theoretical scheduling literature under the name parallel (identical) flow shops, mostly for twostage flow shops. In the parallel two-stage flow shop problem, each job is processed on one of k identical two-machine flow shops, and the jobs assigned to each flow shop are sequenced optimally by Johnson’s rule [17]. The problem was studied as early as Kovalyov [18], who gave a fully polynomialtime approximation scheme (FPTAS) for a fixed number of flow shops; He, Kusiak and Artiba [13] described an application in glass manufacturing, formulated it as a mixed integer program and proposed a heuristic; and Vairaktarakis and Elhafsi [30] gave a pseudo-polynomial algorithm for two flow shops. Zhang and van de Velde [34] presented the first approximation algorithms with fixed worst-case ratios, 23 for two flow shops and 12 7 for three, by cutting the Johnson sequence into parts. Dong et al. [5] gave an FPTAS for every fixed number of flow shops. When the number of flow shops is part of the input, Wu and Chen [31] obtained a (2 + ε)-approximation, and Dong et al. [6] obtained a polynomial-time approximation scheme (PTAS), which is best possible because the problem is strongly NP-hard. For more than two stages, Tong et al. [29] gave a PTAS when both the number of flow shops and the number of stages are fixed. A proportionate flow shop with m machines is a special case of an m-stage flow shop, so these results apply to our problem: there is an FPTAS when m = 2 and k is fixed [18, 5], a PTAS when m = 2 and k is part of the input [6], and a PTAS when both k and m are fixed [29]. To the best of our knowledge, the approximability of the case m ≥ 3 with k part of the input is open even for proportionate flow shops. Proportionate flow shops. Proportionate flow shops have been studied since the early 1980s; see Ow [23], the textbook of Pinedo [26], and the review of Panwalkar, Smith and Koulamas [24], which covers the broader class of ordered flow shops. The makespan identity (1) makes many single-shop problems tractable or amenable to sharp analysis, and the model has been extended in many directions, including controllable processing times [3, 28], batching machines [14], due-date related objectives with job rejection [20], two-agent models [32], and just-in-time objectives on multiple machines [9]. To the best of our knowledge, the only study addressing the distributed proportionate flow shop problem is by Mor and Shapira [21]. Their work focuses on developing a pseudo-polynomial-time algorithm, whereas our research focuses on designing practical approximation algorithms based on simple job-machine assignment rules. Load balancing and list scheduling. For P || Cmax , Graham’s analyses of list scheduling [10] and of LPT [11] are the classical starting points. The MULTIFIT algorithm of Coffman, Garey and Johnson [4] improves on LPT by a bin-packing based search. Hochbaum and Shmoys [15] gave a PTAS, and efficient PTASs were later obtained by Alon et al. [1] and Jansen [16]. Our problem adds to the load a bottleneck term that depends only on the longest job of each flow shop. Cost functions of this type, which combine a sum and a maximum, interpolate between the two classical batching models: in serial batching the processing time of a batch is the sum of the processing times of its jobs, whereas in parallel batching it is the maximum [19]. In our model, the makespan of a flow shop is the sum plus m − 1 times the maximum, so the weight of the parallel-batching component grows with m. This is the reason why the behavior of list scheduling changes with m: for m = 1 only the sum matters, whereas for large m the maximum dominates.

6

3

Preliminaries

3.1

Basic observations

When n ≤ k, assigning each job to a different flow shop is optimal, since every solution has makespan at least mpmax (see Lemma 2 below), and this solution attains it. Hence, from now on we assume that n > k, unless stated otherwise. Lemma 1. For every instance with n > k jobs, there exists an optimal solution in which every flow shop is assigned at least one job. Proof. Let π be an optimal solution with the minimum number of empty flow shops, and assume that flow shop ℓ′ is empty. Since n > k, some flow shop ℓ holds at least two jobs. Move any job j ∈ Jℓ to ℓ′ . The makespan of ℓ does not increase, because both its load and its maximal processing time do not increase. The new makespan of ℓ′ is mpj , and mpj ≤ P (Jℓ ) + (m − 1)pmax (Jℓ ) = Cmax (Jℓ ), since P (Jℓ ) ≥ pj and pmax (Jℓ ) ≥ pj . Hence the makespan does not increase, and the new optimal solution has fewer empty flow shops, a contradiction.

3.2

Computational complexity

For m = 1, our problem is P || Cmax , which is NP-hard for every fixed k ≥ 2 (by a reduction from Partition) and strongly NP-hard when k is part of the input (by a reduction from 3Partition) [7]. We next show that these hardness results do not stem from the degenerate case m = 1 alone. Theorem 1. For every fixed m ≥ 1, problem P k(F m) | prop | Cmax is NP-hard for k = 2 and strongly NP-hard when k is part of the input. Proof. We reduce the decision version of P || Cmax to the decision version of our problem. Consider an instance of P || Cmax with k machines, a set [n] of jobs with positive integer processing times p1 , . . . , pn , and a threshold T ; the question is whether there is a partition {J1 , . . . , Jk } of [n] with P (Jℓ ) ≤ T for every ℓ ∈ [k]. Let B = T + 1. We construct an instance of P k(F m) | prop | Cmax with k flow shops, each with m machines, and n + k jobs: the n small jobs j ∈ [n] with processing times pj , and k big jobs n + 1, . . . , n + k with processing time B each. The threshold is mB + T . The construction is polynomial, and all numbers are bounded by a polynomial in the numbers of the original instance; hence the reduction preserves both NP-hardness for k = 2 and strong NP-hardness when k is part of the input. (⇒) Let {J1 , . . . , Jk } be a partition with P (Jℓ ) ≤ T for every ℓ. Define Jℓ′ = Jℓ ∪ {n + ℓ}. Since pj ≤ T < B for every small job, pmax (Jℓ′ ) = B, and by (1) Cmax (Jℓ′ ) = B + P (Jℓ ) + (m − 1)B ≤ mB + T

for every ℓ ∈ [k].

(⇐) Let {J1′ , . . . , Jk′ } be a solution with makespan at most mB + T . If some Jℓ′ contains two big jobs, then Cmax (Jℓ′ ) ≥ 2B +(m−1)B = (m+1)B > mB +T , a contradiction. Hence each flow shop holds exactly one big job, and without loss of generality big job n + ℓ is in Jℓ′ . Let Jℓ = Jℓ′ \ {n + ℓ} be the set of small jobs in flow shop ℓ. Then pmax (Jℓ′ ) = B and mB + P (Jℓ ) = Cmax (Jℓ′ ) ≤ mB + T, so P (Jℓ ) ≤ T for every ℓ, and {J1 , . . . , Jk } is a yes-certificate for the P || Cmax instance. 7

3.3

Lower bounds

Lemma 2. Let δ be a permutation of the jobs in non-increasing order of processing times. Accordingly, pδ(1) ≥ pδ(2) ≥ · · · ≥ pδ(n) . Then  P (J) (m − 1) pmax + (k − 1)pmin + (n > k), OPT ≥ LB1 := k k OPT ≥ LB2 := mpmax , OPT ≥ LB3 := mpδ(k) + pδ(k+1)

(n > k).

Proof. Let π ∗ = {J1∗ , . . . , Jk∗ } be an optimal solution. For every ℓ ∈ [k] we have OPT ≥ Cmax (Jℓ∗ ) = P (Jℓ∗ ) + (m − 1)pmax (Jℓ∗ ). Summing these k inequalities yields X X X pmax (Jℓ∗ ). (3) pmax (Jℓ∗ ) = P (J) + (m − 1) P (Jℓ∗ ) + (m − 1) k OPT ≥ ℓ∈[k]

ℓ∈[k]

ℓ∈[k]

The last equality in (3) can be justifiedP as follows. The fact that any of the jobs is assigned to one of the flow shops, leads to the fact that ℓ∈[k] pmax (Jℓ∗ ) = P (J). As we consider only instances with n > k, there exists an optimal solution such that every flow shop is nonempty by Lemma 1. The longest job in the instance will be assigned to one of the flow shops, while the maximal processing time on either one of the other flow shops is at least pmin , which gives LB1 . The flow shop that holds a longest job has makespan at least mpmax , which gives LB2 . Finally, by the pigeonhole principle, two of the k + 1 longest jobs δ(1), . . . , δ(k + 1) share a flow shop. The longer of the two has processing time at least pδ(k) , and the shorter has processing time at least pδ(k+1) . Hence, that flow shop has makespan at least mpδ(k) + pδ(k+1) , which gives LB3 .

3.4

List scheduling algorithms

All the algorithms in Sections 4 and 5 are list scheduling algorithms: the jobs are arranged in a list and assigned one by one, in the order of the list, to the flow shops. When job j is considered, let Jℓ denote the set of jobs already assigned to flow shop ℓ. We use three assignment rules: • LL (least load ): assign j to a flow shop minimizing the load P (Jℓ ); • LC (least current makespan): assign j to a flow shop minimizing Cℓ := Cmax (Jℓ ) = P (Jℓ ) + (m − 1)pmax (Jℓ ); • LR (least resulting makespan): assign j to a flow shop minimizing Cmax (Jℓ ∪ {j}) = P (Jℓ ) + pj + (m − 1) max{pmax (Jℓ ), pj }. In all cases, ties are broken in favor of the smallest flow shop index. Combining these rules with an arbitrary list or with an LPT list (p1 ≥ p2 ≥ · · · ≥ pn , ties broken by index) yields the six algorithms LL LR LC arbitrary order H1 H3 H4 LPT order H2 H5 H6 For an algorithm H, we denote its solution on instance I by πH (I) (or simply πH ). For m = 1 the three rules coincide, since Cmax (Jℓ ) = P (Jℓ ) and Cmax (Jℓ ∪ {j}) = P (Jℓ ) + pj . Hence H1 , H3 , H4 coincide with Graham’s list scheduling, and H2 , H5 , H6 coincide with Graham’s LPT algorithm. The following simple observation is used repeatedly. 8

Lemma 3. Each of the algorithms H1 , . . . , H6 assigns a job to an empty flow shop whenever one exists. Consequently, if a job is assigned to a nonempty flow shop, then at that moment all k flow shops are nonempty. Proof. Let j be the job under consideration. An empty flow shop has load 0 and current makespan 0, whereas every nonempty flow shop has positive load and positive current makespan; hence LL and LC prefer an empty flow shop. Under LR, the resulting makespan of an empty flow shop is mpj , whereas for a nonempty flow shop ℓ it is P (Jℓ ) + pj + (m − 1) max{pmax (Jℓ ), pj } ≥ P (Jℓ ) + mpj > mpj . Hence LR also prefers an empty flow shop.

3.5

Reduction to critical instances

The upper bounds in this paper are all proved by the same first step, which we now state once. Consider an algorithm H that first places a (possibly empty) fixed set of jobs on prescribed flow shops, and then processes the remaining jobs one by one in the order of a list, where the flow shop chosen for a job depends only on the current partial assignment and on the job itself. All list scheduling algorithms H1 , . . . , H6 are of this form (with no pre-placed jobs), and so are the algorithms for the restricted subproblems of Section 6 (where the pre-placed jobs are the anchors). Definition 2. An instance I is critical for H if the last job of the list is assigned by H to a flow shop that attains the makespan Cmax (πH (I)). Next, we show that to prove H is a ρ-approximation algorithm, that is, Cmax (πH (I)) ≤ ρ OPT(I) for every instance I, it suffices to establish this inequality for critical instances alone. This lemma serves as the starting point for most of the approximation proofs that follow. Lemma 4. Let I be an instance, let ℓ∗ be a flow shop with Cmax (Jℓ∗ ) = Cmax (πH (I)). Let t be the last job of the list assigned to ℓ∗ , and let It be the instance obtained from I by deleting all jobs that appear after t in the list (the pre-placed jobs are kept). Then: (i) H assigns the jobs of It exactly as it assigns them in I; (ii) Cmax (πH (It )) = Cmax (πH (I)), and It is critical for H; (iii) OPT(It ) ≤ OPT(I), where OPT refers to the problem under consideration, provided that deleting jobs from a feasible solution keeps it feasible. In particular, Cmax (πH (It ))/OPT(It ) ≥ Cmax (πH (I))/OPT(I). Hence, to prove that H is a ρapproximation, it suffices to prove Cmax (πH (I)) ≤ ρ OPT(I) for critical instances I. Moreover, if H uses an LPT list, then so does It , and the last job of It is a shortest job of the list of It . Proof. (i) The choice for each job depends only on the jobs placed before it, and these are the same in I and It . (ii) By (i), flow shop ℓ∗ holds exactly the same jobs in πH (It ) and in πH (I), since all its jobs precede or equal t in the list. Every other flow shop holds a subset of the jobs it holds in πH (I), and the makespan (1) is monotone under taking subsets. Hence the makespan of πH (It ) equals Cmax (Jℓ∗ ) = Cmax (πH (I)), and it is attained by ℓ∗ , which receives the last job t of It . (iii) Deleting the jobs that follow t from an optimal solution for I yields a feasible solution for It whose makespan is not larger, again by monotonicity. The last claim is immediate, since a prefix of a list sorted in LPT order is sorted in LPT order. 9

Remark 1. Lemma 4 replaces the “smallest counterexample” arguments that are often used in the analysis of list scheduling. If the flow shop ℓ∗ in a critical instance holds only the last job t (and no pre-placed job), then Cmax (πH ) = mpt ≤ mpmax ≤ OPT by Lemma 2, and there is nothing to prove. For H1 , . . . , H6 , if ℓ∗ holds at least two jobs, then by Lemma 3 all flow shops are nonempty when t is assigned, so the critical instance has at least k + 1 jobs, and the bounds LB1 and LB3 of Lemma 2 apply to it.

3.6

A basic upper bound and two consequences

Most of our upper bounds follow from a single estimate of the makespan of the flow shop that receives the last job. For an instance I and 0 < p ≤ pmax define U (p) :=

P (J) − p + p + (m − 1)pmax . k

(4)

The interpretation is the following: if a job of length p is added to a flow shop whose load is at most the average load P (J)−p of the other jobs, then the resulting makespan is at most U (p), since k the maximal processing time of every flow shop is at most pmax . Lemma 5. For every instance and every 0 < p ≤ pmax :  (a) U (p) ≤ 2 − k1 OPT;   (b) U (pmin ) ≤ OPT + 1 − k1 (m − 1)pmax − (m − 2)pmin . Proof. (a) Using p ≤ pmax ,   1 P (J)  1 1 P (J) + (m − 1)pmax + 1 − p≤ + m− pmax = LB0 + m 1 − pmax . k k k k k  Since LB0 ≤ OPT and mpmax = LB2 ≤ OPT (Lemma 2), we obtain U (p) ≤ OPT + 1 − k1 OPT. (b) Subtracting LB1 from U (pmin ) gives  1  1 (m − 1)(k − 1) U (pmin ) − LB1 = (m − 1)pmax 1 − + 1− pmin − pmin k k k   1  (m − 1)pmax − (m − 2)pmin , = 1− k U (p) =

and the claim follows from LB1 ≤ OPT. The bracket in Lemma 5(b) reappears in the analysis of H2 , of H5 = H6 (Theorem 4), and of enumeration with load balancing (Theorem 7). The next lemma turns it into an approximation ratio once and for all. Lemma 6. Let m ≥ 2, 1 ≤ q ≤ k, and let Z, B, a, b be reals with B ≤ OPT, 0 ≤ a ≤ OPT/m and b ≥ 0. If   1  Z ≤B+ 1− (m − 1)a − (m − 2)b , q   1 then Z ≤ 1 + 1 − m 1 − k1 OPT. Proof. Since m ≥ 2 and b ≥ 0, we have (m − 1)a − (m − 2)b ≤ (m − 1)a ≤ m−1 m OPT. If the bracket is negative, then Z ≤ B ≤ OPT and there is nothing to prove. Otherwise, using 0 ≤ 1 − 1q ≤ 1 − k1 and B ≤ OPT,  1  1 Z ≤ OPT + 1 − 1− OPT. k m 10

3.7

A family of bad instances

Several of our lower bounds use the same family of instances, in which one long job competes with many short ones. For q ≥ 2 let ε = 1/q and let Fε consist of one long job of length 1 and N = m(k − 1)q short jobs of length ε, so that P (J) = 1 + m(k − 1). In all uses below, ε < 1. Lemma 7. For the instance Fε : (i) OPT ≤ m + (m − 1)ε, and this value is attained by a solution in which the long job is alone on one flow shop. (ii) If the short jobs are assigned one by one, each to a flow shop with the least load, starting from given initial loads, then at the end every flow shop that received at least one short job has load at most Lmin + ε, where Lmin is the minimal final load. (iii) Suppose that the short jobs are assigned first, by any rule that always selects a flow shop with the least load, and the long job is then assigned to a flow shop with the least load. Then the  1 resulting makespan is at least m + m 1 − k − ε. (iv) Suppose that the long job is placed first on some flow shop ℓ1 , every other flow shop starts with load at most ε (that is, empty or with a single short job), and the remaining short jobs are assigned one by one, each to a flow  shop with the least load. If m ≥ 2, the resulting makespan is at least m + (m − 1) 1 − k1 − ε. Proof. (i) Place the long job alone on one flow shop, which gives makespan m, and mq short jobs on each of the other k − 1 flow shops, which gives makespan mqε + (m − 1)ε = m + (m − 1)ε. (ii) Consider a flow shop ℓ and the last short job assigned to it. At that moment, the load of ℓ was minimal, hence at most the final minimal load Lmin , since loads never decrease. After the assignment, its load is at most Lmin + ε, and it does not change afterwards. (iii) Starting from empty flow shops, the short jobs are assigned to least loaded flow shops, so every flow shop receives a short job  and, by (ii), all loads lie in [Lmin , Lmin + ε]. Hence kLmin + kε ≥ m(k − 1), i.e., Lmin ≥ m 1 − k1 − ε. The long job is placed on a least loaded flow shop, whose makespan becomes at least Lmin + 1 + (m − 1) · 1 ≥ m + m 1 − k1 − ε. (iv) We first show that ℓ1 receives a short job. Otherwise, at every assignment of a short job, the selected flow shop had load at most the load of ℓ1 , which is 1; hence every other flow shop ends with load at most 1+ε (this also holds for a flow shop that is never selected, whose load stays at most ε). The total load would then be at most 1 + (k − 1)(1 + ε) < 1 + m(k − 1) = P (J), since 1 + ε < 2 ≤ m, a contradiction. Consider the first moment at which ℓ1 is selected. Its load is then at least 1 and minimal, so every other flow shop has load at least 1 > ε at that moment, and hence has already been selected at least once. Therefore every flow shop receives a short job by the least-load rule, and by (ii) all final loads lie in [Lmin , Lmin + ε]. Consequently kLmin + kε ≥ P (J) = 1 + m(k − 1), and the makespan of ℓ1 , which contains the long job, is at least  1 + m(k − 1) 1 Lmin + (m − 1) · 1 ≥ − ε + (m − 1) = m + (m − 1) 1 − − ε. k k

4

List scheduling with arbitrary ordering

4.1

Least load and least resulting makespan

In H1 the jobs are considered in an arbitrary order, and each job is assigned to a least loaded flow shop. Note that a least loaded flow shop does not necessarily have the least makespan. In 11

H3 each job j is assigned to a flow shop minimizing the resulting makespan P (Jℓ ) + pj + (m − 1) max{pmax (Jℓ ), pj }. Both rules lead to the same guarantee, with the same proof.  Theorem 2. H1 and H3 are 2 − k1 -approximation algorithms, with running times O(n log k) and O(nk), respectively. For every m ≥ 1, the bound is asymptotically tight for both algorithms. Proof. By Lemma 4 and the remark following it, we may assume that the instance is critical, that the flow shop ℓ∗ receiving the last job n attains the makespan, and that ℓ∗ holds at least one job besides n (otherwise the makespan isP mpn ≤ OPT). Let Jℓ denote the set of jobs on flow shop ℓ just before job n is assigned, so that ℓ∈[k] P (Jℓ ) = P (J) − pn . n For H1 , the load of ℓ∗ is minimal, hence at most the average load P (J)−p . After job n is added, k ∗ the maximal processing time of ℓ is at most pmax , so

Cmax (πH1 ) = P (Jℓ∗ ) + pn + (m − 1)pmax (Jℓ∗ ∪ {n}) ≤

P (J) − pn + pn + (m − 1)pmax = U (pn ). k

For H3 , the resulting makespan of ℓ∗ is minimal, hence at most the average resulting makespan: Cmax (πH3 ) ≤

i P (J) − p 1 Xh n P (Jℓ ) + pn + (m − 1) max{pmax (Jℓ ), pn } ≤ + pn + (m − 1)pmax , k k ℓ∈[k]

 which is also U (pn ). In both cases, Lemma 5(a) with p = pn ≤ pmax gives Cmax (πH ) ≤ 2− k1 OPT. Running time. For H1 , we keep the flow shops in a priority queue keyed by their loads; each of the n assignments takes O(log k) time. For H3 , the resulting makespan of every flow shop depends on pj through a maximum, so we evaluate all k flow shops for each job, in O(1) time each, by maintaining P (Jℓ ) and pmax (Jℓ ); this takes O(nk) time. Tightness. Consider Fε with the short jobs first in the list. For H1 this is the situation of Lemma 7(iii). For H3 , the resulting makespan of assigning a short job to flow shop ℓ is mε if ℓ is empty and P (Jℓ ) + mε otherwise, since all jobs already assigned have length ε; in both cases it equals the load plus mε, so H3 assigns the short jobs to least loaded flow shops. The resulting makespan of assigning the long job to flow shop ℓ is P (Jℓ ) + m, so the long job is also assigned to a least loaded flow shop. Hence Lemma 7(iii) applies to H3 as well, and together with Lemma 7(i) we obtain, for both algorithms, m + m(1 − k1 ) − ε Cmax (πH (Fε )) 1 ≥ −−−→ 2 − . ε→0 OPT(Fε ) m + (m − 1)ε k For m = 1, Theorem 2 is Graham’s classical result [10]. Hence, replacing each machine by a proportionate flow shop does not change the approximation ratio of list scheduling with arbitrary ordering, provided that the jobs are assigned by load or by resulting makespan.

4.2

Least current makespan

In H4 the jobs are considered in an arbitrary order, and each job is assigned to a flow shop with the least current makespan Cℓ = P (Jℓ ) + (m − 1)pmax (Jℓ ). Unlike H3 , this rule ignores the increase of the bottleneck term caused by a job that becomes the longest job on its flow shop. As we show below, this makes H4 worse than H1 and H3 when m is large.   1 Theorem 3. H4 is a 1 + 2 − m 1 − k1 -approximation algorithm with running time O(n log k).

12

Proof. As in the proof of Theorem 2, we may assume that the instance is critical, that ℓ∗ receives job n and attains the makespan, and that ℓ∗ holds Panother job. Let Jℓ be the set of jobs on flow shop ℓ just before job n is assigned, and recall ℓ∈[k] P (Jℓ ) = P (J) − pn . By the rule of H4 , Cℓ∗ ≤ Cℓ for every ℓ. We distinguish between two cases. Case 1: pn ≤ pmax (Jℓ∗ ). The maximal processing time of ℓ∗ does not change, so Cmax (πH4 ) = Cℓ∗ + pn ≤

1 X P (J) − pn Cℓ + p n ≤ + (m − 1)pmax + pn = U (pn ), k k ℓ∈[k]

   1 and Lemma 5(a) gives Cmax (πH4 ) ≤ 2 − k1 OPT ≤ 1 + 2 − m 1 − k1 OPT. Case 2: pn > pmax (Jℓ∗ ). Job n becomes the longest job on ℓ∗ , and Cmax (πH4 ) = P (Jℓ∗ ) + mpn . For every ℓ ̸= ℓ∗ , P (Jℓ∗ ) ≤ Cℓ∗ ≤ Cℓ = P (Jℓ ) + (m − 1)pmax (Jℓ ) ≤ P (Jℓ ) + (m − 1)pmax . Adding these k − 1 inequalities to the identity P (Jℓ∗ ) = P (Jℓ∗ ) gives kP (Jℓ∗ ) ≤ P (J) − pn + (k − 1)(m − 1)pmax . Hence, using pn ≤ pmax , P (J) − pn  1 + 1− (m − 1)pmax + mpn k k    P (J) 1 1 = + 1− (m − 1)pmax + m − pn k k k  1i 2 P (J) (m − 1)pmax h + m − pmax + + (m − 1) 1 − ≤ k k k k  1 ≤ LB1 + (2m − 1) 1 − pmax , k

Cmax (πH4 ) ≤

 1 Since LB1 ≤ OPT and pmax ≤ OPT/m, we obtain Cmax (πH4 ) ≤ OPT + 2m−1 1 − m k OPT, which is the claimed bound. Running time. Only the current makespan of the selected flow shop changes in each iteration. Hence, maintaining the flow shops in a priority queue keyed by their current makespans, each assignment takes O(log k) time. For m = 1, H4 coincides with H1 , and the bound of Theorem 3 reduces to 2 − k1 . For m ≥ 2, however, the bound is larger than 2 − k1 , and the following proposition shows that this is not an artifact of the analysis. Proposition 1. For every k ≥ 2, m ≥ 1 and δ > 0, there is an instance on which H4 has approximation ratio at least R(k, m) − δ, where R(k, m) =

(k − 1)(k + 2m − 1) + km . k(k + m − 1)

In particular, R(k, m) → 3 − k2 as m → ∞, which is also the limit of the bound of Theorem 3; hence that bound is asymptotically tight as m → ∞. Proof. Let b=

k (k − 1)(k + 2m − 1)

and

T = 1 + (k − 1)(1 − mb).

We first note that mb < 1: indeed, mk < (k − 1)(k + 2m − 1) is equivalent to (k − 2)(k + m) + 1 > 0, which holds for k ≥ 2. Hence T > 1 > mb. Let ε > 0 be small, with mε < mb and T /ε an integer. 13

The list of instance I consists of k − 1 long jobs of length b, followed by a block of s short jobs of length ε (where s ≤ T /ε is specified below), followed by one more long job c of length b. Behavior of H4 . The first k − 1 long jobs are assigned to distinct flow shops (Lemma 3), each with current makespan mb; let ℓ be the flow shop that remains empty. Consider first the full block of T /ε short jobs. A short job assigned to ℓ increases its current makespan by mε the first time and by ε afterwards (its maximal processing time is ε); a short job assigned to any other flow shop increases its current makespan by exactly ε (its maximal processing time remains b > ε). As long as the current makespan of ℓ is smaller than mb, flow shop ℓ is the unique minimizer and receives the short job. At the first moment when the current makespan of ℓ reaches at least mb, it is smaller than mb + ε, so all current makespans lie in an interval of length ε. Since every later assignment adds ε to a flow shop of minimal current makespan, this property is maintained: from this moment on, all current makespans always lie in [λ, λ + ε], where λ is the current minimum. Let σ be the last short job of the full block that H4 assigns to ℓ, and let the block in I consist of the short jobs preceding σ; that is, we truncate the block just before σ. We claim that at most 2(k − 1) + 1 short jobs are removed. Indeed, let cℓ be the current makespan of ℓ after σ is assigned. Just before σ was assigned, ℓ was a minimizer with value cℓ − ε, so every flow shop had current makespan at least cℓ − ε from then on. After σ, flow shop ℓ is never selected, so every selected flow shop had current makespan at most cℓ when selected. A flow shop selected twice after σ would have value at least cℓ − ε + ε = cℓ at its second selection and more than cℓ afterwards, so it is selected at most twice. This proves the claim. In I, after the truncated block, the state of H4 is exactly the state just before σ was assigned. In that state H4 selects ℓ, and since the choice depends only on the current makespans and the tie-breaking rule, the long job c is also assigned to ℓ. Let λ be the current makespan of ℓ at that moment. It is minimal and all current makespans lie in [λ, λ + ε], while their sum equals the total length of the short jobs assigned plus (k − 1)mb + (m − 1)ε. The total length of the assigned short jobs is at least T − (2k − 1)ε, hence λ ≥

T − (2k − 1)ε + (k − 1)mb − ε = 1 − O(ε), k

since T + (k − 1)mb = k. The load of ℓ is λ − (m − 1)ε, and after c is added, its makespan is  Cmax (πH4 (I)) ≥ λ − (m − 1)ε + b + (m − 1)b ≥ 1 + mb − O (k + m)ε . An alternative solution. Assign all k long jobs to one flow shop, with makespan kb + (m − 1)b = (k + m − 1)b, and spread the short jobs over the other k − 1 flow shops so that the loads differ by at T T 1 most ε; each of these flow shops has makespan at most k−1 +ε+(m−1)ε. Since k−1 = k−1 +1−mb k and, by the choice of b, (k + 2m − 1)b = k−1 , the two values coincide up to mε: T = (k + m − 1)b. k−1 Hence OPT(I) ≤ (k + m − 1)b + mε, and  (k − 1)(k + 2m − 1)  Cmax (πH4 (I)) 1 + mb m ≥ − O (k + m)ε = + − O (k + m)ε OPT(I) (k + m − 1)b k(k + m − 1) k+m−1  = R(k, m) − O (k + m)ε . Choosing ε small enough completes the proof. Finally, as m → ∞, the numerator of R(k, m) is m(3k − 2) + O(1) and the denominator is km + O(1), so R(k, m) → 3 − k2 ; the bound of Theorem 3 tends to 1 + 2 1 − k1 = 3 − k2 as well. 14

Since 3 − k2 > 2 − k1 for k ≥ 2, H4 is strictly worse than H1 and H3 in the worst case when m is large. For example, for k = 3 and m = 10 we have R(3, 10) = 74 36 ≈ 2.06, whereas H1 and H3 guarantee 35 .

5

List scheduling with LPT ordering

In this section the jobs are ordered by the LPT rule, p1 ≥ p2 ≥ · · · ≥ pn (ties broken by index), and we analyze the three rules LL (H2 ), LR (H5 ) and LC (H6 ).

5.1

Structure: the rules LR and LC coincide under LPT

Lemma 8. H5 and H6 assign jobs 1, . . . , k to flow shops 1, . . . , k, respectively, and assign every job j > k to a flow shop with the least current makespan Cℓ (ties broken by index). In particular, H5 and H6 produce the same solution. Proof. By Lemma 3 and the tie-breaking rule, both algorithms assign job j ≤ k to the empty flow shop of smallest index, which is flow shop j. Now let j > k. Every job assigned earlier is at least as long as j, so pmax (Jℓ ) ≥ pj for every flow shop ℓ (all of which are nonempty), and the resulting makespan of ℓ is P (Jℓ ) + pj + (m − 1) max{pmax (Jℓ ), pj } = Cℓ + pj . Hence minimizing the resulting makespan is equivalent to minimizing the current makespan, with the same tie-breaking. By induction on j, the two algorithms make identical assignments. Lemma 8 explains why LPT ordering removes the weakness of the LC rule identified in Theorem 3 and Proposition 1. The bad instance of Proposition 1 relies on a long job arriving after short jobs and becoming the longest job on its flow shop, in which case the current makespan ignores the increase (m − 1) pj − pmax (Jℓ ) . Under LPT ordering, a job never becomes the strictly longest job on a nonempty flow shop, so the current makespan correctly predicts the resulting makespan, up to the common additive term pj . In the terminology of Section 6, H5 = H6 is the algorithm H(1, . . . , k) applied to the restricted subproblem whose anchors are the k longest jobs.

5.2

Upper bounds

Lemma 9. Let I be a critical instance for H5 (equivalently, H6 ) with n > k, in which the flow shop ℓ∗ receiving job n holds another job. Then P P (J) − pn + (m − 1) ki=1 pi Cmax (πH5 ) ≤ + pn ≤ U (pn ). (5) k Proof. Since ℓ∗ holds another job, n > k by Lemma 8. Just before job n is assigned, flowPshop ℓ holds job ℓ as its longest job, so the sum of the current makespans is P (J) − pn + (m − 1) ki=1 pi . Job n is assigned to a flow shop with the least current makespan, which is at most the average, and it does not change the maximal processing time of that flow shop. This gives the first inequality. P The second follows from ki=1 pi ≤ kpmax . Theorem 4.  (a) For m = 1, H2 , H5 and H6 coincide with Graham’s LPT algorithm and are 4 1 3 − 3k -approximations.   1 (b) For m ≥ 2, H2 , H5 and H6 are 1 + 1 − m 1 − k1 -approximation algorithms. 15

 m−1 (c) For k = 2 and m ≥ 2, H5 and H6 are 1 + 2(m+1) -approximation algorithms. The running time of each algorithm is O(n log n). Proof. (a) For m = 1 the three rules coincide (Section 3), and the claim is Graham’s theorem [11]. (b) Let m ≥ 2. By Lemma 4, we may assume that the instance is critical, that the flow shop ℓ∗ receiving job n attains the makespan, and that ℓ∗ holds another job (otherwise the makespan is mpn ≤ OPT). By Lemma 3, n > k, and since the list is in LPT order, pn = pmin . For n H2 , exactly as for H1 in Theorem 2, the load of ℓ∗ before job n is assigned is at most P (J)−p , k so Cmax (πH2 ) ≤ U (pn ). For H5 and H6 , Cmax (πH5 ) ≤ U (pn ) by Lemma 9. In all three cases, Lemma 5(b) gives   1  Cmax (πH ) ≤ OPT + 1 − (m − 1)pmax − (m − 2)pmin , k and Lemma 6 with q = k, B = OPT, a = pmax ≤ OPT/m and b = pmin completes the proof. (c) Let k = 2 and m ≥ 2, and assume as in (b) that the instance is critical and ℓ∗ holds another job, so n ≥ 3. Fix an optimal solution in which both flow shops are nonempty (Lemma 1). By (5) with k = 2, P (J) − pn + (m − 1)(p1 + p2 ) + pn . (6) Cmax (πH5 ) ≤ 2 Case 1: jobs 1 and 2 are on different flow shops in the optimal solution. Then (3) gives 2OPT ≥ P (J) + (m − 1)(p1 + p2 ), and (6) yields Cmax (πH5 ) ≤ OPT + p2n . Since n ≥ 3, some flow shop holds Cmax (π

)

OP T + pn

1 two jobs in the optimal solution, so OPT ≥ (m + 1)pn . Hence, OP TH5 ≤ OP T 2 ≤ 1 + 2(m+1) ≤ m−1 1 + 2(m+1) , where the last inequality uses m ≥ 2. Case 2: jobs 1 and 2 share a flow shop in the optimal solution. Then OPT ≥ mp1 + p2 ≥ (m + 1)p2 . The other flow shop is nonempty, so its maximal processing time is at least pn , and (3) gives 2OPT ≥ P (J) + (m − 1)(p1 + pn ). By (6),

Cmax (πH5 ) − OPT ≤

(m − 1)p2 m−1 (m − 1)(p2 − pn ) + pn ≤ ≤ OPT, 2 2 2(m + 1)

where the middle inequality uses pn ≤ (m − 1)pn , i.e., m ≥ 2. Running time. Sorting takes O(n log n) time. Afterwards, H2 and H6 require O(log k) time per job with a priority queue keyed by load and by current makespan, respectively. By Lemma 8, H5 can be implemented as H6 . Since n > k, the total running time is O(n log n).

5.3

Lower bounds

For 2 ≤ c ≤ k define Gc (k, m) = 1 − Theorem 5. for H2 .

⌈k/c⌉ m + , k m+c−1

G(k, m) = max Gc (k, m). 2≤c≤k

(a) For every k ≥ 2 and m ≥ 2, the bound of Theorem 4(b) is asymptotically tight

(b) For every k ≥ 2, m ≥ 1 and δ > 0, there is an instance on which H5 and H6 have approximation ratio at least G(k, m) − δ. m−1 Consequently, since G(2, m) = G2 (2, m) = 1 + 2(m+1) , the bound of Theorem 4(c) is asymptot1 m ically tight; and since G(k, m) ≥ Gk (k, m) = 1 − k + m+k−1 → 2 − k1 as m → ∞, the bound of Theorem 4(b) for H5 and H6 is asymptotically tight as m → ∞. 16

Proof. (a) Consider Fε . Under LPT ordering, H2 first places the long job on some flow shop ℓ1 , and then assigns the short jobs, each to a least loaded flow shop. By Lemma 7(iv) and (i),  m + (m − 1)(1 − k1 ) − ε 1  Cmax (πH2 (Fε )) 1 ≥ −−−→ 1 + 1 − 1− . ε→0 OPT(Fε ) m + (m − 1)ε m k (b) Fix 2 ≤ c ≤ k and let g = ⌈k/c⌉; note that g < k. Let T = (k − g)(m + c − 1), and let ε > 0 be such that T /((k − g)ε) is an integer. The instance consists of k jobs of length 1 and T /ε jobs of length ε. By Lemma 8, H5 places one long job on each flow shop. Hence every flow shop has maximal processing time 1, and the final makespans sum to P (J) + k(m − 1) = km + T . Therefore Cmax (πH5 ) ≥ m + T /k. On the other hand, distribute the k long jobs over g flow shops with at most c long jobs each, giving makespan at most c + (m − 1), and spread the short jobs evenly over T the other k − g flow shops, giving makespan k−g + (m − 1)ε = m + c − 1 + (m − 1)ε. Hence m + k−g m g Cmax (πH5 ) k (m + c − 1) ≥ −−−→ + 1 − = Gc (k, m). OPT m + c − 1 + (m − 1)ε ε→0 m + c − 1 k Choosing the maximizing c and ε small enough completes the proof. The identity G2 (2, m) = m m−1 1 2 + m+1 = 1 + 2(m+1) is straightforward, and for k = 2 the maximum defining G has only the term c = 2.   1 Discussion. For m ≥ 2, the three rules have the same upper bound 1 + 1 − m 1 − k1 under LPT ordering, which is strictly smaller than the bound 2 − k1 of H1 and H3 for every m. Hence LPT ordering helps in the same way as for P || Cmax , but the gain vanishes as m → ∞: the bound tends to 2 − k1 , and it is tight for H2 for every m and for H5 = H6 as m → ∞. For k = 2, however, m−1 H5 = H6 is strictly better than H2 : its tight ratio is 1 + 2(m+1) , whereas H2 has tight ratio 1 + m−1 2m . For k ≥ 3 a gap remains between G(k, m) and the upper bound; for example, for k = 4 and m = 2 we have G(4, 2) = G2 (4, 2) = 67 , while the upper bound equals 11 8 . The family in Theorem 5(b) shows why H5 loses for large m. By Lemma 8, H5 commits to the k longest jobs as the leading jobs of the k flow shops, whereas the optimal solution groups up to c of them on one flow shop, where they share the bottleneck term (m − 1)pmax . This is exactly what the enumeration of leading jobs in Section 6 repairs. In contrast, the family Fε shows why H2 loses: balancing loads ignores the bottleneck term, so short jobs are placed on the flow shop of the long job, whose makespan is already large.

5.4

Optimality when every flow shop holds at most two jobs

The following result complements Theorem 4: if the optimal makespan is small relative to the shortest job, then every flow shop holds at most two jobs in every optimal solution, and H2 is optimal. (The corresponding result for H5 = H6 is Corollary 1 in Section 6.) Proposition 2. Let m ≥ 2. If OPT < (m + 2)pmin , then H2 produces an optimal solution. Proof. A shop with at least three jobs has makespan at least 3pn + (m − 1)pn = (m + 2)pn ; hence each shop in the optimal solution has at most two jobs and n ≤ 2k. Adding 2k − n dummy jobs of length 0 at the end of the list changes neither the solution produced by the algorithm nor OPT, so we may assume that n = 2k and that each shop in the optimal solution has exactly two jobs.  2 Moreover, since OPT ≥ mpmax = mp1 and m ≥ 2, we have p1 < 1 + m pn ≤ 2pn (for the original, non-dummy jobs). Consequently, while a shop with a single job exists, its load is at most p1 < 2pn , 17

which is smaller than the load of any shop with two jobs. Therefore, the algorithm assigns jobs 1, . . . , k to distinct shops and job k + t to the shop of job k + 1 − t for t ∈ [k] (up to relabeling of jobs with equal processing times), and its makespan is Cmax = max{mpi + p2k+1−i }. i∈[k]

Let i attain the maximum, let j = 2k + 1 − i, A = {1, . . . , i} and B = {1, . . . , j}. In the optimal solution, some shop contains a job a ∈ A together with another job b ∈ B; otherwise each of the i jobs of A is in a different shop, paired with a job of index larger than j, and the remaining j − i = 2k + 1 − 2i jobs of B \ A must fit into the 2(k − i) positions of the other k − i shops, which is impossible. The makespan of this shop is at least m max{pa , pb } + min{pa , pb } ≥ mpi + pj , since a ≤ i and a, b ≤ j. Hence OPT ≥ Cmax . Remark 2. Proposition 2 does not hold without the assumption OPT < (m + 2)pmin , even if n ≤ 2k. Consider k = 2, m = 10 and p = (10, 9, 2, 2). Algorithm H2 produces {{10, 2}, {9, 2}} with makespan 12 + 9 · 10 = 102, whereas {{10}, {9, 2, 2}} has makespan max{100, 13 + 9 · 9} = 100; here (m + 2)pmin = 24.

6

Enumerating the leading jobs

6.1

Restricted subproblems

Throughout this section, the jobs are indexed in LPT order, p1 ≥ · · · ≥ pn , with ties broken by index. For a set of jobs, its leading job is the job with the largest processing time in the set, with ties broken in favor of the smallest index. By Lemma 1, we may assume that every flow shop is nonempty in an optimal solution. We partition the problem into subproblems according to the leading jobs. For 1 = j1 < j2 < · · · < jk ≤ n, the (j1 , . . . , jk )-subproblem is the restricted version of the problem in which, for every ℓ ∈ [k], job jℓ is assigned to flow shop ℓ, and every job j assigned to flow shop ℓ satisfies pj ≤ pjℓ . We call j1 , . . . , jk the anchors of the subproblem. Let    n−1 Ω = (j1 , . . . , jk ) : j1 = 1 < j2 < · · · < jk ≤ n , |Ω| = = O(nk−1 ), k−1 and let OPT(j1 , . . . , jk ) denote the optimal value of the (j1 , . . . , jk )-subproblem. Lemma 10.

(i) OPT = min(j1 ,...,jk )∈Ω OPT(j1 , . . . , jk ).

(ii) If an algorithm returns, for each (j1 , . . . , jk ) ∈ Ω, a feasible solution of value z(j1 , . . . , jk ) ≤ ρ OPT(j1 , . . . , jk ), then the best of these solutions is a ρ-approximation for the original problem. (iii) In every feasible solution of the (j1 , . . . , jk )-subproblem, the maximal processing time of flow shop ℓ is pjℓ . Consequently, every feasible solution has average makespan P P (J) + (m − 1) ℓ∈[k] pjℓ 1 X Cmax (Jℓ ) = , k k ℓ∈[k]

and OPT(j1 , . . . , jk ) ≥

P (J)+(m−1) k

P

ℓ∈[k] pjℓ

and OPT(j1 , . . . , jk ) ≥ mp1 .

18

Proof. (i) Every feasible solution of a subproblem is feasible for the original problem, so the righthand side is at least OPT. Conversely, take an optimal solution in which every flow shop is nonempty, and renumber its flow shops in increasing order of the indices of their leading jobs. This solution is feasible for the subproblem whose anchors are these leading jobs, the first of which is job 1. (ii) Let zH be the best value. By (i), zH = min z(j1 , . . . , jk ) ≤ min ρ OPT(j1 , . . . , jk ) = ρ OPT. Ω

Ω

(iii) Flow shop ℓ holds jℓ and only jobs that are not longer, so its maximal processing time is pjℓ ; the formula for the average follows from (1). The maximum is at least the average, and flow shop 1 has makespan at least mp1 . P Note that the lower bound in Lemma 10(iii) is never weaker than LB1 of Lemma 2, since ℓ pjℓ ≥ p1 + (k − 1)pmin . Moreover, since the average makespan is the same for every feasible solution of the subproblem, the flow shop with the least makespan in any feasible solution has makespan at most this lower bound.

6.2

Anchored list scheduling

Given a (j1 , . . . , jk )-subproblem, we say that job j is eligible on flow shop ℓ if pj ≤ pjℓ . Every job is eligible on flow shop 1, since pj1 = p1 . We consider two anchored list scheduling algorithms. Both first assign each anchor jℓ to flow shop ℓ, and then consider the remaining r = n − k non-anchor jobs y1 , . . . , yr in LPT order (py1 ≥ · · · ≥ pyr ). Each non-anchor job is assigned to an eligible flow shop • with the least current makespan P (Jℓ ) + (m − 1)pjℓ , in algorithm H(j1 , . . . , jk ) (makespan balancing); or • with the least load P (Jℓ ), in algorithm H ′ (j1 , . . . , jk ) (load balancing). Ties are broken by index. Both algorithms produce feasible solutions of the subproblem, whose values we denote by z(j1 , . . . , jk ) and z ′ (j1 , . . . , jk ), respectively. For m = 1 the two rules coincide. Note that, since the maximal processing time of flow shop ℓ is pjℓ throughout, the current makespan correctly predicts the resulting makespan up to the common additive term py , exactly as in Lemma 8. Indeed, H(1, . . . , k) is precisely H5 = H6 : by Lemma 8, these algorithms place jobs 1, . . . , k on distinct flow shops, every later job is eligible everywhere (since pj ≤ pk for j > k), and later jobs are assigned in LPT order to a flow shop with the least current makespan. Both algorithms are of the form required by Lemma 4, with the anchors as pre-placed jobs. Deleting non-anchor jobs from a feasible solution of a subproblem keeps it feasible, so Lemma 4 applies with OPT replaced by OPT(j1 , . . . , jk ). The next lemma is the key structural result of this section. It is the anchored analogue of Proposition 2. Lemma 11. Consider a (j1 , . . . , jk )-subproblem, and let p◦ be the shortest processing time of a non-anchor job. If OPT(j1 , . . . , jk ) < (m + 2)p◦ , then H(j1 , . . . , jk ) produces an optimal solution of the subproblem. Proof. A flow shop with its anchor jℓ and two non-anchor jobs y, y ′ has makespan at least mpjℓ + py + py′ ≥ (m + 2)p◦ , since pjℓ ≥ py ≥ p◦ and py′ ≥ p◦ . Hence, in every optimal solution of the subproblem, each flow shop holds at most one non-anchor job. 19

Let ℓ∗ be a flow shop attaining z(j1 , . . . , jk ). If ℓ∗ holds no non-anchor job, then z(j1 , . . . , jk ) = mpjℓ∗ ≤ mp1 ≤ OPT(j1 , . . . , jk ), and the solution is optimal. Otherwise, let yt be the last nonanchor job assigned to ℓ∗ , let C ∗ be the current makespan of ℓ∗ just before yt is assigned, and let Et = {ℓ ∈ [k] : pjℓ ≥ pyt } be the set of flow shops on which yt is eligible. Then z(j1 , . . . , jk ) = C ∗ + pyt , and C ∗ is not larger than the current makespan of any flow shop in Et at that moment. Since pyi ≥ pyt for i ≤ t, the jobs y1 , . . . , yt are eligible only on flow shops in Et , both in the algorithm and in every feasible solution. Let D ⊆ Et be the set of flow shops that hold at least one non-anchor job just before yt is assigned. These non-anchor jobs are among y1 , . . . , yt−1 , so |D| ≤ t − 1. In an optimal solution, the jobs y1 , . . . , yt are assigned to t distinct flow shops in Et , since each flow shop holds at most one non-anchor job. Hence one of them, say yi , is assigned to a flow shop ℓ′ ∈ Et \ D. Just before yt is assigned by the algorithm, flow shop ℓ′ holds only its anchor, so its current makespan is mpjℓ′ ≥ C ∗ . Therefore OPT(j1 , . . . , jk ) ≥ mpjℓ′ + pyi ≥ C ∗ + pyt = z(j1 , . . . , jk ), and the solution produced by H(j1 , . . . , jk ) is optimal. Corollary 1. If OPT < (m + 2)pmin , then H5 and H6 produce optimal solutions. Proof. As in the proof of Proposition 2, every flow shop holds at most two jobs in every optimal solution. Let A = {1, . . . , k}. We claim that there is an optimal solution in which the jobs of A are on distinct flow shops. Suppose that some flow shop holds two jobs a, b ∈ A with a < b; it holds no other job. Then some flow shop ℓ′ holds no job of A, and every job on ℓ′ has index larger than k, hence processing time at most pb . If ℓ′ is empty, move b to ℓ′ : the two flow shops have makespans mpa and mpb , both at most mpa + pb . Otherwise, let c be a longest job on ℓ′ and swap b and c. The first flow shop then has makespan mpa + pc ≤ mpa + pb . The flow shop ℓ′ holds b and possibly one more job d with pd ≤ pc ≤ pb , so its makespan is at most mpb + pd ≤ mpa + pb . Thus the makespan does not increase, every flow shop still holds at most two jobs, and the number of flow shops holding a job of A grows by one. Repeating the argument proves the claim. In such an optimal solution, job ℓ ∈ A is the leading job of its flow shop, so after renumbering the flow shops the solution is feasible for the (1, . . . , k)-subproblem. Hence OPT(1, . . . , k) = OPT < (m+2)pmin , where pmin = pn is also the shortest processing time of a non-anchor job. By Lemma 11, H(1, . . . , k) is optimal for this subproblem, and hence for the original problem. Since H(1, . . . , k) = H5 = H6 , the claim follows.

6.3

Enumeration with makespan balancing

 Theorem 6. Applying H(j1 , . . . , jk ) to each of the n−1 k−1 subproblems and returning the best solu 1 tion is a 1 + m+2 1 − k1 -approximation algorithm with running time O(n log n + knk ).  1 Proof. By Lemma 10(ii), it suffices to show that z(j1 , . . . , jk ) ≤ 1 + m+2 1 − k1 OPT(j1 , . . . , jk ) for every (j1 , . . . , jk ) ∈ Ω. Fix a subproblem and write OPTΩ = OPT(j1 , . . . , jk ). By Lemma 4, we may assume that the last non-anchor job yr is assigned to a flow shop ℓ∗ that attains z(j1 , . . . , jk ). (If the flow shop attaining the makespan holds no non-anchor job, then z(j1 , . . . , jk ) = mpjℓ ≤ mp1 ≤ OPTΩ .) Let E = {ℓ ∈ [k] : pjℓ ≥ pyr }

20

be the set of flow shops on which yr is eligible; note that ℓ∗ ∈ E and 1 ∈ E. Let X consist of the anchors of the flow shops in E and the non-anchor jobs y1 , . . . , yr−1 . Every non-anchor job yi with / E, and is therefore assigned to a flow shop in E. Hence, i < r satisfies pyi ≥ pyr > pjℓ for every ℓ ∈ just before yr is assigned, the flow shops P in E contain exactly the jobs of X, and the sum of their current makespans is P (X) + (m − 1) ℓ∈E pjℓ . Since yr is assigned to an eligible flow shop with the least current makespan, and no further job is assigned to ℓ∗ , P P (X) + (m − 1) ℓ∈E pjℓ z(j1 , . . . , jk ) ≤ (7) + p yr . |E| Consider the instance IE with flow shops E, the anchors of E, and the non-anchor jobs y1 , . . . , yr , viewed as a subproblem with these anchors, and let OPTE be its optimal value. By the argument above, in every feasible solution of the original subproblem all the non-anchor jobs y1 , . . . , yr are assigned to flow shops in E. Hence restricting an optimal solution of the subproblem to IE yields OPTE ≤ OPTΩ . By Lemma 10(iii) applied to IE , P P (X) + pyr + (m − 1) ℓ∈E pjℓ OPTE ≥ . (8) |E| Job yr is the shortest non-anchor job of IE . We distinguish between two cases. Case 1: OPTE < (m + 2)pyr . Applied to IE , the algorithm considers the same jobs in the same order, and each of them is eligible only on flow shops in E; hence it makes exactly the same assignments as H(j1 , . . . , jk ) on the flow shops in E. By Lemma 11, it is optimal for IE , so z(j1 , . . . , jk ) = Cmax (Jℓ∗ ) ≤ OPTE ≤ OPTΩ . Case 2: OPTE ≥ (m + 2)pyr . Combining (7) and (8) with |E| ≤ k, we obtain  1  OPTE  1  1  1  z(j1 , . . . , jk ) ≤ OPTE + 1 − pyr ≤ OPTE + 1− ≤ 1+ 1− OPTΩ . |E| m+2 k m+2 k Running time. We sort the jobs in LPT order once, in O(n log n) time. For each subproblem, each of the at most n−k iterations finds an eligible flow shop with the least current makespan in O(k)  n−1 time. Since there are k−1 = O(nk−1 ) subproblems, the total running time is O(n log n + knk ).   1 The bound of Theorem 6 is strictly smaller than the bound 1 + 1 − m 1 − k1 of Theorem 4 for 1 1 every m ≥ 2, since m+2 < 1− m is equivalent to m2 > 2; the two bounds coincide for m = 1, where 1 both equal Graham’s 43 − 3k . In contrast to Theorem 4, increasing m improves the approximation ratio, which tends to 1 as m → ∞. Since H5 = H(1, . . . , k) is one of the runs, the algorithm of Theorem 6 never returns a worse solution than H5 and H6 . Proposition 3. For every k ≥ 2 and m ≥ 1, there is an instance on which the algorithm of 1 Theorem 6 has approximation ratio at least 3m+5 3m+4 = 1 + 3m+4 . 4 1 Proof. The instance consists of k − 2 big jobs of length β = 3 + m , one job of length α = 3 + m , two jobs of length 3 and two jobs of length 2. Note that β > α > 3 > 2, mβ = 3m+4 and mα = 3m+1. Placing each big job alone, the job of length α with one job of length 3, and the remaining three jobs together yields makespan max{3m + 4, mα + 3, 3 + 2 + 2 + 3(m − 1)} = 3m + 4 ≥ OPT. We show that z(j1 , . . . , jk ) ≥ 3m + 5 for every (j1 , . . . , jk ) ∈ Ω. A flow shop that holds a big job and another job has makespan at least mβ + 2 = 3m + 6, so assume that in the solution of H(j1 , . . . , jk ) every big job is alone. The remaining two anchors are among the five other jobs, and the job of length α is one of them; otherwise it would be placed on a flow shop whose anchor is at

21

least as long, that is, with a big job. If the other anchor has length 2, then both jobs of length 3 are eligible only on the flow shop of α and on flow shops of big jobs. Since the latter stay alone, z(j1 , . . . , jk ) ≥ mα + 6 = 3m + 7. If the other anchor has length 3, the current makespans are 3m + 1 (anchor α), 3m (anchor 3) and 3m + 4 (big jobs). The non-anchor jobs, in LPT order, are then placed as follows: • the job of length 3 goes to the flow shop with current makespan 3m, which reaches 3m + 3; • the first job of length 2 goes to the flow shop of α, which reaches 3m + 3; • the second job of length 2 goes to one of the two flow shops at 3m + 3, which reaches 3m + 5. 3m+5 Hence minΩ z(j1 , . . . , jk ) ≥ 3m + 5, and the ratio is at least 3m+4 .

Proposition 3 leaves a gap to Theorem 6 already for m = 1: for k = 2 it gives 78 , whereas the upper bound is 67 .

6.4

Enumeration with load balancing

 Theorem 7. Applying H ′ (j1 , . . . , jk ) to each of the n−1 subproblems and returning the best soluk−1    1 1 1 -approximation for m = 1, tion is a 1 + 1 − m 1 − k -approximation for m ≥ 2, and a 34 − 3k with running time O(n log n + knk ). For every m ≥ 2, the bound is asymptotically tight. Proof. For m = 1 the claim follows from Theorem 6, since both algorithms coincide. Let m ≥ 2. By Lemma 10(ii), it suffices to bound z ′ (j1 , . . . , jk ) for every subproblem. Define ℓ∗ , E, X, IE and OPTE as in the proof of Theorem 6 (again using Lemma 4). As shown there, just before yr is assigned the flow shops in E contain exactly the jobs of X, and (8) holds with OPTE ≤ OPTΩ . Since yr is assigned to an eligible flow shop with the least load, the load of ℓ∗ just before yr is assigned is at most P (X)/|E|, and since no further job is assigned to ℓ∗ , P (X) + pyr + (m − 1)pjℓ∗ . |E| P Every anchor of a flow shop in E has processing time at least pyr , so ℓ∈E pjℓ ≥ pjℓ∗ + (|E| − 1)pyr . Substituting this into (8) and subtracting, z ′ (j1 , . . . , jk ) ≤

  pj ∗ + (|E| − 1)pyr  1  pyr + (m − 1) pjℓ∗ − ℓ z ′ (j1 , . . . , jk ) − OPTE ≤ 1 − |E| |E|   1  = 1− (m − 1)pjℓ∗ − (m − 2)pyr . |E| Lemma 6 with Z = z ′ (j1 , . . . , jk ), B = OPTE ≤ OPTΩ , q = |E| ≤ k, a = pjℓ∗ ≤ p1 ≤ OPTΩ /m and b = pyr completes the approximation proof, with OPTΩ in the role of OPT. The running time is established as in Theorem 6. Tightness. Consider Fε . In every subproblem, the anchors are the long job and k − 1 short jobs, so all subproblems are identical up to relabeling of the short jobs. In each of them, H ′ starts with the long job on flow shop 1 and one short job on each other flow shop, and then assigns the remaining short jobs, each eligible everywhere, to a least loaded flow shop. This is exactly 1 the situation of Lemma 7(iv), so every run has makespan at least m + (m − 1) 1 − k − ε,   while 1 OPT(Fε ) ≤ m + (m − 1)ε by Lemma 7(i). As ε → 0, the ratio tends to 1 + 1 − m 1 − k1 .

22

For m ≥ 2 the bound of Theorem 7 coincides with that of Theorem 4, and both are attained asymptotically by the same family Fε . In fact, on Fε every run of H ′ coincides with H2 . Hence, in the worst case, enumerating anchors does not improve load balancing with LPT ordering. It does improve makespan balancing: the ratio of H5 , which is a single run of H(j1 , . . . , jk ), tends to 2 − k1 as m → ∞, whereas Theorem 6 gives a ratio that tends to 1. The reason is the same as for H2 : balancing loads ignores the term (m − 1)pjℓ , so short jobs are placed on the flow shop of the long anchor, whose makespan is already large.

7

A MULTIFIT-type algorithm

The enumeration algorithm of Theorem 6 achieves a ratio that tends to 1 as m → ∞, but its running time O(knk ) is polynomial only for fixed k. The list scheduling algorithms run in O(n log n) time, but their ratios tend to 2 − k1 . In this section we show that a dual-approximation approach in the spirit of Hochbaum and Shmoys [15] and of the MULTIFIT algorithm of Coffman, Garey and Johnson [4] combines the advantages of both: its running time is polynomial in n, k and log(mP (J)), and its ratio tends to 1 as m → ∞. The idea is to guess a target value T for the makespan and to fill the flow shops one after the other with the longest jobs, as long as the makespan of the current flow shop does not exceed T . A natural first attempt is to take T equal to a lower bound on OPT, such as max{LB1 , LB2 , LB3 }, and to assign the jobs that remain at the end by list scheduling. This repairs all the bad families of the previous sections, on which the lower bound is (nearly) tight, but it fails when the lower bound is weak: on such instances it separates long jobs that should share a flow shop, and it behaves like H5 . For example, for k = 2, m = 4 and p = (28, 27, 19, 19, 19, 15, 10) we have max{LB1 , LB2 , LB3 } = 127 and OPT = 139 (attained by {28, 27} and {19, 19, 19, 15, 10}), whereas this rule and H5 both return makespan 156. We therefore search for the target value.

7.1

The algorithm

As before, the jobs are indexed in LPT order, p1 ≥ · · · ≥ pn , and all processing times are integers. Definition 3. For a target T , procedure FF(T ) considers the jobs in LPT order and assigns each job j to the flow shop ℓ of smallest index such that Cmax (Jℓ ∪ {j}) ≤ T , where Jℓ is the set of jobs already assigned to ℓ. If no such flow shop exists, FF(T ) fails at job j; otherwise it succeeds and returns a solution of makespan at most T . Lemma 12. (i) The flow shops are opened in the order 1, 2, . . . , k: when FF(T ) considers a job, the nonempty flow shops form a prefix {1, . . . , s}. The first job assigned to a flow shop is its leading job, and if j is assigned to a nonempty flow shop ℓ, then Cmax (Jℓ ∪{j}) = Cmax (Jℓ )+pj . (ii) If T ≥ OPT and FF(T ) fails at job j, then all k flow shops are nonempty at that moment; in particular, j ≥ k + 1. (iii) If FF(T ) fails at job j, then FF(T ) applied to the instance Ij consisting of jobs 1, . . . , j fails at its last job j, and OPT(Ij ) ≤ OPT. (iv) FF(T ) and FF(⌊T ⌋) make exactly the same decisions. (v) If T < OPT, then FF(T ) fails.

23

Proof. (i) A job is assigned to an empty flow shop only if it does not fit into any nonempty one, and among the empty flow shops the one of smallest index is chosen; this proves the first claim. Since the jobs are considered in LPT order, every job assigned to a flow shop after its first job is not longer than the first job, which proves the second and third claims. (ii) An empty flow shop accepts job j, since Cmax ({j}) = mpj ≤ mp1 ≤ OPT ≤ T . Hence, if FF(T ) fails at j, no flow shop is empty; since each flow shop holds at least one of the jobs 1, . . . , j − 1, we have j − 1 ≥ k. (iii) The decisions for jobs 1, . . . , j depend only on these jobs, and deleting jobs from an optimal solution does not increase its makespan. (iv) All the compared quantities Cmax (Jℓ ∪ {j}) are integers, and an integer is at most T if and only if it is at most ⌊T ⌋. (v) If FF(T ) succeeds, it returns a solution of makespan at most T , so T ≥ OPT. Note that, as for MULTIFIT, success of FF(T ) is not necessarily monotone in T . This is why the guarantee below is stated for every T above a threshold, and why the search is organized as follows. Algorithm MF. Compute any feasible solution, for example by H2 , and let U be its makespan. Let lo = ⌈max{LB1 , LB2 }⌉ − 1 (an integer smaller than OPT, since OPT is an integer) and hi = ⌈2U ⌉. By Lemma 12(v), FF(lo) fails; by Theorem 8 below and 2U ≥ ρ OPT (since ρ ≤ 2), FF(hi) succeeds. While hi − lo > 1, let mid = ⌊(lo + hi)/2⌋ and run FF(mid); if it succeeds set hi = mid, and otherwise set lo = mid. Return the solution of FF(hi).

7.2

Analysis

Throughout this subsection, consider a run of FF(T ) with T ≥ OPT that fails at job j. By Lemma 12(iii) we may replace the instance by Ij ; hence we assume that FF(T ) fails at the last job n, that n ≥ k + 1, and that all k flow shops are nonempty when job n is considered (Lemma 12(ii)). Let a1 < a2 < · · · < ak be the leading jobs of flow shops 1, . . . , k in this run; note that a1 = 1 and aℓ ≥ ℓ. Fix an optimal solution π ∗ in which every flow shop is nonempty (Lemma 1), and let M1 ≥ M2 ≥ · · · ≥ Mk be the maximal processing times of its flow shops, sorted in non-increasing order. By (3), k X k OPT ≥ P (J) + (m − 1) Mℓ . (9) ℓ=1

The heart of the analysis is a comparison between the leading jobs of FF(T ) and those of the optimal solution. If FF(T ) uses leading jobs that are not longer than those of π ∗ , then it pays the bottleneck term no more than the optimal solution does, and the analysis reduces to a load-balancing argument. The next lemma shows that this is the case unless T is close to OPT. Lemma 13. Either paℓ ≤ Mℓ for every ℓ ∈ [k], or there is ℓ ∈ {3, . . . , k} with T − OPT <

ℓ−2 ℓ−2 pa ≤ OPT. ℓ−1 ℓ (ℓ − 1)(m + 1)

Proof. We have pa1 = p1 = M1 . Suppose that the first claim fails, and let ℓ ≥ 2 be the smallest index with paℓ > Mℓ ; thus pai ≤ Mi for every i < ℓ. The jobs 1, . . . , aℓ lie in ℓ − 1 flow shops of π ∗ . For i < ℓ we have Mi ≥ pai ≥ paℓ , whereas for i ≥ ℓ we have Mi ≤ Mℓ < paℓ . Every job j ≤ aℓ satisfies pj ≥ paℓ , so it cannot belong to a flow shop whose maximal processing time is Mi with i ≥ ℓ. Hence the jobs 1, . . . , aℓ lie in the set Q of

24

ℓ − 1 flow shops of π ∗ with maximal processing times M1 , . . . , Mℓ−1 . Summing the makespans of the flow shops in Q, X (ℓ − 1) OPT ≥ P ({1, . . . , aℓ }) + (m − 1) Mi . (10) i<ℓ

The run of FF(T ). When job aℓ is considered, flow shops 1, . . . , ℓ − 1 hold exactly the jobs 1, . . . , aℓ − 1 (by Lemma 12(i), since aℓ opens flow shop ℓ), and aℓ fits into none of them. By Lemma 12(i), adding aℓ to flow shop i < ℓ would increase its makespan by paℓ , so Cmax (Ji )+paℓ > T for every i < ℓ. Summing, X P ({1, . . . , aℓ − 1}) + (m − 1) pai + (ℓ − 1)paℓ > (ℓ − 1)T. i<ℓ

Using pai ≤ Mi for i < ℓ and subtracting (10), we obtain (ℓ − 2)paℓ > (ℓ − 1)(T − OPT). For ℓ = 2 ℓ−2 this contradicts T ≥ OPT; hence ℓ ≥ 3, and T − OPT < ℓ−1 paℓ . Finally, the aℓ ≥ ℓ jobs 1, . . . , aℓ lie in ℓ − 1 flow shops of π ∗ , so some flow shop holds two of them. Both have processing time at least paℓ , so OPT ≥ mpaℓ + paℓ = (m + 1)paℓ .  Lemma 14. If paℓ ≤ Mℓ for every ℓ ∈ [k], then T − OPT < 1 − k1 pn . Proof. Job n fits into none of the k flow shops, and by Lemma 12(i) adding it would increase the makespan of each by pn . Hence Cmax (Jℓ ) + pn > T for every ℓ, and summing, P (J) − pn + (m − 1)

k X

paℓ + kpn > kT.

ℓ=1

P P P By (9) and ℓ paℓ ≤ ℓ Mℓ , we have P (J)+(m−1) ℓ paℓ ≤ k OPT. Subtracting gives (k−1)pn > k(T − OPT). For k = 2 we also need the following analogue of Proposition 2 and Lemma 11. Lemma 15. Let k = 2. If OPT < (m + 2)pmin , then FF(T ) succeeds for every T ≥ OPT. Proof. A flow shop with three jobs has makespan at least (m + 2)pmin > OPT, so every flow shop of an optimal solution holds at most two jobs and n ≤ 4. If n ≤ 2, FF(T ) succeeds by Lemma 12(ii). Throughout, FF(T ) places job 1 on flow shop 1, and a job that is not placed on flow shop 1 goes to flow shop 2 if it fits there. Case n = 3. An optimal solution consists of a pair and a single job, so OPT = min{mp1 + p3 , max{mp1 , mp2 + p3 }}; the pairing {1, 2}, {3} is never better than {1, 3}, {2}. If job 2 fits on flow shop 1, then job 3 fits on flow shop 1 or on the empty flow shop 2. Otherwise job 2 opens flow shop 2, and job 3 fails only if mp1 + p3 > T and mp2 + p3 > T . The first inequality and T ≥ OPT imply OPT = max{mp1 , mp2 + p3 } ≥ mp2 + p3 , which contradicts the second. Case n = 4. Every flow shop of an optimal solution holds exactly two jobs. The pairing {1, 2}, {3, 4} has makespan at least mp1 + p2 , which is at least the makespan mp1 + p3 of the pairing {1, 3}, {2, 4} (note mp2 + p4 ≤ mp1 + p3 ). Hence OPT = min{mp1 + p3 , max{mp1 + p4 , mp2 + p3 }}. • If job 2 fits on flow shop 1, then job 3 is placed on flow shop 1 or opens flow shop 2. In the first case job 4 fits on flow shop 1 or on the empty flow shop 2. In the second case job 4 fits on flow shop 2, since mp3 + p4 ≤ mp1 + p2 ≤ T .

25

• If job 2 does not fit on flow shop 1, it opens flow shop 2. If job 3 fits on flow shop 1, then job 4 fits on flow shop 1 or on flow shop 2, since mp2 + p4 ≤ mp1 + p3 ≤ T . If job 3 does not fit on flow shop 1, then mp1 + p3 > T ≥ OPT, so OPT = max{mp1 + p4 , mp2 + p3 }. Hence job 3 fits on flow shop 2 (as mp2 + p3 ≤ OPT ≤ T ), and then job 4 fits on flow shop 1 (as mp1 + p4 ≤ OPT ≤ T ). In all cases FF(T ) succeeds. Theorem 8. Let

  1 + 

1 , 2(m + 2) ρk,m =  1  1  1 + 1− , m+1 k

k = 2, k ≥ 3.

For every instance and every T ≥ ρk,m OPT, FF(T ) succeeds. Consequently, algorithm MF is a ρk,m -approximation algorithm with running time O(n log n + nk log(mP (J))). Proof. Suppose that FF(T ) fails for some T ≥ ρk,m OPT. By Lemma 12(iii), we may assume that it fails at the last job n; this does not increase OPT, so T ≥ ρk,m OPT still holds, and T ≥ OPT. We apply Lemma 13. If its second alternative in Lemma 13 holds, then k ≥ 3 and  T < 1+

  k−2 k−1  OPT ≤ 1 + OPT = ρk,m OPT, (k − 1)(m + 1) k(m + 1)

where we used (k − 2)k ≤ (k − 1)2 ; this is a contradiction.  Otherwise, Lemma 14 gives T < OPT + 1 − k1 pn . Since n ≥ k + 1, some flow shop of π ∗ holds  T two jobs, so OPT ≥ (m + 1)pn . For k ≥ 3 this yields T < OP T + 1 − k1 OP < ρk,m OPT, a m+2  1 contradiction. For k = 2: if OPT ≥ (m+2)pn , then T < OPT+ p2n ≤ 1+ 2(m+2) OPT = ρk,m OPT, a contradiction; and if OPT < (m + 2)pn = (m + 2)pmin , then FF(T ) succeeds by Lemma 15, again a contradiction. Correctness of MF. The procedure maintains that FF(lo) fails and FF(hi) succeeds; at the start, this holds by Lemma 12(v) and by the first part of the theorem, since hi ≥ 2U ≥ 2 OPT ≥ ρk,m OPT. At the end, hi = lo + 1 and FF(lo) fails. By the first part, lo < ρk,m OPT. By Lemma 12(iv), FF(⌊ρk,m OPT⌋) behaves as FF(ρk,m OPT) and succeeds, so lo ̸= ⌊ρk,m OPT⌋. Since lo is an integer, lo ≤ ⌊ρk,m OPT⌋−1, and the returned solution has makespan at most hi ≤ ⌊ρk,m OPT⌋ ≤ ρk,m OPT. Running time. Sorting takes O(n log n) time and H2 takes O(n log n) time. Each run of FF(T ) takes O(nk) time, by maintaining the load and the leading job of every flow shop. Every flow shop of every solution has makespan at most P (J) + (m − 1)pmax ≤ mP (J), so U ≤ mP (J) and the bisection performs O(log(mP (J))) runs. Discussion. For k = 2, the bound of Theorem 8 coincides with that of the enumeration algorithm (Theorem 6), and for k ≥ 3 it is only slightly weaker (m + 1 instead of m + 2 in the denominator), while the running than the bound  time is polynomial in k. For every m ≥ 2 it is 1strictly smaller 1 1 1+ 1− m 1 − k1 of the LPT list scheduling algorithms, since m+1 < 1− m for m ≥ 2, and, like the enumeration bound, it tends to 1 as m → ∞.

26

7.3

A lower bound

The following family shows that the ratio of MF is 1 + Θ(1/m), so that the order of the bounds in Theorem 8 cannot be improved. The lower bound holds regardless of how the target is searched 1 for: on these instances, every successful run of FF(T ) returns a solution that is a factor 1 + 3m+5 away from the optimum. Proposition 4. For every k ≥ 2 and m ≥ 1, there is an instance on which, for every target T ,  1 FF(T ) either fails or returns a solution of makespan at least 1 + 3m+5 OPT. In particular, the 1 approximation ratio of MF is at least 1 + 3m+5 . Proof. The instance consists of k−2 blocking jobs of length G = 3m+5, one job of length A = 3m+1, two jobs of length B = 3m, and three jobs of length D = 2m. Let Θ = mG = 3m2 + 5m. OPT = Θ. Placing each blocking job alone, jobs of lengths {A, D, D} on one flow shop and of lengths {B, B, D} on the last one gives makespans of mG = Θ, mA + 4m = 3m2 + 5m = Θ and (m + 1)B + D = 3m2 + 5m = Θ. Conversely, if k ≥ 3, then OPT ≥ mpmax = Θ. If k = 2, consider the flow shop that holds job A. If it also holds both jobs of length B, its makespan is at least mA + 2B = 3m2 + 7m. If it holds no job of length B, then the other flow shop has makespan at least (m + 1)B = 3m2 + 3m, and adding to it at least two of the three jobs of length D gives at least 3m2 + 7m, while adding at most one leaves at least two of them with A, giving at least mA+4m = Θ. If it holds exactly one job of length B, its makespan is at least mA+B = 3m2 +4m; adding a job of length D gives at least 3m2 + 6m, and otherwise the other flow shop holds B and all three jobs of length D, with makespan 3m2 + 6m. In all cases the makespan is at least Θ. FF(T ) fails for Θ ≤ T < Θ + m. Every blocking job opens its own flow shop, since adding any job to a blocking job gives makespan at least Θ + 2m > T ; for the same reason, no later job is placed on these flow shops. Job A opens the next flow shop, and the first job of length B joins it, since mA + B = 3m2 + 4m ≤ Θ. The second job of length B does not fit there (mA + 2B = Θ + 2m) and opens the last flow shop. The first two jobs of length D do not fit on the flow shop of A (mA + B + D = Θ + m > T ), and are placed on the last flow shop, which reaches mB + 2D = 3m2 + 4m. The third job of length D fits on neither flow shop, since mA + B + D = mB + 3D = Θ + m > T , so FF(T ) fails. For T < Θ, FF(T ) fails by Lemma 12(v). Every successful run has makespan at least Θ + m. Let T ≥ Θ be such that FF(T ) succeeds. If some blocking job shares its flow shop with another job, the makespan is at least Θ + 2m. Otherwise, as above, A and the first job of length B share a flow shop, since mA + B ≤ Θ ≤ T and the blocking flow shops are not used. If this flow shop receives a further job, its makespan is at least mA + B + D = Θ + m. Otherwise, the remaining jobs B, D, D, D are all on the last flow shop, whose makespan is mB + 3D = Θ + m. Hence every successful run returns makespan at least Θ + m, and the ratio is at least Θ+m Θ = 1 1 + 3m+5 .

8

Computational experiments

We complement the worst-case analysis with an experimental study on randomly generated instances. Its purpose is to compare the algorithms on typical rather than worst-case instances, to see how their performance depends on k, m, n and the distribution of processing times, and to check whether the trends predicted by the analysis also appear on average.

27

8.1

Setup

Algorithms. We implemented all algorithms in C++ (compiled with g++ -O2): the six list scheduling algorithms H1 , . . . , H6 of Sections 4 and 5; enumeration of the leading jobs combined with makespan balancing (Enum-MB, Theorem 6) and with load balancing (Enum-LB, Theorem 7); and the MULTIFIT-type algorithm MF of Section 7, whose bisection uses the makespan of H2 as the initial upper bound. In our implementation, MF returns the best solution found by any successful run of FF(T ) during the bisection; this is never worse than the solution of the last run, so the guarantee of Theorem 8 still applies. For H1 , H3 and H4 , the list is the order in which the jobs are generated. Optimal values. We computed optimal values with the CP-SAT solver of Google OR-Tools (version 9.15), applied to the following mixed integer linear programming (MILP) formulation. A binary variable xjℓ equals 1 if job j is assigned to flow shop ℓ, a continuous variable yℓ ≥ 0 represents the maximal processing time of flow shop ℓ, and C is the makespan: min C P s.t. ℓ∈[k] xjℓ = 1 yℓ ≥ pj xjℓ P j∈J pj xjℓ + (m − 1) yℓ ≤ C P j∈J xjℓ ≥ 1 y1 ≥ y2 ≥ · · · ≥ yk , xjℓ ∈ {0, 1},

j ∈ J,

(11)

j ∈ J, ℓ ∈ [k],

(12)

ℓ ∈ [k],

(13)

ℓ ∈ [k],

(14)

x11 = 1,

yℓ ≥ 0

(15) j ∈ J, ℓ ∈ [k].

Constraints (11) assign every job to exactly one flow shop. Constraints (12) force yℓ to be at least the processing time of every job assigned to flow shop ℓ; if xjℓ = 0, the constraint reduces to yℓ ≥ 0, so no big-M constant is needed. Since the objective minimizes C and yℓ appears in (13) with a positive coefficient, there is an optimal solution in which yℓ = pmax (Jℓ ), so that (13) expresses Cmax (Jℓ ) ≤ C by (1). Constraints (14) and (15) are optional and break symmetry: by Lemma 1 we may require every flow shop to be nonempty, we may number the flow shops in non-increasing order of their maximal processing times, and the longest job, job 1, may then be placed on flow shop 1. In addition, we imposed the best heuristic value P as an upper bound on C, and we added the aggregated constraint k C ≥ P (J) + (m − 1) ℓ∈[k] yℓ . This constraint is the sum of the constraints (13) over ℓ ∈ [k], so it is redundant both for the integer program and for its linear relaxation. We nevertheless include it because it markedly speeds up CP-SAT, whose propagation acts on individual constraints: in preliminary runs on instances with k = 10 and m ≥ 2, the solver often did not prove optimality within 30 seconds without it, whereas with it most of these instances were solved to proven optimality within a few seconds. The solver was run with two threads and a time limit of 30 seconds (10 seconds for k = 10). Our implementation states (12) as the equivalent conditional constraint “yℓ ≥ pj if xjℓ = 1”, which CP-SAT supports directly; both versions have the same set of feasible assignments and the same optimal value. Instances. We generated instances with k ∈ {2, 3, 5, 10} flow shops, m ∈ {1, 2, 5, 10, 20} machines per flow shop and n ∈ {20, 50, 100} jobs, with integer processing times drawn from one of three distributions: • uniform: pj ∼ U [1, 100]; 28

• near-equal : pj ∼ U [50, 100], in which all jobs are long and an optimal solution often places few jobs on each flow shop; • bimodal : with probability 0.2, pj ∼ U [50, 100] (a long job), and otherwise pj ∼ U [1, 20] (a short job), which mimics the tension between the load and bottleneck terms. For each of the 4 · 5 · 3 · 3 = 180 combinations we generated 10 instances, 1800 in total. Enumeration  99 was run for k ≤ 5 only, since for k = 10 and n = 100 it would require 9 ≈ 1.7 · 1012 subproblems. CP-SAT proved optimality for 1661 of the 1800 instances (92.3%), with a mean solution time of 1.6 seconds. The remaining 139 instances are 11 instances with k = 5 and 128 instances with k = 10 and m ≥ 2 (with one exception), on which the solver reached its time limit. Tables 2–5 and Figure 1 report results for the instances with a proven optimum, so all gaps are exact; we comment on the remaining instances at the end of this section. For an algorithm with makespan z, we report the relative gap 100(z/OPT−1), in percent. Running times exclude the common O(n log n) sorting step.

8.2

Results m

#

H1

H3

H4

1 2 5 10 20

270 265 266 268 270

5.53 (48.75) 6.23 (54.50) 7.96 (23.70) 8.32 (21.72) 7.99 (20.76)

5.53 (48.75) 5.83 (51.50) 6.06 (20.37) 5.35 (17.11) 4.27 (9.66)

5.53 (48.75) 6.27 (60.00) 7.52 (30.22) 7.80 (27.04) 7.16 (18.57)

H2

H5 =H6

Enum-LB Enum-MB

0.51 (6.86) 0.51 (6.86) 0.07 (1.40) 2.97 (23.50) 2.15 (7.83) 2.14 (23.00) 6.32 (23.70) 4.56 (13.18) 5.05 (22.59) 7.51 (20.17) 5.55 (14.75) 6.52 (19.05) 7.70 (19.31) 5.67 (14.17) 7.08 (19.26)

0.07 (1.40) 0.16 (1.62) 0.15 (1.71) 0.10 (1.11) 0.06 (0.72)

MF 0.27 (3.95) 0.39 (4.80) 0.19 (2.48) 0.10 (2.31) 0.04 (0.63)

All 1339 7.21 (54.50) 5.40 (51.50) 6.86 (60.00) 5.00 (23.70) 3.69 (14.75) 4.17 (23.00) 0.11 (1.71) 0.20 (4.80)

Table 2: Mean (maximum) relative gap to the optimum, in %, by the number m of machines per flow shop, for the instances with k ≤ 5 whose optimum was proven by CP-SAT.

k 2 3 5 10

#

H1

450 4.25 (23.70) 450 7.14 (42.61) 439 10.30 (54.50) 322 11.55 (64.08)

All 1661

H4

H2

3.22 (20.37) 3.95 (24.44) 5.27 (42.61) 6.63 (42.61) 7.77 (51.50) 10.07 (60.00) 9.89 (64.08) 12.46 (64.08)

H3

3.34 (23.70) 5.47 (19.31) 6.22 (23.50) 3.83 (20.91)

8.05 (64.08) 6.27 (64.08)

Enum-LB Enum-MB

MF

2.62 (11.70) 3.10 (22.59) 0.07 (1.02) 4.14 (12.66) 4.46 (19.26) 0.12 (1.71) 4.32 (14.75) 4.99 (23.00) 0.14 (1.62) 1.51 (10.85) – –

H5 =H6

0.07 (1.36) 0.27 (4.80) 0.26 (4.07) 0.06 (1.69)

7.94 (64.08) 4.77 (23.70) 3.27 (14.75) 4.17 (23.00) 0.11 (1.71) 0.17 (4.80)

Table 3: Mean (maximum) relative gap to the optimum, in %, by the number k of flow shops, for the instances whose optimum was proven by CP-SAT. Enumeration is not run for k = 10.

Distribution

#

H1

H3

H4

H2

H5 =H6

Enum-LB Enum-MB

MF

bimodal near-equal uniform

450 9.23 (54.50) 6.83 (51.50) 8.84 (60.00) 5.78 (23.70) 3.55 (14.75) 5.46 (23.00) 0.03 (1.11) 0.02 (2.31) 439 5.06 (15.74) 3.98 (19.54) 4.84 (21.62) 3.86 (13.53) 3.47 (12.03) 2.37 (11.42) 0.22 (1.71) 0.49 (4.80) 450 7.28 (29.90) 5.37 (29.90) 6.84 (29.90) 5.33 (17.38) 4.05 (14.17) 4.64 (15.58) 0.07 (1.43) 0.09 (2.94)

All

1339 7.21 (54.50) 5.40 (51.50) 6.86 (60.00) 5.00 (23.70) 3.69 (14.75) 4.17 (23.00) 0.11 (1.71) 0.20 (4.80)

Table 4: Mean (maximum) relative gap to the optimum, in %, by the distribution of processing times, for the instances with k ≤ 5 whose optimum was proven by CP-SAT.

29

Algorithm

# runs

optimal (%)

gap ≤ 1% (%)

mean time

max time

H1 H3 H4 H2 H5 =H6 Enum-LB Enum-MB MF

1661 1661 1661 1661 1661 1339 1339 1661

2.3 3.1 3.0 17.0 25.9 19.3 62.7 70.7

7.8 9.4 8.2 28.1 37.7 32.3 99.3 95.5

1.8 µs 0.9 µs 1.0 µs 0.7 µs 0.8 µs 189.2 ms 188.6 ms 3.2 µs

25.1 µs 19.3 µs 12.6 µs 18.2 µs 18.8 µs 1.90 s 1.90 s 44.6 µs

Table 5: Share of instances solved optimally or within 1% of the optimum, and running times (C++, single thread). H3

Mean gap to optimum (%, log scale)

101

H2

H5 = H6

H1 H2 H5 = H6 H3

80

100

10−1

Enum-MB MF

1

2

Instances solved optimally (%)

H1

Enum-MB

MF MF Enum-MB

60 40 20

H5 = H6 H2 H3 H1

0

5 10 20 Machines per flow shop m

1

2

5 10 20 Machines per flow shop m

Figure 1: Mean relative gap to the optimum (left, logarithmic scale) and share of instances solved optimally (right), as a function of the number m of machines per flow shop, for the instances with k ≤ 5 and a proven optimum. H4 is omitted, since it is almost indistinguishable from H1 ; the values are given in Table 2. Arbitrary ordering. The three rules with arbitrary ordering perform poorly: their mean gap is between 5% and 8%, and their maximum gap reaches 64% (Table 3). The worst instances have k = 10 and bimodal processing times, where long jobs that appear late in the list are placed on flow shops that are already loaded. Among the three rules, H3 (least resulting makespan) is consistently the best. Its advantage grows with m: its mean gap decreases from 5.5% for m = 1 to 4.3% for m = 20, whereas the gaps of H1 and H4 increase to about 7–8% (Table 2). This agrees with the analysis: H3 is the only rule with arbitrary ordering that accounts for the increase of the bottleneck term when a job becomes the longest job on its flow shop. In the worst case, H4 is the weakest of the three (maximum gap 60% versus 54.5% for H1 among the instances with k ≤ 5), in line with Theorem 3 and Proposition 1. LPT ordering. For m = 1, where all three rules coincide with Graham’s LPT algorithm, the mean gap of the LPT algorithms is only 0.5%. As m grows, however, their performance deteriorates markedly: the mean gap of H2 grows to 7.7% and that of H5 = H6 to 5.7% for m = 20, and the

30

share of instances that they solve optimally drops from about 50% to below 15% (Figure 1). This is the average-case counterpart of the observation that the benefit of LPT vanishes as m → ∞ (Theorems 4 and 5). H5 and H6 produced identical solutions on all 1800 instances, as predicted by Lemma 8, and they outperform H2 : over all instances, H5 is better than H2 on 1117 instances, equal on 653, and worse on only 30. Enumeration. Combined with makespan balancing, enumeration of the leading jobs is very effective: Enum-MB has a mean gap of 0.11% and a maximum gap of 1.71%, it solves 62.7% of the instances optimally and 99.3% of them within 1% of the optimum (Table 5). Combined with load balancing, enumeration is hardly better than plain LPT list scheduling: Enum-LB has a mean gap of 4.17%, compared with 5.00% for H2 , and its gap also grows with m. This confirms, on average, the conclusion of Theorem 7: balancing loads ignores the bottleneck term, and enumerating the leading jobs cannot compensate for this. The price of enumeration is its running time, which reaches almost 2 seconds for k = 5 and n = 100 and grows as nk . The MULTIFIT-type algorithm. MF is the best algorithm overall. On all instances with a proven optimum, its mean gap is 0.17% and its maximum gap is 4.80%. It solves 70.7% of the instances optimally, more than Enum-MB, and 95.5% of them within 1% of the optimum, while running in a few microseconds. Its mean gap decreases with m, from 0.27% for m = 1 to 0.04% for m = 20, in agreement with Theorem 8, whose bound also tends to 1 as m → ∞. MF remains equally good for k = 10 (mean gap 0.06%), where enumeration is not applicable. Its weakest case is the near-equal distribution (mean gap 0.49%, maximum 4.80%). In these instances an optimal solution places few jobs on each flow shop, which is the two-job regime OPT < (m + 2)pmin that the analysis of MF for k ≥ 3 does not fully exploit (Section 7). On the instances with k ≤ 5, MF and Enum-MB complement each other: MF is better on 251 instances, equal on 809, and worse on 279. Taking the better of the two solutions reduces the mean gap to 0.07% and the maximum gap to 1.62%. Instances without a proven optimum. On the 139 instances for which CP-SAT did not prove optimality, we compare the algorithms with the best solution found by the solver, which is an upper bound on the optimum. MF matches this solution on 56.8% of these instances and is on average only 0.25% above it, compared with 6.20% for H5 = H6 and 7.76% for H2 . Hence the conclusions above also hold for the harder instances with k = 10 and m ≥ 2. Consistency with the worst-case bounds and the role of the target search. On every instance with a proven optimum, the ratios of MF and Enum-MB respect the bounds of Theorems 8 and 6, and Enum-MB is never worse than H5 , as it must be. Finally, the lower bound max{LB1 , LB2 , LB3 } of Lemma 2 is on average 6.8% below the optimum. This explains why the fixed-threshold variant discussed at the beginning of Section 7 is not sufficient: a weak threshold leads the algorithm to separate long jobs that should share a flow shop, and searching for the target value is essential. Summary. On random instances, all algorithms perform much better than their worst-case bounds suggest, but the ranking agrees with the analysis. Among the list scheduling algorithms, LPT ordering combined with the LR or LC rule is the best choice, but its quality degrades as m grows. Enumeration with makespan balancing and the MULTIFIT-type algorithm are both within a fraction of a percent of the optimum on average, and MF achieves this in microseconds and for 31

every k. For practical use, we therefore recommend MF, possibly combined with Enum-MB when k is small.

9

Concluding remarks

We studied the distributed proportionate flow shop problem, in which the sequencing layer of the distributed permutation flow shop disappears and the assignment layer can be analyzed exactly. The problem generalizes P || Cmax and is NP-hard for every fixed m. Graham’s bound 2 − k1 for list scheduling survives for every m when jobs are assigned by load or by resulting makespan, but not when  they  are assigned by current makespan. LPT ordering improves all three rules to 1 1+ 1− m 1 − k1 , but this gain vanishes as m → ∞. Enumerating the leading  jobs and balancing 1 1 current makespans within each subproblem yields a ratio of 1 + m+2 1 − k , which improves with m, and a MULTIFIT-type algorithm achieves a ratio of the same order, 1 + O(1/m), in time polynomial in k. Our experiments show that the same ranking holds on random instances, where the MULTIFIT-type algorithm is the best choice in practice. Several questions remain open. • Closing the gaps between the upper and lower bounds for H5 = H6 when k ≥ 3 (e.g., [ 76 , 11 8 ] for k = 4, m = 2), and for the enumeration algorithm of Theorem 6 (e.g., [ 78 , 76 ] for k = 2, m = 1). • Approximation schemes. A PTAS is known when k and m are fixed [29] and when m = 2 [6], as special cases of results for general parallel flow shops. Whether a PTAS exists for fixed m ≥ 3 when k is part of the input remains open; the proportionate structure suggests extending the approach of Hochbaum and Shmoys [15], in which the bottleneck term is handled by guessing the leading job of each flow shop up to rounding. • The exact worst-case ratio of the MULTIFIT-type algorithm of Section 7 for m ≥ 2, which  1 1 1 1 1 lies between 1 + 3m+5 and 1 + m+1 1 − k (between 1 + 3m+5 and 1 + 2m+4 for k = 2), and in particular whether FF(T ) succeeds for every T ≥ OPT when every flow shop of an optimal at most two jobs, which would improve its ratio for k ≥ 3 to  1solution1 holdsk−2 1 + max m+2 (1 − k ), (k−1)(m+1) . Declaration of generative AI and AI-assisted technologies During the preparation of this work, the authors used Claude (Anthropic, Claude Opus 5.5) to fill gaps in results the authors had established in an earlier draft. Specifically, Claude completed the entire analysis for MF presented in Section 7, some of the lower-bound results (Propositions 1 and 3 and Theorem 5), and the optimality proof for the cases in which the heuristics produce solutions with at most two jobs on each flow shop (Proposition 2 and Corollary 1). After completing a first draft, the authors used Claude to polish the entire text, to extract properties common to several proofs into standalone lemmas, and to develop the final section, which presents the experimental study. The authors independently verified all proofs, reviewed and edited the content as needed, and take full responsibility for the content of the publication.

References [1] N. Alon, Y. Azar, G. J. Woeginger, and T. Yadid. Approximation schemes for scheduling on parallel machines. Journal of Scheduling, 1(1):55–66, 1998. 32

[2] J. Behnamian and S. M. T. Fatemi Ghomi. A survey of multi-factory scheduling. Journal of Intelligent Manufacturing, 27:231–249, 2016. [3] T. C. E. Cheng and N. Shakhlevich. Proportionate flow shop with controllable processing times. Journal of Scheduling, 2(6):253–265, 1999. [4] E. G. Coffman, M. R. Garey, and D. S. Johnson. An application of bin-packing to multiprocessor scheduling. SIAM Journal on Computing, 7(1):1–17, 1978. [5] J. Dong, W. Tong, T. Luo, X. Wang, J. Hu, Y. Xu, and G. Lin. An FPTAS for the parallel two-stage flowshop problem. Theoretical Computer Science, 657:64–72, 2017. [6] J. Dong, R. Jin, T. Luo, and W. Tong. A polynomial-time approximation scheme for an arbitrary number of parallel two-stage flow-shops. European Journal of Operational Research, 281:16–24, 2020. [7] M. R. Garey and D. S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979. [8] M. R. Garey, D. S. Johnson, and R. Sethi. The complexity of flowshop and jobshop scheduling. Mathematics of Operations Research, 1(2):117–129, 1976. [9] S. Gawiejnowicz and N. Halman. Two new approximation schemes for maximizing the weighted number of just-in-time jobs in a multi-machine proportionate flow shop. Discrete Applied Mathematics, 377:429–435, 2025. [10] R. L. Graham. Bounds for certain multiprocessing anomalies. Bell System Technical Journal, 45(9):1563–1581, 1966. [11] R. L. Graham. Bounds on multiprocessing timing anomalies. SIAM Journal on Applied Mathematics, 17(2):416–429, 1969. [12] R. L. Graham, E. L. Lawler, J. K. Lenstra, and A. H. G. Rinnooy Kan. Optimization and approximation in deterministic sequencing and scheduling: a survey. Annals of Discrete Mathematics, 5:287–326, 1979. [13] D. W. He, A. Kusiak, and A. Artiba. A scheduling problem in glass manufacturing. IIE Transactions, 28:129–139, 1996. [14] C. Hertrich, C. Weiß, H. Ackermann, S. Heydrich, and S. O. Krumke. Scheduling a proportionate flow shop of batching machines. Journal of Scheduling, 23:575–593, 2020. [15] D. S. Hochbaum and D. B. Shmoys. Using dual approximation algorithms for scheduling problems: theoretical and practical results. Journal of the ACM, 34(1):144–162, 1987. [16] K. Jansen. An EPTAS for scheduling jobs on uniform processors: using an MILP relaxation with a constant number of integral variables. SIAM Journal on Discrete Mathematics, 24(2):457–485, 2010. [17] S. M. Johnson. Optimal two- and three-stage production schedules with setup times included. Naval Research Logistics Quarterly, 1(1):61–68, 1954.

33

[18] M. Y. Kovalyov. Efficient epsilon-approximation algorithm for minimizing the makespan in a parallel two-stage system. Vesti Akademii Navuk BSSR, Seryya Fizika-Matematychnykh Navuk, 1985 (in Russian). [19] C.-Y. Lee, R. Uzsoy, and L. A. Martin-Vega. Efficient algorithms for scheduling semiconductor burn-in operations. Operations Research, 40(4):764–775, 1992. [20] B. Mor, G. Mosheiov, and D. Shabtay. Minimizing the total tardiness and job rejection cost in a proportionate flow shop with generalized due dates. Journal of Scheduling, 24:553–567, 2021. [21] B. Mor, D. Shapira.Scheduling problems on a new setting of flexible flowshops: ℓ-Machine proportionate flowshops. Journal of the Operational Research Society, 73:1499–1516, 2022. [22] B. Naderi and R. Ruiz. The distributed permutation flowshop scheduling problem. Computers & Operations Research, 37(4):754–768, 2010. [23] P. S. Ow. Focused scheduling in proportionate flowshops. Management Science, 31(7):852–869, 1985. [24] S. S. Panwalkar, M. L. Smith, and C. Koulamas. Review of the ordered and proportionate flow shop scheduling research. Naval Research Logistics, 60(1):46–55, 2013. [25] P. Pérez-González and J. M. Framinan. A review and classification on distributed permutation flowshop scheduling problems. European Journal of Operational Research, 312:1–21, 2024. [26] M. L. Pinedo. Scheduling: Theory, Algorithms, and Systems. 6th edition, Springer, 2022. [27] R. Ruiz, Q.-K. Pan, and B. Naderi. Iterated greedy methods for the distributed permutation flowshop scheduling problem. Omega, 83:213–222, 2019. [28] D. Shabtay. Coordinating scheduling and resource allocation decisions in a proportionate flowshop scheduling environment. Optimization Letters, 20:727–745, 2026. [29] W. Tong, E. Miyano, R. Goebel, and G. Lin. An approximation scheme for minimizing the makespan of the parallel identical multi-stage flow-shops. Theoretical Computer Science, 734:24–31, 2018. [30] G. Vairaktarakis and M. Elhafsi. The use of flowlines to simplify routing complexity in twostage flowshops. IIE Transactions, 32:687–699, 2000. [31] G. Wu and J. Chen. Approximation algorithms on multiple two-stage flowshops. In Computing and Combinatorics (COCOON 2018), Lecture Notes in Computer Science, pages 713–725. Springer, 2018. [32] K.-C. Ying, P. Pourhejazy, and C.-E. Sung. Two-agent proportionate flowshop scheduling with deadlines: polynomial-time optimization algorithms. Annals of Operations Research, 343:543– 558, 2024. [33] M. Yue. On the exact upper bound for the MULTIFIT processor scheduling algorithm. Annals of Operations Research, 24:233–259, 1990. [34] X. Zhang and S. van de Velde. Approximation algorithms for the parallel flow shop problem. European Journal of Operational Research, 216:544–552, 2012.

34

Related documents

Record · ID 1836055 · SHA-256 e3b6bb5f43148997
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive