Introduction
In Contiguous Monotone Moldable Job Scheduling (CMMJS), we are given n ∈ Z > 0 n \in\mathbb{Z}_{>0} n ∈ Z > 0 jobs and m ∈ Z > 0 m \in\mathbb{Z}_{>0} m ∈ Z > 0 machines. Each job j ∈ [ n ] j \in[n] j ∈ [ n ] is associated with a function t j : [ m ] → Q > 0 t_j : [m] \to\mathbb{Q}_{>0} t j : [ m ] → Q > 0 which assigns a number of machines to a processing time. Furthermore, the work area function w j : [ m ] → Q > 0 w_j : [m] \to\mathbb{Q}_{>0} w j : [ m ] → Q > 0 , with w j ( k ) : = t j ( k ) ⋅ k w_j(k) := t_j(k) \cdot k w j ( k ) := t j ( k ) ⋅ k , defines the work area of a job j j j , when assigned to k k k machines. We assume that w j w_j w j is non-decreasing and t j t_j t j is non-increasing. A schedule is given by assigning every job j j j to a number of machines α j ∈ [ m ] \alpha_j \in[m] α j ∈ [ m ] and a starting time s j s_j s j . In any feasible schedule, the total number of machines assigned to jobs at any time must not exceed m m m . A schedule is contiguous if for each job j j j the machines assigned to it are consecutive, i.e., if j j j is assigned to machines m j , … , m j + α j − 1 m_j,\ldots,m_j+\alpha_j-1 m j , … , m j + α j − 1 for some m j ∈ [ m − α j + 1 ] m_j \in[m-\alpha_j+1] m j ∈ [ m − α j + 1 ] . Our goal is to minimize the makespan of the schedule, i.e., max j ∈ [ n ] s j + t j ( α j ) \max_{j\in[n]} s_j+t_j(\alpha_j) max j ∈ [ n ] s j + t j ( α j ) . We denote the minimal makespan as OPT. For any machine i ∈ [ m ] i \in[m] i ∈ [ m ] , we say that the load of that machine is the last time where a job has been executed on that machine, i.e. load ( i ) : = max j ∈ [ n ] , i ∈ [ m j , m j + α j ) s j + t j ( α j ) \operatorname{load}(i):=\max_{j\in[n],i\in[m_j,m_j+\alpha_j)}s_j+t_j(\alpha_j) load ( i ) := max j ∈ [ n ] , i ∈ [ m j , m j + α j ) s j + t j ( α j ) .
Table 1: Practically efficient algorithms for Monotone Moldable Job Scheduling. The O ~ \widetilde{O} O notation hides logarithmic factors in n n n , m m m , and 1 / ε 1/\varepsilon 1/ ε . Algorithms marked with (*) were originally designed for the non-contiguous case but can be adapted to the contiguous case [JO26].
Table 1.
The general problem of moldable job scheduling is known to be NP-hard [2 ] and without the assumption of monotony, there exists no polynomial-time ( 3 2 − ε ) (\frac{3}{2}-\varepsilon) ( 2 3 − ε ) -approximation, unless P = NP [4 , 14 ] ; Under special assumptions there exist better polynomial-time approximations [3 , 15 ] as well as a pseudo-polynomial ( 5 4 + ε ) (\frac{5}{4}+\varepsilon) ( 4 5 + ε ) -approximation algorithm with running time of O ( n log n ) ⋅ m f ( 1 / ε ) O(n\log n)\cdot mf(1/\varepsilon) O ( n log n ) ⋅ m f ( 1/ ε ) [16 ] , where f ( ⋅ ) f(\cdot) f ( ⋅ ) is a computable function. When the number of machines m m m is bounded by a polynomial in n n n , Jansen and Thöle presented a Polynomial Time Approximation Scheme (PTAS) [17 ] for the non-contiguous variant as well as a ( 3 2 + ε ) (\frac{3}{2}+\varepsilon) ( 2 3 + ε ) -approximation for the contiguous variant. Without special restrictions, there exist 2-approximation algorithms for this problem [TWY92; LT94].
When assuming that the processing time function t j t_j t j is monotone, the problem is still NP-hard [12 ] , but the strict 3 2 \frac{3}{2} 2 3 lower bound no longer applies. Jansen and Land presented a Fully Polynomial Time Approximation Scheme (FPTAS) for the contiguous variant when ( m > 8 n ε ) (m > 8^{\frac{n}{\varepsilon}}) ( m > 8 ε n ) [11 ] and with this generalized the PTAS for the non-contiguous variant [17 ] ; However, the complexity of the PTAS is roughly n m 2 ⋅ 10 2.4 ⋅ 10 17 nm^{2\cdot10^{2.4\cdot10^{17}}} n m 2 ⋅ 1 0 2.4 ⋅ 1 0 17 , even for ε = 1 2 \varepsilon=\frac{1}{2} ε = 2 1 . A similar observation can be made for the pseudo-polynomial-time ( 5 4 + ε ) (\frac{5}{4}+\varepsilon) ( 4 5 + ε ) -approximation algorithm [16 ] , where the time complexity resolves to Ω ( ( m n ) 16 13 4 ) \Omega((mn)^{16^{\frac{13}{4}}}) Ω (( mn ) 1 6 4 13 ) for ε = 1 4 \varepsilon=\frac{1}{4} ε = 4 1 . These large constants have motivated recent work to focus on practically efficient algorithms, i.e., algorithms with a running time of O ( n m log ( 1 ε ) ) O(nm\log(\frac{1}{\varepsilon})) O ( nm log ( ε 1 )) or better.
Mounié, Rapine, and Trystram presented a ( 3 2 + ε ) (\frac{3}{2}+\varepsilon) ( 2 3 + ε ) -approximation algorithm [20 ] . The complexity of this algorithm was later improved by Jansen and Land [11 ] and Grage et al. [5 ] . While not explicitly stated in the original work, theses algorithms can be adapted to the contiguous case as well [JO26]. Wu, Zhang, and Chen [WZC23] eliminated the ε \varepsilon ε -factor in the approximation ratio, achieving a 3 2 \frac{3}{2} 2 3 -approximation algorithm. Just recently, Jansen and Ohnesorge [JO26] presented an algorithm with a worst-case ratio of roughly 1.4593 + ε 1.4593+\varepsilon 1.4593 + ε for the contiguous variant. Note that the running time O ( n m ) O(nm) O ( nm ) is technically only pseudo-polynomial, but since Jansen and Land [11 ] developed a FPTAS when the number of machines is large ( m > 8 n ε ) (m > 8^{\frac{n}{\varepsilon}}) ( m > 8 ε n ) , we can assume that m m m is polynomially in n n n to make the runtime polynomial.
The perhaps most useful observation for designing algorithms for this monotone variant is that we can assign fewer machines to a job without increasing the work area. This has been used by Jansen and Land [11 ] to round jobs that are assigned to many machines.
Definition 1. For any j ∈ [ n ] j\in[n] j ∈ [ n ] and α ′ < α ≤ m \alpha' < \alpha\le m α ′ < α ≤ m , the monotony implies:
t j ( α ′ ) ≤ w j ( α ) α ′ = t j ( α ) α α ′ . (1) t_j(\alpha') \le\frac{w_j(\alpha)}{\alpha'} = t_j(\alpha)\frac{\alpha}{\alpha'}. \tag*{(1)} t j ( α ′ ) ≤ α ′ w j ( α ) = t j ( α ) α ′ α . (1)
For example, when we assign a job to one instead of two machines, the new processing time will double at most. Similar to previous work [5 JO26, 20 ] , we will heavily rely on this property to prove our main result:
Theorem 2. Let ε > 0 \varepsilon> 0 ε > 0 . For Contiguous Monotone Moldable Job Scheduling , there exists an algorithm with an approximation ratio of 2 ε 2 ε − 1 + ε \frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}+\varepsilon 2 ε − 1 2 ε + ε and runtime of O ( n m log 1 ε ) O(nm \log\frac{1}{\varepsilon}) O ( nm log ε 1 ) .
It is worth noting that our algorithm, while designed for the contiguous case, achieves the exact same approximation ratio for the non-contiguous variant. This property is not trivially given, since the optimal makespan for a non-contiguous schedule can be strictly smaller than the optimal makespan for a contiguous one. However, our analysis—similar to the approaches used for other recent contiguous algorithms [5 JO26] —uses the maximal total work area to bound the resulting makespan. Consequently, our approximation ratio of 2 ε 2 ε − 1 + ε \frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}+\varepsilon 2 ε − 1 2 ε + ε applies to the non-contiguous case as well.
To complement this upper bound, we also provide a tight lower bound example in Appendix B demonstrating that the worst-case analysis of the algorithm is tight:
Lemma 3. For any ε > 0 \varepsilon> 0 ε > 0 , there exists an instance I I I for which Algorithm 1 returns a schedule with makespan ALG ( I ) \operatorname{ALG}(I) ALG ( I ) and ALG ( I ) OPT ( I ) ≥ 2 ε 2 ε − 1 − ε \frac{\operatorname{ALG}(I)}{\operatorname{OPT}(I)} \geq\frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}-\varepsilon OPT ( I ) ALG ( I ) ≥ 2 ε − 1 2 ε − ε .
Furthermore, we demonstrate that our improved bounds for contiguous monotone moldable job scheduling extend naturally to heterogeneous environments. Specifically, our result directly applies to an existing algorithm for the CPU/GPU Scheduling problem [6 ] . In this problem, we are again given a set of n n n jobs, but a job will be executed either on the GPU or the CPU. On the GPU a job can be executed on a single machine and with a given processing time (this corresponds to P ∥ C max P\Vert C_{\max} P ∥ C m a x ) while on the CPU a job is given a processing time function as in CMMJS. The task is now to find a partition of the jobs into two sets as well as a schedule for both sets such that the overall makespan is minimized.
While the GPU scheduling problem (P ∥ C max P\Vert C_{\max} P ∥ C m a x ) has been researched continuously since the 1960s [7 , 8 , 9 , 10 ] , the combination of this problem with the more complex CMMJS problem was first studied by Bleuse et al. [1 ] . They presented a ( 3 2 + ε ) (\frac{3}{2}+\varepsilon) ( 2 3 + ε ) -approximation algorithm with running time O ( n 2 m c 4 m g 2 ) O(n^{2}m_{c}^{4}m_{g}^{2}) O ( n 2 m c 4 m g 2 ) . Later, Germann et al. [6 ] improved the running time to O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) O(\log(nm_{c}m_{g}/\varepsilon)\cdot n^{2}m_{c}m_{g}) O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) while maintaining the same approximation ratio. We show that our result for CMMJS can be seamlessly integrated into their algorithm, leading to an improved approximation ratio for the combined CPU/GPU Scheduling problem.
By adjusting the relaxation parameter in [6 ] to precisely match our tighter CPU bound, our analysis seamlessly plugs into their Multidimensional Multiple-Choice Knapsack Problem (MMCKP) formulation. This straightforward substitution improves their dual approximation framework, yielding an improved overall approximation ratio of 2 ε 2 ε − 1 + ε \frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}+\varepsilon 2 ε − 1 2 ε + ε for the combined CPU/GPU Scheduling problem.
Theorem 4. Let ε > 0 \varepsilon> 0 ε > 0 . There exists a ( 2 ε 2 ε − 1 + ε ) (\frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}+\varepsilon) ( 2 ε − 1 2 ε + ε ) -approximation algorithm for CPU/GPU Scheduling that runs in time O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) O(\log(nm_{c}m_{g}/\varepsilon)\cdot n^{2}m_{c}m_{g}) O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) .
Organization of the Paper In § 2 , we prove our main result, which is an improved analysis of the algorithm presented in [JO26]. Complementing our analysis, we provide a lower bound example in Appendix B, demonstrating that the algorithm cannot achieve an approximation ratio better than 2 ε 2 ε − 1 \frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1} 2 ε − 1 2 ε . Finally, in § 3 , we show how this result directly implies an improved algorithm for the CPU/GPU Scheduling extension.
Preliminaries
Since we provide an improved analysis for the algorithm in [JO26], we briefly summarize their approach and establish the necessary notation. Utilizing the dual approximation framework pioneered by Hochbaum and Shmoys [8 ] , we may assume that we are given a makespan guess d d d such that O P T ≤ d < ( 1 + ε ) O P T \mathrm{OPT} \le d < (1+\varepsilon)\mathrm{OPT} OPT ≤ d < ( 1 + ε ) OPT . For simplicity, we also assume that d = 1 d=1 d = 1 (by scaling).
Given this, the algorithm in [JO26] partitions the jobs into a set of big jobs J B : = { j ∈ [ n ] ∣ t j ( 1 ) > 3 7 } J_B := \{j \in[n] \mid t_j(1) > \frac{3}{7}\} J B := { j ∈ [ n ] ∣ t j ( 1 ) > 7 3 } and a set of small jobs J S = [ n ] ∖ J B J_S = [n] \setminus J_B J S = [ n ] ∖ J B and focuses on scheduling the big jobs first. The key component of the algorithm is partitioning the big jobs J B J_B J B into three sets using a Multiple-Choice Knapsack Problem (MCKP) formulation. We restate the definition of the partitioning together with the result of our improved analysis in Lemma 5, where γ j ( x ) \gamma_j(x) γ j ( x ) denotes the minimal machine assignment of job j j j such that its processing time is at most x x x , i.e., γ j ( x ) = min { α ∈ [ m ] ∣ t j ( α ) ≤ x } \gamma_j(x) = \min\{\alpha\in[m] \mid t_j(\alpha) \le x\} γ j ( x ) = min { α ∈ [ m ] ∣ t j ( α ) ≤ x } .
Lemma 5 (Improvement of [JO26]). Given a partition of jobs C_1 \mathbin{\mathaccent\cdot\cup} C_2 \mathbin{\mathaccent\cdot\cup} C_3 = J_B s.t.
∑ j ∈ C 1 w j ( γ j ( 1 ) ) + ∑ j ∈ C 2 w j ( γ j ( 4 7 ) ) + ∑ j ∈ C 3 w j ( γ j ( 3 7 ) ) ≤ m − ∑ j ∈ J S t j ( 1 ) \sum_{j\in C_1} w_j(\gamma_j(1))+\sum_{j\in C_2}w_j\left(\gamma_j\left(\frac{4}{7}\right)\right)+\sum_{j\in C_3}w_j\left(\gamma_j\left(\frac{3}{7}\right)\right)\le m-\sum_{j\in J_S}t_j(1) ∑ j ∈ C 1 w j ( γ j ( 1 )) + ∑ j ∈ C 2 w j ( γ j ( 7 4 ) ) + ∑ j ∈ C 3 w j ( γ j ( 7 3 ) ) ≤ m − ∑ j ∈ J S t j ( 1 )
∑ j ∈ C 1 γ j ( 1 ) + 1 2 ∑ j ∈ C 2 γ j ( 4 7 ) ≤ m \sum_{j\in C_1}\gamma_j(1)+\frac{1}{2}\sum_{j\in C_2}\gamma_j\left(\frac{4}{7}\right)\le m ∑ j ∈ C 1 γ j ( 1 ) + 2 1 ∑ j ∈ C 2 γ j ( 7 4 ) ≤ m ,
one can compute a contiguous schedule with makespan at most 2 ε 2 ε − 1 \frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1} 2 ε − 1 2 ε in time O ( n m ) O(nm) O ( nm ) .
Note that the partition required for Lemma 5 can be found by a MCKP. Algorithm 1 gives a high-level overview on how the jobs are scheduled in [JO26]. For completeness, we include the
Algorithm 1 CMMJS Approximation Algorithm [JO26]
Require: Partition C_1 \mathbin{\mathaccent\cdot\cup} C_2 \mathbin{\mathaccent\cdot\cup} C_3 = J_B and small jobs J S J_S J S
Construct S 0 , S 1 , S 2 S_0,S_1,S_2 S 0 , S 1 , S 2 from C 1 , C 2 , C 3 C_1,C_2,C_3 C 1 , C 2 , C 3 as in [JO26]. ▷ Algorithm 4
Schedule jobs in S_0 \mathbin{\mathaccent\cdot\cup} S_1 at time 0 so that the load of the machines is non-decreasing.
Schedule jobs in S 2 S_2 S 2 with Algorithm 3 or Algorithm 2.
Greedily schedule small jobs J S J_S J S .
procedure for constructing S 0 S_0 S 0 , S 1 S_1 S 1 , and S 2 S_2 S 2 in Appendix § 9 (Algorithm 4). Here, we give only the high-level idea and summarize important properties of these sets in Lemma 7.
Figure 1. (a) The schedule as in Remark 6 . (b) The blue job cannot be placed on top of the orange jobs since its machine requirement is greater than m 1 m_1 m 1 and therefore intersects S 0 S_0 S 0 .
Let m 1 : = m − ∑ j ∈ S 0 γ j ( λ ) m_1 := m-\sum_{j\in S_0}\gamma_j(\lambda) m 1 := m − ∑ j ∈ S 0 γ j ( λ ) denote the number of machines remaining after placing S 0 S_0 S 0 . By construction, every job in S 0 S_0 S 0 has a processing time strictly greater than 1. Thus, the combined work area of the jobs in S 1 S_1 S 1 and S 2 S_2 S 2 is upper-bounded by m 1 m_1 m 1 . The result of these transformations is a so-called 3-Shelf Schedule with the following properties:
Lemma 7 ([JO26], Definition 9 and Lemma 10). *Given λ ∈ [ 10 7 , 3 2 ) \lambda\in[\frac{10}{7},\frac{3}{2}) λ ∈ [ 7 10 , 2 3 ) and a partition of C_1 \mathbin{\mathaccent\cdot\cup} C_2 \mathbin{\mathaccent\cdot\cup} C_3 = J_B as in Lemma 5, we can return a contiguous schedule with a makespan of at most λ \lambda λ in time O ( m n ) O(mn) O ( mn ) or construct a partition S_0 \mathbin{\mathaccent\cdot\cup} S_1 \mathbin{\mathaccent\cdot\cup} S_2 = J_B s.t.
a) The total work area is at most ∑ j ∈ S 1 w j ( γ j ( 1 ) ) + ∑ j ∈ S 2 w j ( γ j ( λ − 1 ) ) ≤ m 1 \sum_{j \in S_1} w_j(\gamma_j(1)) + \sum_{j \in S_2} w_j(\gamma_j(\lambda- 1)) \le m_1 ∑ j ∈ S 1 w j ( γ j ( 1 )) + ∑ j ∈ S 2 w j ( γ j ( λ − 1 )) ≤ m 1
a) All jobs in S 1 S_1 S 1 can be scheduled on m 1 − q m_1-q m 1 − q machines with makespan at most 1.
b) With the exception of one job assigned to a single machine, every job in S 1 S_1 S 1 has a processing time greater than λ 2 \frac{\lambda}{2} 2 λ
c) The total work area of S 1 S_1 S 1 is at least W 1 : = ∑ j ∈ S 1 w j ( γ j ( 1 ) ) ≥ λ 2 ( m 1 − q ) W_1 := \sum_{j \in S_1} w_j(\gamma_j(1)) \ge\frac{\lambda}{2}(m_1-q) W 1 := ∑ j ∈ S 1 w j ( γ j ( 1 )) ≥ 2 λ ( m 1 − q ) .
a) Each job j ∈ S 2 j \in S_2 j ∈ S 2 has work area at least w j ( γ j ( λ − 1 ) ) > λ q ≥ λ w_j(\gamma_j(\lambda- 1)) > \lambda q \ge\lambda w j ( γ j ( λ − 1 )) > λ q ≥ λ (since q ≥ 1 q \ge1 q ≥ 1 ).
A Better Analysis for Contiguous Monotone Moldable Job Scheduling
In this section we will assume that the properties given by Lemma 7 hold since otherwise we can already find a schedule with makespan at most λ \lambda λ . We will now place the jobs in S 0 ⊔ S 1 S_0 \sqcup S_1 S 0 ⊔ S 1 as in Algorithm 1 and show how to handle S 2 S_2 S 2 .
Lemma 8. Let λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e . If ∣ S 2 ∣ > 1 |S_2| > 1 ∣ S 2 ∣ > 1 , then we can create a contiguous schedule with makespan at most λ \lambda λ .
Proof. We defer the proof of this lemma to Appendix A, since it is analogous to [JO26].
Using the above lemma, we may assume ∣ S 2 ∣ = 1 |S_2| = 1 ∣ S 2 ∣ = 1 for the remainder of the analysis. We focus on the job in S 2 S_2 S 2 and refer to it as j ~ \tilde{j} j ~ and to denote its work area as W 2 W_2 W 2 . As in [JO26], we schedule j ~ \tilde{j} j ~ using the intuitive procedure outlined in Algorithm 2. We compress j ~ \tilde{j} j ~ onto any possible number of machines in [ m 1 ] [m_1] [ m 1 ] and place j ~ \tilde{j} j ~ with minimal makespan.
Algorithm 2 Schedule Assignment
Require: Schedule from Remark 6.
1: i_min = arg min_{i∈[m_1]} load(i) + W_2/i
2: Compress \tilde{j} on i_min machines and execute it as early as possible on machines 1, …, i_min.
In the following, we provide a new and tight analysis for the outlined algorithm (specifically Algorithm 2). Observe that Lemmas 8 and 9 together imply Theorem 2. Therefore, the remainder of this section is dedicated to proving Lemma 9 . We will prove the lemma by carefully analyzing of the total work area of all jobs in S 1 S_1 S 1 and of the job j ~ \tilde{j} j ~ in S 2 S_2 S 2 .
Lemma 9. Let λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e . If ∣ S 2 ∣ = 1 |S_2|=1 ∣ S 2 ∣ = 1 , then Algorithm 2 finds a contiguous monotone moldable job schedule with makespan at most λ \lambda λ .
Proof. We denote the single job in S 2 S_2 S 2 as j ~ \tilde{j} j ~ . Note that γ j ~ ( λ − 1 ) > m 1 \gamma_{\tilde{j}}(\lambda-1)>m_1 γ j ~ ( λ − 1 ) > m 1 . Otherwise the job j ~ \tilde{j} j ~ can be executed on machines 1 , … , m 1 1,\ldots,m_1 1 , … , m 1 , resulting in a makespan of at most λ \lambda λ (see Figure 1 ). Therefore, we assume in the following that γ j ~ ( λ − 1 ) > m 1 \gamma_{\tilde{j}}(\lambda-1)>m_1 γ j ~ ( λ − 1 ) > m 1 . Since we denote by W 2 : = ∑ j ∈ S 2 w j ( γ j ( λ − 1 ) ) W_2:=\sum_{j\in S_2}w_j(\gamma_j(\lambda-1)) W 2 := ∑ j ∈ S 2 w j ( γ j ( λ − 1 )) the total work in S 2 S_2 S 2 , this implies:
W 2 > ( λ − 1 ) m 1 . (2) W_2>(\lambda-1)m_1. \tag*{(2)} W 2 > ( λ − 1 ) m 1 . (2) Combining Lemma 1.3 1a and 2c gives us:
W 2 ≤ m 1 − λ 2 ( m 1 − q ) = ( 1 − λ 2 ) m 1 + λ 2 q . (3) W_2\le m_1-\frac{\lambda}{2}(m_1-q)=\left(1-\frac{\lambda}{2}\right)m_1+\frac{\lambda}{2}q. \tag*{(3)} W 2 ≤ m 1 − 2 λ ( m 1 − q ) = ( 1 − 2 λ ) m 1 + 2 λ q . (3) Lastly, by interpolating between Equations (2) and (3) , we obtain that there exists a c ∈ ( 0 , 1 ] c\in(0,1] c ∈ ( 0 , 1 ] that satisfies:
W 2 = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 + c λ 2 q (4) W_2=(1-c)(\lambda-1)m_1+c\left(1-\frac{\lambda}{2}\right)m_1+c\frac{\lambda}{2}q \tag*{(4)} W 2 = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 + c 2 λ q (4)
Claim 10. The number of unused machines q q q is bounded by
q ≤ Q ( c ) : = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − c 2 ) λ . (5) q\le Q(c):=\frac{(1-c)(\lambda-1)m_1+c\left(1-\frac{\lambda}{2}\right)m_1}{\left(1-\frac{c}{2}\right)\lambda}. \tag*{(5)} q ≤ Q ( c ) := ( 1 − 2 c ) λ ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 . (5) Proof of Claim. Assume the contrary, then we obtain:
q > ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − c 2 ) λ q>\frac{(1-c)(\lambda-1)m_1+c\left(1-\frac{\lambda}{2}\right)m_1}{\left(1-\frac{c}{2}\right)\lambda} q > ( 1 − 2 c ) λ ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 ⇔ ( 1 − c 2 ) λ q > ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 \Leftrightarrow\ \left(1-\frac{c}{2}\right)\lambda q>(1-c)(\lambda-1)m_1+c\left(1-\frac{\lambda}{2}\right)m_1 ⇔ ( 1 − 2 c ) λ q > ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 ⇔ λ q > ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 + c λ 2 q \Leftrightarrow\ \lambda q>(1-c)(\lambda-1)m_1+c\left(1-\frac{\lambda}{2}\right)m_1+c\frac{\lambda}{2}q ⇔ λ q > ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 + c 2 λ q ⇔ λ q > W 2 . using x r e f ‘ ( 4 ) ‘ \Leftrightarrow\ \lambda q>W_2. \text{ using }{xref}`(4)` ⇔ λ q > W 2 . using x r e f ‘ ( 4 ) ‘ This is a direct contradiction to Lemma 1.3 3a. ■
Now, we define a critical number of machines m ′ : = 2 W 2 λ m':=\frac{2W_2}{\lambda} m ′ := λ 2 W 2 so that for any m ^ ≥ m ′ \hat{m}\ge m' m ^ ≥ m ′ :
λ 2 − W 2 m ^ ≥ 0. (6) \frac{\lambda}{2}-\frac{W_2}{\hat{m}}\ge0. \tag*{(6)} 2 λ − m ^ W 2 ≥ 0. (6)
Intuitively, this critical threshold is defined such that j ~ \tilde{j} j ~ has a processing time of at most λ 2 \frac{\lambda}{2} 2 λ when it is assigned to more than m ′ m' m ′ machines. Next, we note that the single job with a processing time of at most λ 2 \frac{\lambda}{2} 2 λ from Lemma 1.3 2b results in a few edge cases that we need to consider separately. Claim 11 provides the necessary conditions to handle these edge cases, which we will use in the following analysis.
Claim 11 (Edge Cases). Let λ ∈ [ 10 7 , 3 2 ] \lambda\in\left[\frac{10}{7},\frac{3}{2}\right] λ ∈ [ 7 10 , 2 3 ] then:
If q + 1 < ⌈ m ′ ⌉ − 1 q+1<\lceil m'\rceil-1 q + 1 < ⌈ m ′ ⌉ − 1 , then w.l.o.g. ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ λ 2 ( ⌈ m ′ ⌉ − q − 1 ) \sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i)\ge\frac{\lambda}{2}(\lceil m'\rceil-q-1) ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ 2 λ (⌈ m ′ ⌉ − q − 1 ) holds.
If q + 1 = ⌈ m ′ ⌉ − 1 q+1=\lceil m'\rceil-1 q + 1 = ⌈ m ′ ⌉ − 1 , then Algorithm 2 returns a schedule with makespan at most λ \lambda λ .
Proof of Claim. To improve readability, we defer the proof to Appendix § 7 . ■
For the analysis, we define a function f ( q ) f(q) f ( q ) , depending on the instance and q q q :
f ( q ) : = ( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) . (7) f(q) := (\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right). \tag*{(7)} f ( q ) := ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) . (7)
Note that for any specific, fixed instance, W 2 W_2 W 2 and m ′ m' m ′ are constants, allowing us to analyze f f f strictly as a function of the variable q q q . First, we will show that f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 implies that Algorithm 2 returns a schedule with makespan at most λ \lambda λ . Later, in Claim 14 , we will show that f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 holds for all instances with λ ∈ [ 10 7 , 3 2 ] \lambda\in\left[\frac{10}{7},\frac{3}{2}\right] λ ∈ [ 7 10 , 2 3 ] . To prepare the proof we list the following analytical properties:
Claim 12 (Analytical Properties). Let λ ∈ [ 2 e 2 e − 1 , 3 2 ] \lambda\in\left[\frac{2\sqrt{e}}{2\sqrt{e}-1},\frac{3}{2}\right] λ ∈ [ 2 e − 1 2 e , 2 3 ] , then:
∑ i = ⌈ m ′ ⌉ m 1 [ λ 2 − W 2 i ] > ∫ m ′ m 1 λ 2 − W 2 x d x \sum_{i=\lceil m'\rceil}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\int_{m'}^{m_1}\frac{\lambda}{2}-\frac{W_2}{x}\,dx ∑ i = ⌈ m ′ ⌉ m 1 [ 2 λ − i W 2 ] > ∫ m ′ m 1 2 λ − x W 2 d x .
f ( q ) = ( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) f(q)=(\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right) f ( q ) = ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) monotonically decreases in q q q .
Q ( c ) = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − λ 2 ) Q(c)=\frac{(1-c)(\lambda-1)m_1+c(1-\frac{\lambda}{2})m_1}{(1-\frac{\lambda}{2})} Q ( c ) = ( 1 − 2 λ ) ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 monotonically increases in c c c .
g ( Q ( c ) ) = ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln ( m 1 λ 2 λ Q ( c ) ) g(Q(c))=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\left(\frac{m_1\lambda}{2\lambda Q(c)}\right) g ( Q ( c )) = ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln ( 2 λ Q ( c ) m 1 λ ) monotonically increases in Q ( c ) Q(c) Q ( c ) .
Proof of Claim. To improve readability, we defer the proof to Appendix § 8 . ■
Claim 13. Let λ ∈ [ 10 7 , 3 2 ] \lambda\in\left[\frac{10}{7},\frac{3}{2}\right] λ ∈ [ 7 10 , 2 3 ] . If f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 , then Algorithm 2 returns a contiguous schedule with a makespan at most λ \lambda λ .
Proof of Claim. By Lemma 1.3 1a, we have for the work area of S 1 S_1 S 1 : W 1 ≤ m 1 − W 2 W_1\le m_1-W_2 W 1 ≤ m 1 − W 2 . By definition of f f f (see Equation (7) ), we have:
( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) ≥ 0 (\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right)\ge0 ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) ≥ 0 ⇔ ( λ − 1 ) m 1 − λ 2 2 λ W 2 − λ 2 q − W 2 ln ( m 1 m ′ ) ≥ − W 2 \Leftrightarrow\quad(\lambda-1)m_1-\frac{\lambda}{2}\frac{2}{\lambda}W_2-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right)\ge-W_2 ⇔ ( λ − 1 ) m 1 − 2 λ λ 2 W 2 − 2 λ q − W 2 ln ( m ′ m 1 ) ≥ − W 2 ⇔ λ 2 ( m 1 − q ) + λ 2 ( m 1 − 2 λ W 2 ) − W 2 ln ( m 1 m ′ ) ≥ m 1 − W 2 \Leftrightarrow\quad\frac{\lambda}{2}(m_1-q)+\frac{\lambda}{2}\left(m_1-\frac{2}{\lambda}W_2\right)-W_2\ln\left(\frac{m_1}{m'}\right)\ge m_1-W_2 ⇔ 2 λ ( m 1 − q ) + 2 λ ( m 1 − λ 2 W 2 ) − W 2 ln ( m ′ m 1 ) ≥ m 1 − W 2 ⇒ λ 2 ( m 1 − q ) + λ 2 ( m 1 − m ′ ) − W 2 ∫ m ′ m 1 1 x d x ≥ W 1 \Rightarrow\quad\frac{\lambda}{2}(m_1-q)+\frac{\lambda}{2}(m_1-m')-W_2\int_{m'}^{m_1}\frac{1}{x}\,dx\ge W_1 ⇒ 2 λ ( m 1 − q ) + 2 λ ( m 1 − m ′ ) − W 2 ∫ m ′ m 1 x 1 d x ≥ W 1 ⇔ λ 2 ( m 1 − q ) + ∫ m ′ m 1 ( λ 2 − W 2 x ) d x ≥ W 1 . (8) \Leftrightarrow\quad\frac{\lambda}{2}(m_1-q)+\int_{m'}^{m_1}\left(\frac{\lambda}{2}-\frac{W_2}{x}\right)\,dx\ge W_1. \tag*{(8)} ⇔ 2 λ ( m 1 − q ) + ∫ m ′ m 1 ( 2 λ − x W 2 ) d x ≥ W 1 . (8) With Claim 12.1, we get:
λ 2 ( m 1 − q ) + ∑ i = ⌈ m ′ ⌉ m 1 [ λ 2 − W 2 i ] > W 1 . (9) \frac{\lambda}{2}(m_1-q)+\sum_{i=\lceil m'\rceil}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>W_1. \tag*{(9)} 2 λ ( m 1 − q ) + i = ⌈ m ′ ⌉ ∑ m 1 [ 2 λ − i W 2 ] > W 1 . (9) Furthermore, since the jobs in S 1 S_1 S 1 are scheduled non-decreasingly (see Remark 6 ):
W 1 = ∑ i = 1 m 1 load ( i ) = ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) + ∑ i = ⌈ m ′ ⌉ m 1 load ( i ) . (10) W_1=\sum_{i=1}^{m_1}\operatorname{load}(i)=\sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i)+\sum_{i=\lceil m'\rceil}^{m_1}\operatorname{load}(i). \tag*{(10)} W 1 = i = 1 ∑ m 1 load ( i ) = i = q + 1 ∑ ⌈ m ′ ⌉ − 1 load ( i ) + i = ⌈ m ′ ⌉ ∑ m 1 load ( i ) . (10) Case 1 (q + 1 = ⌈ m ′ ⌉ − 1 q+1=\lceil m'\rceil-1 q + 1 = ⌈ m ′ ⌉ − 1 ): In this case we can directly apply Claim 11.2 to conclude that Algorithm 2 returns a schedule with makespan at most λ \lambda λ .
Case 2 (q + 1 < ∣ m ′ ∣ − 1 q+1<\lvert m'\rvert-1 q + 1 < ∣ m ′ ∣ − 1 ): In this case we can use Claim 11.1 and Equation (10) to bound
W 1 ≥ λ 2 ( ∣ m ′ ∣ − q − 1 ) + ∑ i = ∣ m ′ ∣ m 1 load ( i ) . (11) W_1 \ge\frac{\lambda}{2}(\lvert m'\rvert-q-1)+\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i). \tag*{(11)} W 1 ≥ 2 λ (∣ m ′ ∣ − q − 1 ) + i = ∣ m ′ ∣ ∑ m 1 load ( i ) . (11)
Combining Equations (9) and (11) yields:
λ 2 ( m 1 − q ) + ∑ i = ∣ m ′ ∣ m 1 [ λ 2 − W 2 i ] > λ 2 ( ∣ m ′ ∣ − q − 1 ) + ∑ i = ∣ m ′ ∣ m 1 load ( i ) \frac{\lambda}{2}(m_1-q)+\sum_{i=\lvert m'\rvert}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\frac{\lambda}{2}(\lvert m'\rvert-q-1)+\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) 2 λ ( m 1 − q ) + i = ∣ m ′ ∣ ∑ m 1 [ 2 λ − i W 2 ] > 2 λ (∣ m ′ ∣ − q − 1 ) + i = ∣ m ′ ∣ ∑ m 1 load ( i )
⟺ λ 2 ( m 1 − ∣ m ′ ∣ + 1 ) + ∑ i = ∣ m ′ ∣ m 1 [ λ 2 − W 2 i ] > ∑ i = ∣ m ′ ∣ m 1 load ( i ) \Longleftrightarrow\quad\frac{\lambda}{2}(m_1-\lvert m'\rvert+1)+\sum_{i=\lvert m'\rvert}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) ⟺ 2 λ ( m 1 − ∣ m ′ ∣ + 1 ) + i = ∣ m ′ ∣ ∑ m 1 [ 2 λ − i W 2 ] > i = ∣ m ′ ∣ ∑ m 1 load ( i )
⟺ ∑ i = ∣ m ′ ∣ m 1 [ λ − W 2 i ] > ∑ i = ∣ m ′ ∣ m 1 load ( i ) \Longleftrightarrow\quad\sum_{i=\lvert m'\rvert}^{m_1}\left[\lambda-\frac{W_2}{i}\right]>\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) ⟺ i = ∣ m ′ ∣ ∑ m 1 [ λ − i W 2 ] > i = ∣ m ′ ∣ ∑ m 1 load ( i )
This implies that there exists an i ′ ∈ [ ∣ m ′ ∣ , m 1 ] i'\in[\lvert m'\rvert,m_1] i ′ ∈ [∣ m ′ ∣ , m 1 ] such that:
λ − W 2 i ′ > load ( i ′ ) ⟺ λ > load ( i ′ ) + W 2 i ′ . \lambda-\frac{W_2}{i'}>\operatorname{load}(i')\Longleftrightarrow\lambda>\operatorname{load}(i')+\frac{W_2}{i'}. λ − i ′ W 2 > load ( i ′ ) ⟺ λ > load ( i ′ ) + i ′ W 2 .
Note that W 2 i ′ \frac{W_2}{i'} i ′ W 2 corresponds to the maximum processing time of the single job j ~ ∈ S 2 \tilde{j}\in S_2 j ~ ∈ S 2 , when compressing it from γ j ~ ( λ − 1 ) \gamma_{\tilde{j}}(\lambda-1) γ j ~ ( λ − 1 ) machines to i ′ i' i ′ machines. In other words, we can process the single job j ~ ∈ S 2 \tilde{j}\in S_2 j ~ ∈ S 2 on i ′ i' i ′ machines without increasing the makespan beyond λ \lambda λ , due to monotony assumptions. Note that machines { 1 , … , i ′ − 1 } \{1,\ldots,i'-1\} { 1 , … , i ′ − 1 } have a load of at most load ( i ′ ) \operatorname{load}(i') load ( i ′ ) , and therefore the job fits there as well.
Case 3 (q + 1 > ∣ m ′ ∣ − 1 q+1>\lvert m'\rvert-1 q + 1 > ∣ m ′ ∣ − 1 ): In this case ∑ i = q + 1 ∣ m ′ ∣ − 1 load ( i ) = 0 \sum_{i=q+1}^{\lvert m'\rvert-1}\operatorname{load}(i)=0 ∑ i = q + 1 ∣ m ′ ∣ − 1 load ( i ) = 0 holds. Thus, Equation (10) simplifies to:
W 1 = ∑ i = ∣ m ′ ∣ m 1 load ( i ) . (12) W_1=\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i). \tag*{(12)} W 1 = i = ∣ m ′ ∣ ∑ m 1 load ( i ) . (12)
Note that q q q and ∣ m ′ ∣ \lvert m'\rvert ∣ m ′ ∣ are integers. Therefore, q ≥ ∣ m ′ ∣ − 1 q\ge\lvert m'\rvert-1 q ≥ ∣ m ′ ∣ − 1 holds or equivalently − ∣ m ′ ∣ + 1 ≥ − q -\lvert m'\rvert+1\ge-q − ∣ m ′ ∣ + 1 ≥ − q . Combining this and Equations (9) and (12) yields:
λ 2 ( m 1 − q ) + ∑ i = ∣ m ′ ∣ m 1 [ λ 2 − W 2 i ] > ∑ i = ∣ m ′ ∣ m 1 load ( i ) \frac{\lambda}{2}(m_1-q)+\sum_{i=\lvert m'\rvert}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) 2 λ ( m 1 − q ) + i = ∣ m ′ ∣ ∑ m 1 [ 2 λ − i W 2 ] > i = ∣ m ′ ∣ ∑ m 1 load ( i )
⟹ λ 2 ( m 1 − ∣ m ′ ∣ + 1 ) + ∑ i = ∣ m ′ ∣ m 1 [ λ 2 − W 2 i ] > ∑ i = ∣ m ′ ∣ m 1 load ( i ) \Longrightarrow\quad\frac{\lambda}{2}(m_1-\lvert m'\rvert+1)+\sum_{i=\lvert m'\rvert}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) ⟹ 2 λ ( m 1 − ∣ m ′ ∣ + 1 ) + i = ∣ m ′ ∣ ∑ m 1 [ 2 λ − i W 2 ] > i = ∣ m ′ ∣ ∑ m 1 load ( i )
⟺ ∑ i = ∣ m ′ ∣ m 1 [ λ − W 2 i ] > ∑ i = ∣ m ′ ∣ m 1 load ( i ) \Longleftrightarrow\quad\sum_{i=\lvert m'\rvert}^{m_1}\left[\lambda-\frac{W_2}{i}\right]>\sum_{i=\lvert m'\rvert}^{m_1}\operatorname{load}(i) ⟺ i = ∣ m ′ ∣ ∑ m 1 [ λ − i W 2 ] > i = ∣ m ′ ∣ ∑ m 1 load ( i )
Analogously to Case 2, this implies that there exists an i ′ ∈ [ ∣ m ′ ∣ , m 1 ] i'\in[\lvert m'\rvert,m_1] i ′ ∈ [∣ m ′ ∣ , m 1 ] such that:
λ − W 2 i ′ > load ( i ′ ) ⟺ λ > load ( i ′ ) + W 2 i ′ . \lambda-\frac{W_2}{i'}>\operatorname{load}(i')\Longleftrightarrow\lambda>\operatorname{load}(i')+\frac{W_2}{i'}. λ − i ′ W 2 > load ( i ′ ) ⟺ λ > load ( i ′ ) + i ′ W 2 .
In other words, we can process the job j ~ \tilde{j} j ~ on i ′ i' i ′ machines without increasing the makespan beyond λ \lambda λ . This completes the proof of Claim 13 . ■
We have now shown that if f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 , then Algorithm 2 returns a schedule with makespan at most λ \lambda λ . It remains to show that f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 for all valid values of q q q .
Claim 14. Let λ ∈ [ 2 e 2 e − 1 , 3 2 ] \lambda\in\left[\frac{2\sqrt{e}}{2\sqrt{e}-1},\frac{3}{2}\right] λ ∈ [ 2 e − 1 2 e , 2 3 ] . Then, f ( q ) = ( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) ≥ 0 f(q)=(\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right)\ge0 f ( q ) = ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) ≥ 0 .
Proof of Claim. Note, that by Claim 12.2, we have that f ( q ) f(q) f ( q ) is monotonically decreasing in q q q . Further, by Claim 10 we know that q ≤ Q ( c ) = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − c 2 ) λ q\le Q(c)=\frac{(1-c)(\lambda-1)m_1+c(1-\frac{\lambda}{2})m_1}{(1-\frac{c}{2})\lambda} q ≤ Q ( c ) = ( 1 − 2 c ) λ ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 . Therefore, to prove f ( q ) ≥ 0 f(q)\ge0 f ( q ) ≥ 0 , it is sufficient to show that f ( Q ( c ) ) ≥ 0 f(Q(c))\ge0 f ( Q ( c )) ≥ 0 , and for the remainder of this proof, we may assume that q = Q ( c ) q=Q(c) q = Q ( c ) .
Let Z : = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 Z:=(1-c)(\lambda-1)m_1+c(1-\frac{\lambda}{2})m_1 Z := ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 . By Equation (4) , the work area equals:
W 2 = Z + c λ 2 Q ( c ) . W_2=Z+c\frac{\lambda}{2}Q(c). W 2 = Z + c 2 λ Q ( c ) .
By definition: Q ( c ) = Z ( 1 − c 2 ) λ ⟺ Z = λ Q ( c ) − c λ 2 Q ( c ) Q(c)=\frac{Z}{(1-\frac{c}{2})\lambda}\Longleftrightarrow Z=\lambda Q(c)-c\frac{\lambda}{2}Q(c) Q ( c ) = ( 1 − 2 c ) λ Z ⟺ Z = λ Q ( c ) − c 2 λ Q ( c ) . By substitution:
W 2 = ( λ Q ( c ) − c λ 2 Q ( c ) ) + c λ 2 Q ( c ) = λ Q ( c ) . (13) W_2=\left(\lambda Q(c)-c\frac{\lambda}{2}Q(c)\right)+c\frac{\lambda}{2}Q(c)=\lambda Q(c). \tag*{(13)} W 2 = ( λ Q ( c ) − c 2 λ Q ( c ) ) + c 2 λ Q ( c ) = λ Q ( c ) . (13)
Using Equation (13) and substituting m ′ = 2 W 2 λ m'=\frac{2W_2}{\lambda} m ′ = λ 2 W 2 , we can evaluate f ( Q ( c ) ) f(Q(c)) f ( Q ( c )) purely in terms of Q ( c ) Q(c) Q ( c ) :
f ( Q ( c ) ) = ( λ − 1 ) m 1 − λ 2 Q ( c ) − W 2 ln m 1 m ′ = ( λ − 1 ) m 1 − λ 2 Q ( c ) − W 2 ln m 1 λ 2 W 2 = ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln m 1 λ 2 λ Q ( c ) . (14) \begin{aligned}
f(Q(c))&=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-W_2\ln\frac{m_1}{m'}\\
&=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-W_2\ln\frac{m_1\lambda}{2W_2}\\
&=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\frac{m_1\lambda}{2\lambda Q(c)}. \tag*{(14)}
\end{aligned} f ( Q ( c )) = ( λ − 1 ) m 1 − 2 λ Q ( c ) − W 2 ln m ′ m 1 = ( λ − 1 ) m 1 − 2 λ Q ( c ) − W 2 ln 2 W 2 m 1 λ = ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln 2 λ Q ( c ) m 1 λ . (14)
By evaluating the function at this worst-case boundary, the previously constant instance parameters become functionally dependent on Q ( c ) Q(c) Q ( c ) . Let g ( Q ( c ) ) g(Q(c)) g ( Q ( c )) denote this evaluated expression:
g ( Q ( c ) ) : = ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln ( m 1 2 Q ( c ) ) . (15) g(Q(c)):=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\left(\frac{m_1}{2Q(c)}\right). \tag*{(15)} g ( Q ( c )) := ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln ( 2 Q ( c ) m 1 ) . (15)
By Claim 12.3, Q ( c ) Q(c) Q ( c ) increases monotonically in c c c . This implies Q ( c ) ≥ Q ( 0 ) = λ − 1 λ m 1 Q(c)\ge Q(0)=\frac{\lambda-1}{\lambda}m_1 Q ( c ) ≥ Q ( 0 ) = λ λ − 1 m 1 . Further, by Claim 12.4, g ( Q ( c ) ) g(Q(c)) g ( Q ( c )) increases monotonically in Q ( c ) Q(c) Q ( c ) . Thus:
g ( Q ( c ) ) ≥ g ( Q ( 0 ) ) . g(Q(c))\ge g(Q(0)). g ( Q ( c )) ≥ g ( Q ( 0 )) .
It remains to show that g ( Q ( 0 ) ) ≥ 0 g(Q(0))\ge0 g ( Q ( 0 )) ≥ 0 . By our initial assumption, we have 2 e 2 e − 1 ≤ λ \frac{2\sqrt{e}}{2\sqrt{e}-1}\le\lambda 2 e − 1 2 e ≤ λ . We can rearrange this to bound the constant e \sqrt{e} e :
2 e 2 e − 1 ≤ λ ⟺ 2 e ≤ λ ( 2 e − 1 ) ⟺ 2 e ≤ 2 λ e − λ ⟺ λ ≤ 2 e ( λ − 1 ) ⟺ λ 2 ( λ − 1 ) ≤ e \begin{aligned}
\frac{2\sqrt{e}}{2\sqrt{e}-1}&\le\lambda\\
\Longleftrightarrow\quad2\sqrt{e}&\le\lambda(2\sqrt{e}-1)\\
\Longleftrightarrow\quad2\sqrt{e}&\le2\lambda\sqrt{e}-\lambda\\
\Longleftrightarrow\quad\lambda&\le2\sqrt{e}(\lambda-1)\\
\Longleftrightarrow\quad\frac{\lambda}{2(\lambda-1)}&\le\sqrt{e}
\end{aligned} 2 e − 1 2 e ⟺ 2 e ⟺ 2 e ⟺ λ ⟺ 2 ( λ − 1 ) λ ≤ λ ≤ λ ( 2 e − 1 ) ≤ 2 λ e − λ ≤ 2 e ( λ − 1 ) ≤ e
Since λ ≥ 2 e 2 e − 1 > 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} > 1 λ ≥ 2 e − 1 2 e > 1 , both sides of the inequality are strictly positive. Thus, we can safely apply the natural logarithm:
ln ( λ 2 ( λ − 1 ) ) ≤ 1 2 \ln\left(\frac{\lambda}{2(\lambda-1)}\right) \le\frac{1}{2} ln ( 2 ( λ − 1 ) λ ) ≤ 2 1
0 ≤ 1 2 − ln ( λ 2 ( λ − 1 ) ) 0 \le\frac{1}{2} - \ln\left(\frac{\lambda}{2(\lambda-1)}\right) 0 ≤ 2 1 − ln ( 2 ( λ − 1 ) λ )
Next, we scale the inequality. Because m 1 ≥ 1 m_1 \ge1 m 1 ≥ 1 and λ > 1 \lambda> 1 λ > 1 , the term ( λ − 1 ) m 1 (\lambda-1)m_1 ( λ − 1 ) m 1 is strictly positive. Multiplying both sides by this term preserves the inequality:
0 ≤ ( λ − 1 ) m 1 ( 1 2 − ln ( λ 2 ( λ − 1 ) ) ) 0 \le(\lambda-1)m_1\left(\frac{1}{2}-\ln\left(\frac{\lambda}{2(\lambda-1)}\right)\right) 0 ≤ ( λ − 1 ) m 1 ( 2 1 − ln ( 2 ( λ − 1 ) λ ) )
0 ≤ 1 2 ( λ − 1 ) m 1 − ( λ − 1 ) m 1 ln ( λ 2 ( λ − 1 ) ) 0 \le\frac{1}{2}(\lambda-1)m_1-(\lambda-1)m_1\ln\left(\frac{\lambda}{2(\lambda-1)}\right) 0 ≤ 2 1 ( λ − 1 ) m 1 − ( λ − 1 ) m 1 ln ( 2 ( λ − 1 ) λ )
0 ≤ ( λ − 1 ) m 1 − 1 2 ( λ − 1 ) m 1 − ( λ − 1 ) m 1 ln ( λ 2 ( λ − 1 ) ) 0 \le(\lambda-1)m_1-\frac{1}{2}(\lambda-1)m_1-(\lambda-1)m_1\ln\left(\frac{\lambda}{2(\lambda-1)}\right) 0 ≤ ( λ − 1 ) m 1 − 2 1 ( λ − 1 ) m 1 − ( λ − 1 ) m 1 ln ( 2 ( λ − 1 ) λ )
Finally, we substitute Q ( 0 ) = λ − 1 λ m 1 Q(0)=\frac{\lambda-1}{\lambda}m_1 Q ( 0 ) = λ λ − 1 m 1 . Noting that λ Q ( 0 ) = ( λ − 1 ) m 1 \lambda Q(0)=(\lambda-1)m_1 λ Q ( 0 ) = ( λ − 1 ) m 1 , we can rewrite the coefficients and simplify the fraction inside the logarithm to reconstruct the function g ( Q ( 0 ) ) g(Q(0)) g ( Q ( 0 )) :
0 ≤ ( λ − 1 ) m 1 − λ 2 Q ( 0 ) − λ Q ( 0 ) ln ( m 1 2 Q ( 0 ) ) 0 \le(\lambda-1)m_1-\frac{\lambda}{2}Q(0)-\lambda Q(0)\ln\left(\frac{m_1}{2Q(0)}\right) 0 ≤ ( λ − 1 ) m 1 − 2 λ Q ( 0 ) − λ Q ( 0 ) ln ( 2 Q ( 0 ) m 1 )
0 ≤ g ( Q ( 0 ) ) . 0 \le g(Q(0)). 0 ≤ g ( Q ( 0 )) .
using (15)
This completes the proof of Claim 14. ■
The combination of Claim 13 and Claim 14 shows that Algorithm 2 returns a schedule with makespan at most λ \lambda λ for all valid values of c c c and q q q if ∣ S 2 ∣ = 1 \lvert S_2\rvert=1 ∣ S 2 ∣ = 1 . □
Lemmas 8 and 9 prove our main result. For a proof of the running time, we refer to [JO26], since we only provided a new analysis and did not alter the algorithm.
Theorem 2. Let ϵ > 0 \epsilon> 0 ϵ > 0 . For Contiguous Monotone Moldable Job Scheduling, there exists an algorithm with an approximation ratio of 2 e 2 e − 1 + ϵ \frac{2\sqrt{e}}{2\sqrt{e}-1}+\epsilon 2 e − 1 2 e + ϵ and runtime of O ( n m log 1 ϵ ) O(nm\log\frac{1}{\epsilon}) O ( nm log ϵ 1 ) .
The preceding analysis shows that for some given area of j ~ \tilde{j} j ~ there is a function (seen in Figure 2 ), so that each job in the schedule must have a higher processing time at the corresponding position. We show that the analysis is tight in Appendix B by constructing an instance which is a lower sum to this function and approaches it arbitrary close.
Figure 2. The small jobs are shown in orange and the large job is depicted in blue.
Extension to CPU/GPU Scheduling
The problem of CPU/GPU Scheduling generalizes the previously discussed CPU scheduling by introducing a second set of m g m_g m g identical GPU machines. Each job can be scheduled either as a moldable job on the CPU or sequentially on a single GPU machine.
To extend our improved ratio of λ = 2 e 2 e − 1 \lambda=\frac{2\sqrt{e}}{2\sqrt{e}-1} λ = 2 e − 1 2 e to the CPU/GPU Scheduling problem, we adopt the dual approximation framework and the MMCKP partitioning formulation introduced by Germann et al. [6 ] . We denote a makespan guess as d ∈ Q > 0 d\in\mathbb{Q}_{>0} d ∈ Q > 0 . To bound the schedule on the GPU,
Germann et al. [6 ] introduced a size function φ ( j ) \varphi(j) φ ( j ) that classifies GPU jobs based on their processing time p ( j ) p(j) p ( j ) :
φ ( j ) : = { max { k ∈ { 0 , 1 , 2 } : k d 3 ≤ p ( j ) } if p ( j ) ≤ d , + ∞ otherwise. (16) \varphi(j) :=
\begin{cases}
\max\{k \in\{0,1,2\} : \frac{kd}{3} \le p(j)\} & \text{if } p(j) \le d,\\
+\infty& \text{otherwise.}
\end{cases} \tag*{(16)} φ ( j ) := { max { k ∈ { 0 , 1 , 2 } : 3 k d ≤ p ( j )} + ∞ if p ( j ) ≤ d , otherwise. (16)
By limiting the total size of jobs assigned to the GPU partition ( T g ) (T_g) ( T g ) , we can guarantee that at most two jobs with a processing time greater than d 3 \frac{d}{3} 3 d are scheduled on any single GPU machine. We restate the following core lemma which defines the relaxation variable δ \delta δ required to match the GPU makespan to our CPU makespan.
Lemma 15 ([6 ] ). Let d ∈ Q > 0 d \in\mathbb{Q}_{>0} d ∈ Q > 0 be a makespan guess, δ ∈ Q > 0 \delta\in\mathbb{Q}_{>0} δ ∈ Q > 0 , and T g ⊆ [ n ] T_g \subseteq[n] T g ⊆ [ n ] be the jobs assigned to the GPU. If ∑ j ∈ T g φ ( j ) ≤ 2 m g \sum_{j \in T_g} \varphi(j) \le2m_g ∑ j ∈ T g φ ( j ) ≤ 2 m g and the total work on the GPU satisfies ∑ j ∈ T g p ( j ) ≤ m g ( 1 + δ ) d \sum_{j \in T_g} p(j) \le m_g(1+\delta)d ∑ j ∈ T g p ( j ) ≤ m g ( 1 + δ ) d , we can construct a GPU schedule of length at most ( 4 3 + δ ) d (\frac{4}{3}+\delta)d ( 3 4 + δ ) d in time O ( n log n ) O(n \log n) O ( n log n ) using Longest-Processing-Time-First (LPT) scheduling.
To apply this to our new result, we need the GPU schedule to match our CPU ratio of λ \lambda λ . Therefore, we set our relaxation constant δ \delta δ such that the GPU makespan equals our CPU makespan:
4 3 + δ = λ ⟹ δ = 2 e 2 e − 1 − 4 3 ≈ 0.1018 (17) \frac{4}{3}+\delta=\lambda\Longrightarrow\delta=\frac{2\sqrt{e}}{2\sqrt{e}-1}-\frac{4}{3}\approx0.1018 \tag*{(17)} 3 4 + δ = λ ⟹ δ = 2 e − 1 2 e − 3 4 ≈ 0.1018 (17)
With δ \delta δ defined, we can find a valid partition of jobs across the CPU shelves ( S 0 , S 1 , S 2 ) (S_0,S_1,S_2) ( S 0 , S 1 , S 2 ) and the GPU ( T g ) (T_g) ( T g ) by solving the MMCKP. To ensure the dynamic program runs in polynomial time, the GPU processing times are scaled and rounded as p ~ ( j ) : = ⌊ μ p ( j ) ⌋ \widetilde{p}(j):=\lfloor\mu p(j)\rfloor p ( j ) := ⌊ μ p ( j )⌋ with a scaling factor μ : = n δ d m g \mu:=\frac{n}{\delta d m_g} μ := δ d m g n .
Lemma 16 (Knapsack Formulation). Finding a partition that satisfies the CPU constraints established in Lemma 5 alongside the GPU constraints ∑ j ∈ T g φ ( j ) ≤ 2 m g \sum_{j \in T_g}\varphi(j) \le2m_g ∑ j ∈ T g φ ( j ) ≤ 2 m g and ∑ j ∈ T g p ~ ( j ) ≤ n δ \sum_{j \in T_g}\widetilde{p}(j) \le\frac{n}{\delta} ∑ j ∈ T g p ( j ) ≤ δ n can be solved via dynamic programming in time O ( n 2 m c m g ) O(n^2m_cm_g) O ( n 2 m c m g ) .
Proof. The statement follows from a standard dynamic programming formulation for the MMCKP problem [18 ] . The details of the dynamic programming approach are analogous to those used in [6 ] .
Theorem 4. Let ε > 0 \varepsilon> 0 ε > 0 . There exists a ( 2 e 2 e − 1 + ε ) (\frac{2\sqrt{e}}{2\sqrt{e}-1}+\varepsilon) ( 2 e − 1 2 e + ε ) -approximation algorithm for CPU/GPU Scheduling that runs in time O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) O(\log(nm_cm_g/\varepsilon)\cdot n^2m_cm_g) O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) .
Proof. Using the framework from Lemma 16 , we can compute a valid job partition across the CPU and GPU in O ( n 2 m c m g ) O(n^2m_cm_g) O ( n 2 m c m g ) time. For the CPU partition, our algorithm from § 4 guarantees a schedule of length at most λ d = 2 e 2 e − 1 d \lambda d=\frac{2\sqrt{e}}{2\sqrt{e}-1}d λ d = 2 e − 1 2 e d . For the GPU partition, the knapsack constraints ensure that ∑ j ∈ T g φ ( j ) ≤ 2 m g \sum_{j \in T_g}\varphi(j) \le2m_g ∑ j ∈ T g φ ( j ) ≤ 2 m g and the total relaxed workload is bounded by m g ( 1 + δ ) d m_g(1+\delta)d m g ( 1 + δ ) d . By Lemma 15 , the LPT algorithm will construct a valid GPU schedule of length at most ( 4 3 + δ ) d = λ d (\frac{4}{3}+\delta)d=\lambda d ( 3 4 + δ ) d = λ d in time O ( n log n ) O(n\log n) O ( n log n ) .
Using the primal approximation framework, we can use a binary search procedure with O ( log ( n m c m g / ε ) ) O(\log(nm_cm_g/\varepsilon)) O ( log ( n m c m g / ε )) iterations. Since the running time is strictly dominated by solving the MMCKP in each iteration, the total time complexity is bounded by O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) O(\log(nm_cm_g/\varepsilon)\cdot n^2m_cm_g) O ( log ( n m c m g / ε ) ⋅ n 2 m c m g ) .
:::
Conclusion
In this paper, we provide an improved analysis for the Contiguous Monotone Moldable Job Scheduling (CMMJS) problem. With a careful geometric argument, we successfully reduced the approximation ratio from approximately 1.459 + ε 1.459+\varepsilon 1.459 + ε [JO26] to 2 e 2 e − 1 + ε ≈ 1.435 + ε \frac{2\sqrt{e}}{2\sqrt{e}-1}+\varepsilon\approx1.435+\varepsilon 2 e − 1 2 e + ε ≈ 1.435 + ε . Furthermore, we established that our worst-case analysis is essentially tight for this algorithmic approach by providing a matching lower bound instance. We also demonstrated the versatility of this algorithm by seamlessly extending it to the heterogeneous CPU/GPU Scheduling problem, achieving an identical approximation guarantee.
Despite these improvements, several natural open questions remain. A primary theoretical focus for future research is determining the true lower bound for practically efficient algorithms in this setting. Since the structural properties of our partition (Lemma 7 ) hold for any λ ∈ [ 10 7 , 3 2 ] \lambda\in[\frac{10}{7}, \frac{3}{2}] λ ∈ [ 7 10 , 2 3 ] , it remains an intriguing open question whether Algorithm 2 can be augmented—or a novel assignment strategy developed—to push the approximation ratio down to the 10 7 ≈ 1.428 \frac{10}{7} \approx1.428 7 10 ≈ 1.428 barrier.
Finally, another important direction is to further improve the running time. While our algorithm is practically efficient with a time complexity of O ( n m log 1 ε ) O(nm \log\frac{1}{\varepsilon}) O ( nm log ε 1 ) , reducing the dependency on the number of machines m m m , similar to [5 , 12 ] , would make the algorithm effectively linear in n n n , while our running time is currently quadratic in n n n (if m ≈ n m \approx n m ≈ n ).
There is at most one job in S 2 S_2 S 2
In this section, we will prove the following lemma.
Lemma 8. Let λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e . If ∣ S 2 ∣ > 1 |S_2| > 1 ∣ S 2 ∣ > 1 , then we can create a contiguous schedule with makespan at most λ \lambda λ .
To prove this lemma, we make a case distinction on the value of q q q . If q q q is large, we can directly show that there can be at most one job in S 2 S_2 S 2 by using the area constraints. If q q q is small, we can show that a feasible schedule can be found by Algorithm 3. As stated before, this procedure is identical to the one used in [JO26].
Observation 17. Let λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e . If q > 1 3 ( 1 − 1 e ) m 1 q > \frac{1}{3}\left(1-\frac{1}{\sqrt{e}}\right)m_1 q > 3 1 ( 1 − e 1 ) m 1 , then ∣ S 2 ∣ ≤ 1 |S_2| \le1 ∣ S 2 ∣ ≤ 1 .
Proof. Assume the opposite, i.e., ∣ S 2 ∣ > 1 |S_2| > 1 ∣ S 2 ∣ > 1 . By Lemma 1.3 1a, 2c and 3a, we have:
m 1 ≥ ∑ j ∈ S 1 w j ( γ j ( 1 ) ) + W 2 > λ 2 ( m 1 − q ) + 2 λ ( ∣ S 2 ∣ > 1 , Lemma 1.3 2c and 3a ) = λ 2 m 1 + 3 2 λ q = λ 2 m 1 + 3 2 λ ( 1 3 ( 1 − 1 e ) m 1 ) = λ 2 m 1 + λ 2 ( 1 − 1 e ) m 1 = λ 2 m 1 ( 2 − 1 e ) = λ m 1 ( 2 e − 1 2 e ) . \begin{aligned}
m_1 &\ge\sum_{j\in S_1} w_j(\gamma_j(1)) + W_2 \\
&> \frac{\lambda}{2}(m_1-q)+2\lambda\qquad(|S_2|>1,\ \text{Lemma 1.3 2c and 3a})\\
&= \frac{\lambda}{2}m_1+\frac{3}{2}\lambda q\\
&= \frac{\lambda}{2}m_1+\frac{3}{2}\lambda\left(\frac{1}{3}\left(1-\frac{1}{\sqrt{e}}\right)m_1\right)\\
&= \frac{\lambda}{2}m_1+\frac{\lambda}{2}\left(1-\frac{1}{\sqrt{e}}\right)m_1\\
&= \frac{\lambda}{2}m_1\left(2-\frac{1}{\sqrt{e}}\right)\\
&= \lambda m_1\left(\frac{2\sqrt{e}-1}{2\sqrt{e}}\right).
\end{aligned} m 1 ≥ j ∈ S 1 ∑ w j ( γ j ( 1 )) + W 2 > 2 λ ( m 1 − q ) + 2 λ ( ∣ S 2 ∣ > 1 , Lemma 1.3 2c and 3a ) = 2 λ m 1 + 2 3 λ q = 2 λ m 1 + 2 3 λ ( 3 1 ( 1 − e 1 ) m 1 ) = 2 λ m 1 + 2 λ ( 1 − e 1 ) m 1 = 2 λ m 1 ( 2 − e 1 ) = λ m 1 ( 2 e 2 e − 1 ) .
Comparing the first and last terms and dividing by m 1 m_1 m 1 , we get:
1 > λ ( 2 e − 1 2 e ) ⟹ λ < 2 e 2 e − 1 . 1>\lambda\left(\frac{2\sqrt{e}-1}{2\sqrt{e}}\right)\Longrightarrow\lambda<\frac{2\sqrt{e}}{2\sqrt{e}-1}. 1 > λ ( 2 e 2 e − 1 ) ⟹ λ < 2 e − 1 2 e .
This is a contradiction.
We now show that if q q q is small, we can find a feasible schedule with Algorithm 3.
Algorithm 3 RepairS2
while m 2 > m 1 m_2 > m_1 m 2 > m 1 do
Let j j j be the job with the smallest processing time among jobs in S 2 S_2 S 2 .
Let p p p be the number of machines j j j is allotted to.
Allot j j j to p − 1 p - 1 p − 1 machines.
end while
Sort jobs in S 1 S_1 S 1 in descending order of execution time.
Sort jobs in S 2 S_2 S 2 in ascending order of execution time.
Observation 18. Let λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e . If q ≤ 1 3 ( 1 − 1 e ) m 1 q \le\frac{1}{3}\left(1-\frac{1}{\sqrt{e}}\right)m_1 q ≤ 3 1 ( 1 − e 1 ) m 1 , then we can find a feasible schedule with Algorithm 3.
Proof. We prove this statement by analyzing Algorithm 3. Denote in the following the total work area of jobs in S 1 S_1 S 1 as W 1 : = ∑ j ∈ S 1 w j ( α j ) W_1 := \sum_{j\in S_1} w_j(\alpha_j) W 1 := ∑ j ∈ S 1 w j ( α j ) and the total work area of jobs in S 2 S_2 S 2 as W 2 : = ∑ j ∈ S 2 w j ( α j ) W_2 := \sum_{j\in S_2} w_j(\alpha_j) W 2 := ∑ j ∈ S 2 w j ( α j ) .
Claim 19. W 1 > 1 + 2 e 6 e − 3 m 1 W_1 > \frac{1+2\sqrt{e}}{6\sqrt{e}-3}m_1 W 1 > 6 e − 3 1 + 2 e m 1 and W 2 < 4 e − 4 6 e − 3 m 1 W_2 < \frac{4\sqrt{e}-4}{6\sqrt{e}-3}m_1 W 2 < 6 e − 3 4 e − 4 m 1 .
Proof of Claim. By Lemma 1.3 2c we have:
W 1 > λ 2 ( m 1 − q ) ≥ 1 2 2 e 2 e − 1 ( m 1 − 1 3 ( 1 − 1 e ) m 1 ) = 1 + 2 e 6 e − 3 m 1 . W_1 > \frac{\lambda}{2}(m_1-q) \ge\frac{1}{2}\frac{2\sqrt{e}}{2\sqrt{e}-1}\left(m_1-\frac{1}{3}\left(1-\frac{1}{\sqrt{e}}\right)m_1\right)=\frac{1+2\sqrt{e}}{6\sqrt{e}-3}m_1. W 1 > 2 λ ( m 1 − q ) ≥ 2 1 2 e − 1 2 e ( m 1 − 3 1 ( 1 − e 1 ) m 1 ) = 6 e − 3 1 + 2 e m 1 .
And W 1 + W 2 ≤ m 1 W_1+W_2\le m_1 W 1 + W 2 ≤ m 1 implies W 2 ≤ m 1 − W 1 < m 1 − 1 + 2 e 6 e − 3 m 1 = 4 e − 4 6 e − 3 m 1 W_2\le m_1-W_1<m_1-\frac{1+2\sqrt{e}}{6\sqrt{e}-3}m_1=\frac{4\sqrt{e}-4}{6\sqrt{e}-3}m_1 W 2 ≤ m 1 − W 1 < m 1 − 6 e − 3 1 + 2 e m 1 = 6 e − 3 4 e − 4 m 1 .
Claim 20. After Algorithm 3 every job in S 2 S_2 S 2 is executed on at least 3 machines.
Proof of Claim. Before the application of Algorithm 3, every job j ∈ S 2 j\in S_2 j ∈ S 2 is executed on γ j ( λ − 1 ) \gamma_j(\lambda-1) γ j ( λ − 1 ) machines. By the definition of γ j \gamma_j γ j , the processing time of each job is at most λ − 1 = 1 2 e − 1 \lambda-1=\frac{1}{2\sqrt{e}-1} λ − 1 = 2 e − 1 1 . Furthermore, by Lemma 1.3 3a, every job in S 2 S_2 S 2 has a work area of at least λ q ≥ 2 e 2 e − 1 \lambda q\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ q ≥ 2 e − 1 2 e . These two properties imply that every job in S 2 S_2 S 2 is initially assigned to at least λ q λ − 1 ≥ 2 e > 3 \frac{\lambda q}{\lambda-1}\ge2\sqrt{e}>3 λ − 1 λ q ≥ 2 e > 3 machines.
Assume for the sake of contradiction that at some point during Algorithm 3, a job j j j is compressed from 3 machines down to 2 machines. Because Algorithm 3 always selects the job with the smallest processing time to compress, this implies that at this exact step, every remaining job in S 2 S_2 S 2 has a current processing time of at least t j ( 3 ) t_j(3) t j ( 3 ) .
We can establish a strict lower bound for t j ( 3 ) t_j(3) t j ( 3 ) by using the gap q q q and the monotony properties of the jobs. Recall that no job in S 2 S_2 S 2 could be scheduled in the gap of q q q machines with a processing time of at most λ \lambda λ since the work must be at above λ q \lambda q λ q and the machine allotment above q q q to be placed in S 2 S_2 S 2 . Thus, it must hold that t j ( q ) > λ t_j(q)>\lambda t j ( q ) > λ by monotony. We distinguish two cases based on the size of q q q :
Case 1 (q ≥ 3 q\ge3 q ≥ 3 ): We apply the monotony property that the processing time function t j t_j t j is non-increasing. This directly yields t j ( 3 ) ≥ t j ( q ) > λ > λ 3 t_j(3)\ge t_j(q)>\lambda>\frac{\lambda}{3} t j ( 3 ) ≥ t j ( q ) > λ > 3 λ .
Case 2 (q < 3 q<3 q < 3 ): Since q q q is an integer, q ∈ { 1 , 2 } q\in\{1,2\} q ∈ { 1 , 2 } . We apply the monotony property that the work area function w j w_j w j is non-decreasing. This gives w j ( 3 ) ≥ w j ( q ) = q ⋅ t j ( q ) > q λ ≥ λ w_j(3)\ge w_j(q)=q\cdot t_j(q)>q\lambda\ge\lambda w j ( 3 ) ≥ w j ( q ) = q ⋅ t j ( q ) > q λ ≥ λ . Consequently, the processing time on 3 machines is t j ( 3 ) = w j ( 3 ) 3 > λ 3 t_j(3)=\frac{w_j(3)}{3}>\frac{\lambda}{3} t j ( 3 ) = 3 w j ( 3 ) > 3 λ .
In both cases, we have that t j ( 3 ) > λ 3 t_j(3)>\frac{\lambda}{3} t j ( 3 ) > 3 λ . Therefore, at the moment of this compression, every job in S 2 S_2 S 2 has a processing time strictly greater than λ 3 \frac{\lambda}{3} 3 λ .
Let m 2 m_2 m 2 be the total number of machines currently assigned to jobs in S 2 S_2 S 2 . Since the WHILE-loop in Algorithm 3 is still running, we know that m 2 > m 1 m_2>m_1 m 2 > m 1 . The current total work area of S 2 S_2 S 2 is strictly greater than λ 3 m 2 > λ 3 m 1 \frac{\lambda}{3}m_2>\frac{\lambda}{3}m_1 3 λ m 2 > 3 λ m 1 . Because the work area of a job is non-decreasing with respect to the number of machines, compressing jobs to fewer machines never increases their total work area. Hence, the initial total work area W 2 W_2 W 2 must be at least the current total work area, meaning W 2 > λ 3 m 1 W_2 > \frac{\lambda}{3}m_1 W 2 > 3 λ m 1 . Since λ ≥ 2 e 2 e − 1 \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e , we have:
W 2 > 2 e 3 ( 2 e − 1 ) m 1 = 2 e 6 e − 3 m 1 . W_2 > \frac{2\sqrt{e}}{3(2\sqrt{e}-1)}m_1 = \frac{2\sqrt{e}}{6\sqrt{e}-3}m_1. W 2 > 3 ( 2 e − 1 ) 2 e m 1 = 6 e − 3 2 e m 1 .
Because e < 4 e < 4 e < 4 , it follows that e < 2 \sqrt{e} < 2 e < 2 , which implies 2 e > 4 e − 4 2\sqrt{e} > 4\sqrt{e}-4 2 e > 4 e − 4 . Thus, we obtain:
W 2 > 4 e − 4 6 e − 3 m 1 . W_2 > \frac{4\sqrt{e}-4}{6\sqrt{e}-3}m_1. W 2 > 6 e − 3 4 e − 4 m 1 .
This strictly contradicts Claim 19 , which bounded the area as W 2 < 4 e − 4 6 e − 3 m 1 W_2 < \frac{4\sqrt{e}-4}{6\sqrt{e}-3}m_1 W 2 < 6 e − 3 4 e − 4 m 1 . We conclude that the algorithm never compresses a job to 2 machines.
Claim 21. Before Algorithm 3 every job in S 2 S_2 S 2 has a processing time greater than 4 10 e − 5 \frac{4}{10\sqrt{e}-5} 10 e − 5 4 .
Proof of Claim. We make a case distinction on the number of machines γ j ( λ − 1 ) \gamma_j(\lambda-1) γ j ( λ − 1 ) that job j j j is executed on before Algorithm 3:
Case 1 (γ j ( λ − 1 ) ≤ 4 \gamma_j(\lambda-1) \le4 γ j ( λ − 1 ) ≤ 4 ): Every job j j j has an area of at least λ \lambda λ by Lemma 1.3 3a. This implies that the processing time is at least λ 4 > 4 10 e − 5 \frac{\lambda}{4} > \frac{4}{10\sqrt{e}-5} 4 λ > 10 e − 5 4 .
Case 2 (γ j ( λ − 1 ) > 4 \gamma_j(\lambda-1) > 4 γ j ( λ − 1 ) > 4 ): In this case we get:
h j ( γ j ( λ − 1 ) ) > ( λ − 1 ) γ j ( λ − 1 ) − 1 γ j ( λ − 1 ) ≥ ( λ − 1 ) 4 5 = 4 10 e − 5 . h_j(\gamma_j(\lambda-1)) > (\lambda-1)\frac{\gamma_j(\lambda-1)-1}{\gamma_j(\lambda-1)} \ge(\lambda-1)\frac{4}{5} = \frac{4}{10\sqrt{e}-5}. h j ( γ j ( λ − 1 )) > ( λ − 1 ) γ j ( λ − 1 ) γ j ( λ − 1 ) − 1 ≥ ( λ − 1 ) 5 4 = 10 e − 5 4 .
The first inequality holds by the definition of γ j \gamma_j γ j , i.e., γ j ( x ) = min { α ∈ [ m ] ∣ h j ( α ) ≤ x } \gamma_j(x) = \min\{\alpha\in[m] \mid h_j(\alpha) \le x\} γ j ( x ) = min { α ∈ [ m ] ∣ h j ( α ) ≤ x } .
Claim 22. After Algorithm 3, every job in S 2 S_2 S 2 has a processing time of at most 4 3 4 e − 4 6 e − 3 \frac{4}{3}\frac{4\sqrt{e}-4}{6\sqrt{e}-3} 3 4 6 e − 3 4 e − 4 .
Proof of Claim. Assume for the sake of contradiction that there exists at least one job in S 2 S_2 S 2 with a processing time strictly greater than 4 3 4 e − 4 6 e − 3 \frac{4}{3}\frac{4\sqrt{e}-4}{6\sqrt{e}-3} 3 4 6 e − 3 4 e − 4 .
Recall that Algorithm 3 iteratively compresses the job with the smallest current processing time. Because the algorithm consistently selects the job with the minimum processing time to compress, if the current minimum processing time exceeds this threshold, then all jobs currently in S 2 S_2 S 2 must possess a processing time of at least 4 3 4 e − 4 6 e − 3 \frac{4}{3}\frac{4\sqrt{e}-4}{6\sqrt{e}-3} 3 4 6 e − 3 4 e − 4 .
This implies that the total work area W 2 W_2 W 2 satisfies:
W 2 ≥ ( 4 e − 4 6 e − 3 ) ⋅ m 1 . W_2 \ge\left(\frac{4\sqrt{e}-4}{6\sqrt{e}-3}\right)\cdot m_1. W 2 ≥ ( 6 e − 3 4 e − 4 ) ⋅ m 1 .
This strictly contradicts the upper bound on W 2 W_2 W 2 established in Claim 19 .
We have now shown all the necessary properties to prove Lemma 9 . Assume, for the sake of contradiction, that Algorithm 3 returns an invalid schedule. Let i i i be the machine with a total load of load ( i ) > λ ≥ 2 e 2 e − 1 \operatorname{load}(i) > \lambda\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} load ( i ) > λ ≥ 2 e − 1 2 e . By construction, this machine executes exactly two jobs, one from S 1 S_1 S 1 and one from S 2 S_2 S 2 . We denote the processing time of the job from S 2 S_2 S 2 on that machine by t t t . Since this job must have been compressed at least once, we have t ∈ ( λ − 1 , 4 3 4 e − 4 6 e − 3 ) t \in\left(\lambda-1,\frac{4}{3}\frac{4\sqrt{e}-4}{6\sqrt{e}-3}\right) t ∈ ( λ − 1 , 3 4 6 e − 3 4 e − 4 ) . Consider now any machine i ′ ∈ { i + 1 , … , m 1 } i' \in\{i+1,\ldots,m_1\} i ′ ∈ { i + 1 , … , m 1 } . Since the jobs in S 1 S_1 S 1 are ordered in non-decreasing processing time, the job from S 1 S_1 S 1 on machine i ′ i' i ′ has a processing time of at least λ − t \lambda-t λ − t . By Claim 20, we know that the job from S 2 S_2 S 2 has a processing time of at least 4 10 e − 5 \frac{4}{10\sqrt{e}-5} 10 e − 5 4 . Therefore:
load ( i ′ ) ≥ λ − t + 4 10 e − 5 > e + 1 2 e − 1 ∀ i ′ ∈ { i + 1 , … , m 1 } (18) \operatorname{load}(i') \ge\lambda-t+\frac{4}{10\sqrt{e}-5}>\frac{\sqrt{e}+1}{2\sqrt{e}-1}\qquad\forall i'\in\{i+1,\ldots,m_1\} \tag*{(18)} load ( i ′ ) ≥ λ − t + 10 e − 5 4 > 2 e − 1 e + 1 ∀ i ′ ∈ { i + 1 , … , m 1 } (18)
We make a similar argument for the machines to the left of i i i . Consider any machine i ′ ∈ { q + 2 , … , i − 1 } i' \in\{q+2,\ldots,i-1\} i ′ ∈ { q + 2 , … , i − 1 } . Since the jobs in S 2 S_2 S 2 are ordered in non-increasing processing time, the job from S 2 S_2 S 2 on machine i ′ i' i ′ has a processing time of at least t ≥ λ − 1 t \ge\lambda-1 t ≥ λ − 1 . Each job in S 1 S_1 S 1 (with the exception of the job on machine q + 1 q+1 q + 1 ) has a processing time of at least λ 2 \frac{\lambda}{2} 2 λ by Lemma 1.3 2b. Therefore:
load ( i ′ ) ≥ λ 2 + t ≥ λ 2 + ( λ − 1 ) = 3 λ 2 − 1 ≥ e + 1 2 e − 1 ∀ i ′ ∈ { q + 2 , … , i − 1 } (19) \operatorname{load}(i')\ge\frac{\lambda}{2}+t\ge\frac{\lambda}{2}+(\lambda-1)=\frac{3\lambda}{2}-1\ge\frac{\sqrt{e}+1}{2\sqrt{e}-1}\qquad\forall i'\in\{q+2,\ldots,i-1\} \tag*{(19)} load ( i ′ ) ≥ 2 λ + t ≥ 2 λ + ( λ − 1 ) = 2 3 λ − 1 ≥ 2 e − 1 e + 1 ∀ i ′ ∈ { q + 2 , … , i − 1 } (19)
We now consider the leftout machines q + 1 q+1 q + 1 and i i i . Since the load on machine i i i is at least λ \lambda λ , the combined load on these two machines is at least:
λ + ( λ − 1 ) ≥ 2 2 e 2 e − 1 − 1 = 2 2 e 2 e − 1 − 2 e − 1 2 e − 1 = 2 e + 1 2 e − 1 = 2 e + 2 2 e − 1 − 1 2 e − 1 = 2 e + 1 2 e − 1 − 1 2 e − 1 . \begin{aligned}
\lambda+(\lambda-1)&\ge2\frac{2\sqrt{e}}{2\sqrt{e}-1}-1\\
&=2\frac{2\sqrt{e}}{2\sqrt{e}-1}-\frac{2\sqrt{e}-1}{2\sqrt{e}-1}\\
&=\frac{2\sqrt{e}+1}{2\sqrt{e}-1}\\
&=\frac{2\sqrt{e}+2}{2\sqrt{e}-1}-\frac{1}{2\sqrt{e}-1}\\
&=2\frac{\sqrt{e}+1}{2\sqrt{e}-1}-\frac{1}{2\sqrt{e}-1}.
\end{aligned} λ + ( λ − 1 ) ≥ 2 2 e − 1 2 e − 1 = 2 2 e − 1 2 e − 2 e − 1 2 e − 1 = 2 e − 1 2 e + 1 = 2 e − 1 2 e + 2 − 2 e − 1 1 = 2 2 e − 1 e + 1 − 2 e − 1 1 .
Combining this with Equations (18) and (19) , we have that the total area of all machines from q + 1 q+1 q + 1 to m 1 m_1 m 1 is at least e + 1 2 e − 1 ( m 1 − q ) − 1 2 e − 1 \frac{\sqrt{e}+1}{2\sqrt{e}-1}(m_1-q)-\frac{1}{2\sqrt{e}-1} 2 e − 1 e + 1 ( m 1 − q ) − 2 e − 1 1 . Using that the load on the remaining q q q machines is at least λ − 1 = 1 2 e − 1 \lambda-1=\frac{1}{2\sqrt{e}-1} λ − 1 = 2 e − 1 1 , we get a total area of at least:
e + 1 2 e − 1 ( m 1 − q ) − 1 2 e − 1 + 1 2 e − 1 q . \frac{\sqrt{e}+1}{2\sqrt{e}-1}(m_1-q)-\frac{1}{2\sqrt{e}-1}+\frac{1}{2\sqrt{e}-1}q. 2 e − 1 e + 1 ( m 1 − q ) − 2 e − 1 1 + 2 e − 1 1 q .
Since the total area of all jobs is at most m 1 m_1 m 1 by Lemma 1.3 1a, we have:
e + 1 2 e − 1 ( m 1 − q ) − 1 2 e − 1 + 1 2 e − 1 q < m 1 \frac{\sqrt{e}+1}{2\sqrt{e}-1}(m_1-q)-\frac{1}{2\sqrt{e}-1}+\frac{1}{2\sqrt{e}-1}q<m_1 2 e − 1 e + 1 ( m 1 − q ) − 2 e − 1 1 + 2 e − 1 1 q < m 1
⟹ e + 1 2 e − 1 m 1 − e 2 e − 1 q − 1 2 e − 1 < m 1 \Longrightarrow\frac{\sqrt{e}+1}{2\sqrt{e}-1}m_1-\frac{\sqrt{e}}{2\sqrt{e}-1}q-\frac{1}{2\sqrt{e}-1}<m_1 ⟹ 2 e − 1 e + 1 m 1 − 2 e − 1 e q − 2 e − 1 1 < m 1
⟹ e + 1 2 e − 1 m 1 − 2 e − 1 2 e − 1 m 1 − 1 2 e − 1 < e 2 e − 1 q \Longrightarrow\frac{\sqrt{e}+1}{2\sqrt{e}-1}m_1-\frac{2\sqrt{e}-1}{2\sqrt{e}-1}m_1-\frac{1}{2\sqrt{e}-1}<\frac{\sqrt{e}}{2\sqrt{e}-1}q ⟹ 2 e − 1 e + 1 m 1 − 2 e − 1 2 e − 1 m 1 − 2 e − 1 1 < 2 e − 1 e q
⟹ 2 − e e m 1 − 1 e < q \Longrightarrow\frac{2-\sqrt{e}}{\sqrt{e}}m_1-\frac{1}{\sqrt{e}}<q ⟹ e 2 − e m 1 − e 1 < q
⟹ ( 2 − e e − 1 e m 1 ) m 1 < q \Longrightarrow\left(\frac{2-\sqrt{e}}{\sqrt{e}}-\frac{1}{\sqrt{e}m_1}\right)m_1<q ⟹ ( e 2 − e − e m 1 1 ) m 1 < q
Note that q ≥ 1 q \ge1 q ≥ 1 and the condition q < 1 3 ( 1 − 1 e ) m 1 < 0.132 m 1 q < \frac{1}{3}\left(1-\frac{1}{\sqrt{e}}\right)m_1 < 0.132m_1 q < 3 1 ( 1 − e 1 ) m 1 < 0.132 m 1 from Observation 18 imply m 1 > 7 m_1 > 7 m 1 > 7 . For m 1 > 7 m_1 > 7 m 1 > 7 , it follows that 2 − e e − 1 e m 1 > 0.137 \frac{2-\sqrt{e}}{\sqrt{e}}-\frac{1}{\sqrt{e}m_1} > 0.137 e 2 − e − e m 1 1 > 0.137 , which reduces the inequality to q > 0.137 m 1 q > 0.137m_1 q > 0.137 m 1 . This produces a direct contradiction. □
Observation 17 and Observation 18 prove Lemma 9
Worst Case Instance for alg:assignment
In this section, we give an instance so that Algorithm 2 has an approximation ratio arbitrarily close to 2 e 2 e − 1 \frac{2\sqrt{e}}{2\sqrt{e}-1} 2 e − 1 2 e showing that our analysis is tight.
Lemma 3. For any ε > 0 \varepsilon> 0 ε > 0 , there exists an instance I I I for which Algorithm 1 returns a schedule with makespan ALG ( I ) \operatorname{ALG}(I) ALG ( I ) and ALG ( I ) OPT ( I ) ≥ 2 e 2 e − 1 − ε \frac{\operatorname{ALG}(I)}{\operatorname{OPT}(I)} \ge\frac{2\sqrt{e}}{2\sqrt{e}-1}-\varepsilon OPT ( I ) ALG ( I ) ≥ 2 e − 1 2 e − ε .
Proof. Let λ = 2 e 2 e − 1 \lambda= \frac{2\sqrt{e}}{2\sqrt{e}-1} λ = 2 e − 1 2 e . We construct a family of instances parameterized by ε \varepsilon ε . We will show the ratio for some ε ′ ≤ ε \varepsilon' \le\varepsilon ε ′ ≤ ε for a sufficiently large number of machines m m m as chosen later. Let q = 1 2 e m q = \frac{1}{2\sqrt{e}}m q = 2 e 1 m represent a specific machine index when rounded. We define an instance consisting of exactly m − ⌊ q ⌋ + 1 m-\lfloor q\rfloor+1 m − ⌊ q ⌋ + 1 jobs. One large job j ~ \tilde{j} j ~ with an area of exactly W 2 = ( λ − 1 ) m W_2=(\lambda-1)m W 2 = ( λ − 1 ) m and m − ⌊ q ⌋ m-\lfloor q\rfloor m − ⌊ q ⌋ small jobs indexed by j ∈ { ⌊ q ⌋ + 1 , … , m } j \in\{\lfloor q\rfloor+1,\ldots,m\} j ∈ {⌊ q ⌋ + 1 , … , m } .
We define a critical machine threshold m ′ = 2 W 2 λ = 2 ( λ − 1 ) λ m m'=\frac{2W_2}{\lambda}=\frac{2(\lambda-1)}{\lambda}m m ′ = λ 2 W 2 = λ 2 ( λ − 1 ) m . We carefully define the processing times of the small jobs so that if the big job is compressed and placed above them, the load on the rightmost machine is exactly λ \lambda λ (minus a small error).
We define constant work area functions for each small job:
w j ( ⋅ ) : = { λ 2 if j ∈ ( q , ⌈ m ′ ⌉ ) λ − W 2 j − δ if j ∈ [ ⌈ m ′ ⌉ , m ] (20) w_j(\cdot):=
\begin{cases}
\frac{\lambda}{2} & \text{if } j\in(q,\lceil m'\rceil)\\
\lambda-\frac{W_2}{j}-\delta& \text{if } j\in[\lceil m'\rceil,m]
\end{cases} \tag*{(20)} w j ( ⋅ ) := { 2 λ λ − j W 2 − δ if j ∈ ( q , ⌈ m ′ ⌉) if j ∈ [⌈ m ′ ⌉ , m ] (20)
where δ = ε ′ + λ 2 ( q − ⌊ q ⌋ ) m − ⌈ m ′ ⌉ + 1 \delta=\frac{\varepsilon'+\frac{\lambda}{2}(q-\lfloor q\rfloor)}{m-\lceil m'\rceil+1} δ = m − ⌈ m ′ ⌉ + 1 ε ′ + 2 λ ( q − ⌊ q ⌋) is a small error that ensures that the total area of the small jobs is exactly m − W 2 m-W_2 m − W 2 which will be shown in the next claim. Consequently, the total work area in the entire instance is exactly W 2 + ( m − W 2 ) = m W_2+(m-W_2)=m W 2 + ( m − W 2 ) = m . Thus, an optimal schedule of makespan 1 can be obtained by assigning m m m machines to every job and executing them consecutively.
Claim 23. The total work area of the jobs defined by Equation (20) is m − W 2 m-W_2 m − W 2 .
Proof of Claim. The total work area of Equation (20) is:
W 1 : = ∑ j = ⌊ q ⌋ + 1 m w j ( 1 ) = λ 2 ( m − ⌊ q ⌋ ) + ( m − ⌈ m ′ ⌉ + 1 ) ( λ 2 − δ ) − ∑ j = ⌈ m ′ ⌉ m W 2 j = λ 2 ( m − ⌊ q ⌋ ) − ( m − ⌈ m ′ ⌉ + 1 ) δ + ∑ j = ⌈ m ′ ⌉ m [ λ 2 − W 2 j ] = λ 2 ( m − ⌊ q ⌋ ) − ( ϵ ′ + λ 2 ( q − ⌊ q ⌋ ) ) + ∑ j = ⌈ m ′ ⌉ m [ λ 2 − W 2 j ] = λ 2 ( m − q ) − ϵ ′ + ∑ j = ⌈ m ′ ⌉ m [ λ 2 − W 2 j ] . (21) \begin{aligned}
W_1 &:= \sum_{j=\lfloor q\rfloor+1}^{m} w_j(1) = \frac{\lambda}{2}(m-\lfloor q\rfloor) + (m-\lceil m'\rceil+1)\left(\frac{\lambda}{2}-\delta\right) - \sum_{j=\lceil m'\rceil}^{m}\frac{W_2}{j} \\
&= \frac{\lambda}{2}(m-\lfloor q\rfloor) - (m-\lceil m'\rceil+1)\delta+ \sum_{j=\lceil m'\rceil}^{m}\left[\frac{\lambda}{2}-\frac{W_2}{j}\right] \\
&= \frac{\lambda}{2}(m-\lfloor q\rfloor)-\left(\epsilon' + \frac{\lambda}{2}(q-\lfloor q\rfloor)\right)+\sum_{j=\lceil m'\rceil}^{m}\left[\frac{\lambda}{2}-\frac{W_2}{j}\right] \\
&= \frac{\lambda}{2}(m-q)-\epsilon' + \sum_{j=\lceil m'\rceil}^{m}\left[\frac{\lambda}{2}-\frac{W_2}{j}\right]. \tag*{(21)}
\end{aligned} W 1 := j = ⌊ q ⌋ + 1 ∑ m w j ( 1 ) = 2 λ ( m − ⌊ q ⌋) + ( m − ⌈ m ′ ⌉ + 1 ) ( 2 λ − δ ) − j = ⌈ m ′ ⌉ ∑ m j W 2 = 2 λ ( m − ⌊ q ⌋) − ( m − ⌈ m ′ ⌉ + 1 ) δ + j = ⌈ m ′ ⌉ ∑ m [ 2 λ − j W 2 ] = 2 λ ( m − ⌊ q ⌋) − ( ϵ ′ + 2 λ ( q − ⌊ q ⌋) ) + j = ⌈ m ′ ⌉ ∑ m [ 2 λ − j W 2 ] = 2 λ ( m − q ) − ϵ ′ + j = ⌈ m ′ ⌉ ∑ m [ 2 λ − j W 2 ] . (21)
Since ∑ i = ⌈ m ′ ⌉ m [ λ 2 − W 2 i ] \sum_{i=\lceil m'\rceil}^{m}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right] ∑ i = ⌈ m ′ ⌉ m [ 2 λ − i W 2 ] is larger and converges to ∫ m ′ m λ 2 − W 2 x d x \int_{m'}^{m}\frac{\lambda}{2}-\frac{W_2}{x}\,dx ∫ m ′ m 2 λ − x W 2 d x (claim 12.1), we can find an ϵ ′ ≤ 2 ϵ \epsilon'\leq2\epsilon ϵ ′ ≤ 2 ϵ and choose m m m large enough so that λ 2 ( q − ⌊ q ⌋ ) m − ⌈ m ′ ⌉ + 1 ≤ ϵ 2 \frac{\frac{\lambda}{2}(q-\lfloor q\rfloor)}{m-\lceil m'\rceil+1}\leq\frac{\epsilon}{2} m − ⌈ m ′ ⌉ + 1 2 λ ( q − ⌊ q ⌋) ≤ 2 ϵ and
∑ i = ⌈ m ′ ⌉ m [ λ 2 − W 2 i ] = ∫ m ′ m λ 2 − W 2 x d x + ϵ ′ . (22) \sum_{i=\lceil m'\rceil}^{m}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]=\int_{m'}^{m}\frac{\lambda}{2}-\frac{W_2}{x}\,dx+\epsilon'. \tag*{(22)} i = ⌈ m ′ ⌉ ∑ m [ 2 λ − i W 2 ] = ∫ m ′ m 2 λ − x W 2 d x + ϵ ′ . (22)
Using now Equations (21) and (22) , we get
W 1 = λ 2 ( m − q ) − ϵ ′ + ∫ m ′ m λ 2 − W 2 x d x + ϵ ′ . (23) W_1=\frac{\lambda}{2}(m-q)-\epsilon'+\int_{m'}^{m}\frac{\lambda}{2}-\frac{W_2}{x}\,dx+\epsilon'. \tag*{(23)} W 1 = 2 λ ( m − q ) − ϵ ′ + ∫ m ′ m 2 λ − x W 2 d x + ϵ ′ . (23)
Further we have that
( λ − 1 ) m − λ 2 q − W 2 ln ( m m ′ ) = ( λ − 1 ) m − λ 2 ( 1 2 e m ) − ( λ − 1 ) ln ( m 2 ( λ − 1 ) λ m ) = ( λ − 1 ) m − 1 2 ( λ − 1 ) m − 1 2 ( λ − 1 ) = 0. (24) \begin{aligned}
(\lambda-1)m-\frac{\lambda}{2}q-W_2\ln\left(\frac{m}{m'}\right)
&=(\lambda-1)m-\frac{\lambda}{2}\left(\frac{1}{2\sqrt{e}}m\right)-(\lambda-1)\ln\left(\frac{m}{\frac{2(\lambda-1)}{\lambda}m}\right)\\
&=(\lambda-1)m-\frac{1}{2}(\lambda-1)m-\frac{1}{2}(\lambda-1)=0. \tag*{(24)}
\end{aligned} ( λ − 1 ) m − 2 λ q − W 2 ln ( m ′ m ) = ( λ − 1 ) m − 2 λ ( 2 e 1 m ) − ( λ − 1 ) ln ( λ 2 ( λ − 1 ) m m ) = ( λ − 1 ) m − 2 1 ( λ − 1 ) m − 2 1 ( λ − 1 ) = 0. (24)
Equation (24) implies now similar as in Equation (8) that
( λ − 1 ) m − λ 2 q − W 2 ln ( m m ′ ) = 0 ⇔ ( λ − 1 ) m − λ 2 λ W 2 − λ 2 q − W 2 ln ( m m ′ ) = − W 2 ⇔ λ 2 ( m − q ) + λ 2 ( m − 2 λ W 2 ) − W 2 ln ( m m ′ ) = m − W 2 ⇔ λ 2 ( m − q ) + λ 2 ( m − m ′ ) − W 2 ∫ m ′ m 1 x d x = m − W 2 ⇔ λ 2 ( m − q ) + ∫ m ′ m λ 2 − W 2 x d x = m − W 2 . (25) \begin{aligned}
(\lambda-1)m-\frac{\lambda}{2}q-W_2\ln\left(\frac{m}{m'}\right)=0 \\
&\Leftrightarrow\quad(\lambda-1)m-\frac{\lambda}{2\lambda}W_2-\frac{\lambda}{2}q-W_2\ln\left(\frac{m}{m'}\right)=-W_2 \\
&\Leftrightarrow\quad\frac{\lambda}{2}(m-q)+\frac{\lambda}{2}\left(m-\frac{2}{\lambda}W_2\right)-W_2\ln\left(\frac{m}{m'}\right)=m-W_2 \\
&\Leftrightarrow\quad\frac{\lambda}{2}(m-q)+\frac{\lambda}{2}(m-m')-W_2\int_{m'}^{m}\frac{1}{x}\,dx=m-W_2 \\
&\Leftrightarrow\quad\frac{\lambda}{2}(m-q)+\int_{m'}^{m}\frac{\lambda}{2}-\frac{W_2}{x}\,dx=m-W_2. \tag*{(25)}
\end{aligned} ( λ − 1 ) m − 2 λ q − W 2 ln ( m ′ m ) = 0 ⇔ ( λ − 1 ) m − 2 λ λ W 2 − 2 λ q − W 2 ln ( m ′ m ) = − W 2 ⇔ 2 λ ( m − q ) + 2 λ ( m − λ 2 W 2 ) − W 2 ln ( m ′ m ) = m − W 2 ⇔ 2 λ ( m − q ) + 2 λ ( m − m ′ ) − W 2 ∫ m ′ m x 1 d x = m − W 2 ⇔ 2 λ ( m − q ) + ∫ m ′ m 2 λ − x W 2 d x = m − W 2 . (25)
Combining now Equations (23) and (25) results in
W 1 = m − W 2 . W_1=m-W_2. W 1 = m − W 2 .
To show the claimed approximation ratio, we now have to show that the algorithm returns a schedule with makespan λ = 2 e 2 e − 1 \lambda= \frac{2\sqrt{e}}{2\sqrt{e}-1} λ = 2 e − 1 2 e .
First, observe that due to the constant work functions any partition C 1 ⊔ C 2 ⊔ C 3 C_1 \sqcup C_2 \sqcup C_3 C 1 ⊔ C 2 ⊔ C 3 satisfies the properties in Lemma 7. Thus, Algorithm 1 places small jobs in S 0 ⊔ S 1 S_0 \sqcup S_1 S 0 ⊔ S 1 and the single large job j ~ \tilde{j} j ~ is placed in S 2 S_2 S 2 . The algorithm will then assign the small jobs on one machine each in non-decreasing order of processing time to machines ⌊ q ⌋ + 1 , … , m \lfloor q\rfloor+ 1,\ldots,m ⌊ q ⌋ + 1 , … , m . Then, since ∣ S 2 ∣ = 1 |S_2| = 1 ∣ S 2 ∣ = 1 Algorithm 2 will attempt to place the big job j ~ \tilde{j} j ~ on machines 1 , … , i 1,\ldots,i 1 , … , i for some i ∈ [ m ] i \in[m] i ∈ [ m ] . We examine the resulting makespan for all possible choices of i i i , two special cases are shown in Figure 2 :
Case 1 (Placement in the gap): If j ~ \tilde{j} j ~ is compressed to exactly i = ⌊ q ⌋ i = \lfloor q\rfloor i = ⌊ q ⌋ machines, it fits into the empty gap without overlapping any of the small jobs. Its processing time is:
W 2 ⌊ q ⌋ = ( λ − 1 ) m ⌊ 2 e 2 e − 1 m ⌋ ≥ ( λ − 1 ) m 2 e 2 e − 1 m = 2 e ( λ − 1 ) = 2 e ( 2 e 2 e − 1 − 2 e − 1 2 e − 1 ) = λ . \frac{W_2}{\lfloor q\rfloor} = \frac{(\lambda- 1)m}{\lfloor\frac{2\sqrt{e}}{2\sqrt{e}-1}m\rfloor} \ge\frac{(\lambda- 1)m}{\frac{2\sqrt{e}}{2\sqrt{e}-1}m} = 2\sqrt{e}(\lambda- 1) = 2\sqrt{e}\left(\frac{2\sqrt{e}}{2\sqrt{e}-1} - \frac{2\sqrt{e}-1}{2\sqrt{e}-1}\right) = \lambda. ⌊ q ⌋ W 2 = ⌊ 2 e − 1 2 e m ⌋ ( λ − 1 ) m ≥ 2 e − 1 2 e m ( λ − 1 ) m = 2 e ( λ − 1 ) = 2 e ( 2 e − 1 2 e − 2 e − 1 2 e − 1 ) = λ .
Case 2 (Partial overlap): If j ~ \tilde{j} j ~ is compressed onto ( q , ⌈ m ′ ⌉ ) (q,\lceil m'\rceil) ( q , ⌈ m ′ ⌉) machines, it overlaps with the first block of small jobs. The total load on machine i i i is the small jobs processing time plus the processing time of the big job on i i i machines. By definition of m ′ m' m ′ in Equation (6) , we get:
λ 2 + W 2 i ≥ λ 2 + W 2 m ′ > λ 2 + λ 2 = λ . \frac{\lambda}{2} + \frac{W_2}{i} \ge\frac{\lambda}{2} + \frac{W_2}{m'} > \frac{\lambda}{2} + \frac{\lambda}{2} = \lambda. 2 λ + i W 2 ≥ 2 λ + m ′ W 2 > 2 λ + 2 λ = λ .
Case 3 (Full overlap): If j ~ \tilde{j} j ~ is compressed onto [ ⌈ m ′ ⌉ , m ] [\lceil m'\rceil,m] [⌈ m ′ ⌉ , m ] machines, it overlaps with the second block of small jobs. The total load on machine i i i is again the small jobs processing time plus the processing time of the big job:
t j ~ ( i ) + W 2 i = ( λ − W 2 i − δ ) + W 2 i = λ − δ . t_{\tilde{j}}(i) + \frac{W_2}{i} = \left(\lambda- \frac{W_2}{i} - \delta\right) + \frac{W_2}{i} = \lambda- \delta. t j ~ ( i ) + i W 2 = ( λ − i W 2 − δ ) + i W 2 = λ − δ .
Since δ = ε ′ + λ ( q − ⌊ q ⌋ ) m − ⌈ m ′ ⌉ + 1 ≤ ε 2 + ε 2 m − ⌈ m ′ ⌉ + 1 ≤ ε \delta= \frac{\varepsilon' + \lambda(q-\lfloor q\rfloor)}{m-\lceil m'\rceil+1} \le\frac{\frac{\varepsilon}{2}+\frac{\varepsilon}{2}}{m-\lceil m'\rceil+1} \le\varepsilon δ = m − ⌈ m ′ ⌉ + 1 ε ′ + λ ( q − ⌊ q ⌋) ≤ m − ⌈ m ′ ⌉ + 1 2 ε + 2 ε ≤ ε , the resulting makespan is at least λ − ε \lambda-\varepsilon λ − ε .
Edge Cases
In this section we prove the following claim:
Claim 11 (Edge Cases). Let λ ∈ [ 10 7 , 3 2 ] \lambda\in[\frac{10}{7},\frac{3}{2}] λ ∈ [ 7 10 , 2 3 ] then:
If q + 1 < ⌈ m ′ ⌉ − 1 q+1 < \lceil m'\rceil- 1 q + 1 < ⌈ m ′ ⌉ − 1 , then w.l.o.g. ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ λ 2 ( ⌈ m ′ ⌉ − q − 1 ) \sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i) \ge\frac{\lambda}{2}(\lceil m'\rceil-q-1) ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ 2 λ (⌈ m ′ ⌉ − q − 1 ) holds.
If q + 1 = ⌈ m ′ ⌉ − 1 q+1 = \lceil m'\rceil- 1 q + 1 = ⌈ m ′ ⌉ − 1 , then Algorithm 2 returns a schedule with makespan at most λ \lambda λ .
We will archive this by proving each individual claim. Note that the q + 1 < ⌈ m ′ ⌉ q+1 < \lceil m'\rceil q + 1 < ⌈ m ′ ⌉ implies q + 2 ≤ ⌈ m ′ ⌉ − 1 q+2 \le\lceil m'\rceil-1 q + 2 ≤ ⌈ m ′ ⌉ − 1 since q q q is an integer, so in the following the prove the claim with this condition instead.
Observation 24. If q + 2 ≤ ⌈ m ′ ⌉ − 1 q+2 \le\lceil m'\rceil-1 q + 2 ≤ ⌈ m ′ ⌉ − 1 , then we can transform the schedule given by Remark 6 so that the following property holds as well:
∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ λ 2 ( ⌈ m ′ ⌉ − q − 1 ) \sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i) \ge\frac{\lambda}{2}(\lceil m'\rceil-q-1) i = q + 1 ∑ ⌈ m ′ ⌉ − 1 load ( i ) ≥ 2 λ (⌈ m ′ ⌉ − q − 1 )
Proof. In this case we assume that the job j 1 j^{1} j 1 from Lemma 1.3 2b with processing time at most λ 2 \frac{\lambda}{2} 2 λ exists. If this job would not exist, any job in S 1 S_{1} S 1 would have processing time of at least λ 2 \frac{\lambda}{2} 2 λ which directly implies ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ λ 2 ( ⌈ m ′ ⌉ − q − 1 ) \sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i) \ge\frac{\lambda}{2}(\lceil m'\rceil-q-1) ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) ≥ 2 λ (⌈ m ′ ⌉ − q − 1 ) . Note that the case q + 2 ≤ ⌈ m ′ ⌉ − 1 q+2 \le\lceil m'\rceil-1 q + 2 ≤ ⌈ m ′ ⌉ − 1 is chosen so that the sum consists of at least two terms which guarantees that the sum contains the indices q + 1 q+1 q + 1 and q + 2 q+2 q + 2 .
Case 1 (load ( q + 1 ) + load ( q + 2 ) ≤ λ \operatorname{load}(q+1)+\operatorname{load}(q+2)\le\lambda load ( q + 1 ) + load ( q + 2 ) ≤ λ ): Since j 1 j^{1} j 1 is the job with lowest processing time, and the schedule is increasing in load, j 1 j^{1} j 1 is scheduled on machine q + 1 q+1 q + 1 . We can reschedule j 1 j^{1} j 1 onto machine q + 2 q+2 q + 2 . Note that this changes q q q . Since the combined load is at most λ \lambda λ , we do not increase the makespan beyond λ \lambda λ . We will then change the schedule and make it non-contiguous by sorting the machine q + 2 q+2 q + 2 into the right position such that the load is again non-decreasing. This simplifies the following analysis, since the schedule has now the same properties as before (except for contiguousness). If load ( q + 1 ) + load ( q + 2 ) > 1 \operatorname{load}(q+1)+\operatorname{load}(q+2)>1 load ( q + 1 ) + load ( q + 2 ) > 1 , we decrease m 1 m_{1} m 1 by 1 since this machine is then part of S 0 S_{0} S 0 . After placing the job in S 2 S_{2} S 2 with Algorithm 2 we can make this schedule contiguous again by moving the separated job to the left. This transformation is visualized in Figure 3 . The algorithm is now extended by using steps (a)-(c) as preprocessing and step (e) as postprocessing. Since after step (c) every machine between q + 1 q+1 q + 1 and m 1 m_{1} m 1 has load of at least λ 2 \frac{\lambda}{2} 2 λ , the statement holds.
Figure 3. Transformation to reschedule the single job with low height.
Case 2 (load ( q + 1 ) + load ( q + 2 ) > λ \operatorname{load}(q+1)+\operatorname{load}(q+2)>\lambda load ( q + 1 ) + load ( q + 2 ) > λ ): In this case we can bound the sum by ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) = load ( q + 1 ) + load ( q + 2 ) + ∑ i = q + 3 ⌈ m ′ ⌉ − 1 load ( i ) > λ + λ 2 ( ( ⌈ m ′ ⌉ − 1 ) − ( q + 3 ) + 1 ) = λ 2 ( ⌈ m ′ ⌉ − q − 1 ) \sum_{i=q+1}^{\lceil m'\rceil-1}\operatorname{load}(i)=\operatorname{load}(q+1)+\operatorname{load}(q+2)+\sum_{i=q+3}^{\lceil m'\rceil-1}\operatorname{load}(i)>\lambda+\frac{\lambda}{2}((\lceil m'\rceil-1)-(q+3)+1)=\frac{\lambda}{2}(\lceil m'\rceil-q-1) ∑ i = q + 1 ⌈ m ′ ⌉ − 1 load ( i ) = load ( q + 1 ) + load ( q + 2 ) + ∑ i = q + 3 ⌈ m ′ ⌉ − 1 load ( i ) > λ + 2 λ ((⌈ m ′ ⌉ − 1 ) − ( q + 3 ) + 1 ) = 2 λ (⌈ m ′ ⌉ − q − 1 ) by 2b.
Observation 25. Let λ ∈ [ 10 7 , 3 2 ] \lambda\in[\frac{10}{7},\frac{3}{2}] λ ∈ [ 7 10 , 2 3 ] and q + 1 = ⌈ m ′ ⌉ − 1 q+1=\lceil m'\rceil-1 q + 1 = ⌈ m ′ ⌉ − 1 , then Algorithm 2 has ratio λ \lambda λ .
Proof. We can assume W 2 > λ q W_{2}>\lambda q W 2 > λ q since otherwise W 2 ≤ λ q W_{2}\le\lambda q W 2 ≤ λ q would hold, which means that we can compress j ~ \tilde{j} j ~ onto q q q machines with processing time at most λ \lambda λ . This condition is equivalent to W 2 λ > q \frac{W_{2}}{\lambda}>q λ W 2 > q . Which implies W 2 λ + 1 > q + 1 = ⌈ m ′ ⌉ − 1 ≥ m ′ − 1 = 2 W 2 λ − 1 \frac{W_{2}}{\lambda}+1>q+1=\lceil m'\rceil-1\ge m'-1=\frac{2W_{2}}{\lambda}-1 λ W 2 + 1 > q + 1 = ⌈ m ′ ⌉ − 1 ≥ m ′ − 1 = λ 2 W 2 − 1 by our initial assumption. This can be transformed to
2 ≥ W 2 λ ⇔ 2 λ ≥ W 2 (26) 2\ge\frac{W_{2}}{\lambda}\Leftrightarrow2\lambda\ge W_{2} \tag*{(26)} 2 ≥ λ W 2 ⇔ 2 λ ≥ W 2 (26)
which implies that we can compress j ~ \tilde{j} j ~ onto 2 machines with processing time at most λ \lambda λ . If q ≥ 2 q\ge2 q ≥ 2 holds, then we would do this and be done. The remaining case is then q = 1 q=1 q = 1 (since the ratio for the case q = 0 q=0 q = 0 has been shown in [JO26]). To proof that the ratio holds for all m 1 m_{1} m 1 , we will state some properties which must hold if Algorithm 2 produces a schedule with makespan greater λ \lambda λ and show that they are contradicting. Define W 1 : = ∑ j ∈ S 1 w j ( γ j ( 1 ) ) W_1 := \sum_{j \in S_1} w_j(\gamma_j(1)) W 1 := ∑ j ∈ S 1 w j ( γ j ( 1 )) .
load ( i ) + W 2 i > λ for all i ∈ { 2 , … , m 1 } (27) \operatorname{load}(i) + \frac{W_2}{i} > \lambda\quad\text{for all } i \in\{2,\ldots,m_1\} \tag*{(27)} load ( i ) + i W 2 > λ for all i ∈ { 2 , … , m 1 } (27)
since j ~ \tilde{j} j ~ is not compressed onto i i i machines.
W 2 > λ (28) W_2 > \lambda \tag*{(28)} W 2 > λ (28)
by Lemma 1.3 3a.
W 1 + W 2 ≤ m 1 (29) W_1 + W_2 \le m_1 \tag*{(29)} W 1 + W 2 ≤ m 1 (29)
by Lemma 1.3 1a.
Case 1 (m 1 = 2 m_1 = 2 m 1 = 2 ): We have:
W 1 + W 2 = load ( 2 ) + W 2 > λ − W 2 2 + W 2 = λ + W 2 2 > 3 2 λ > 2 = m 1 W_1 + W_2 = \operatorname{load}(2) + W_2 > \lambda- \frac{W_2}{2} + W_2 = \lambda+ \frac{W_2}{2} > \frac{3}{2}\lambda> 2 = m_1 W 1 + W 2 = load ( 2 ) + W 2 > λ − 2 W 2 + W 2 = λ + 2 W 2 > 2 3 λ > 2 = m 1
Which is a contradiction to Equation (29) .
Case 2 (m 1 = 3 m_1 = 3 m 1 = 3 ): This results in a contradiction as well: W 1 + W 2 = load ( 2 ) + load ( 3 ) + W 2 W_1 + W_2 = \operatorname{load}(2) + \operatorname{load}(3) + W_2 W 1 + W 2 = load ( 2 ) + load ( 3 ) + W 2
> λ − W 2 2 + λ − W 2 3 + W 2 = 2 λ + 1 6 W 2 > 2 λ + 1 6 λ > 3 = m 1 . > \lambda- \frac{W_2}{2} + \lambda- \frac{W_2}{3} + W_2 = 2\lambda+ \frac{1}{6}W_2 > 2\lambda+ \frac{1}{6}\lambda> 3 = m_1. > λ − 2 W 2 + λ − 3 W 2 + W 2 = 2 λ + 6 1 W 2 > 2 λ + 6 1 λ > 3 = m 1 .
Case 3 (m 1 = 4 m_1 = 4 m 1 = 4 ): In this case we obtain a contradiction by: W 1 + W 2 = load ( 2 ) + load ( 3 ) + load ( 4 ) + W 2 W_1 + W_2 = \operatorname{load}(2) + \operatorname{load}(3) + \operatorname{load}(4) + W_2 W 1 + W 2 = load ( 2 ) + load ( 3 ) + load ( 4 ) + W 2
> 3 λ − W 2 2 − W 2 3 − W 2 4 + W 2 = 3 λ − 1 12 W 2 > 3 λ − 2 12 λ > 4 = m 1 . > 3\lambda- \frac{W_2}{2} - \frac{W_2}{3} - \frac{W_2}{4} + W_2 = 3\lambda- \frac{1}{12}W_2 > 3\lambda- \frac{2}{12}\lambda> 4 = m_1. > 3 λ − 2 W 2 − 3 W 2 − 4 W 2 + W 2 = 3 λ − 12 1 W 2 > 3 λ − 12 2 λ > 4 = m 1 .
Case 4 (m 1 ≥ 5 m_1 \ge5 m 1 ≥ 5 ): In this remaining case we can use that W 2 W_2 W 2 compressed onto m 1 m_1 m 1 machines must have processing time greater than λ − 1 \lambda- 1 λ − 1 otherwise we could place it there and be done. This will lead us similarly to a contradiction, showing that we need more area than we maximal have by 1a.
W 1 + W 2 > 2 c 2 ( m 1 − 1 ) + W 2 = λ 2 m 1 − λ 2 + λ m 1 − m 1 ≥ 10 7 ( 3 2 m 1 − 1 2 ) − m 1 = m 1 + ( 1 7 m 1 − 5 7 ) \begin{aligned}
W_1 + W_2 &> \frac{2c}{2}(m_1-1)+W_2 \\
&= \frac{\lambda}{2}m_1-\frac{\lambda}{2}+\lambda m_1-m_1 \\
&\ge\frac{10}{7}\left(\frac{3}{2}m_1-\frac{1}{2}\right)-m_1 \\
&=m_1+\left(\frac{1}{7}m_1-\frac{5}{7}\right)
\end{aligned} W 1 + W 2 > 2 2 c ( m 1 − 1 ) + W 2 = 2 λ m 1 − 2 λ + λ m 1 − m 1 ≥ 7 10 ( 2 3 m 1 − 2 1 ) − m 1 = m 1 + ( 7 1 m 1 − 7 5 )
> 2 2 λ ( m 1 − 1 ) + ( λ − 1 ) m 1 = λ ( 3 2 m 1 − 1 2 ) − m 1 = 8 7 m 1 − 5 7 ≥ m 1 ≥ 5 m 1 \begin{aligned}
&> \frac{2}{2}\lambda(m_1-1)+(\lambda-1)m_1 \\
&=\lambda\left(\frac{3}{2}m_1-\frac{1}{2}\right)-m_1 \\
&=\frac{8}{7}m_1-\frac{5}{7} \\
&\underset{m_1\ge5}{\ge} m_1
\end{aligned} > 2 2 λ ( m 1 − 1 ) + ( λ − 1 ) m 1 = λ ( 2 3 m 1 − 2 1 ) − m 1 = 7 8 m 1 − 7 5 m 1 ≥ 5 ≥ m 1
Again a contradiction to Equation (29) .
Observations 24 and 25 now prove claim 11.
Analysis Proofs
In this section we prove the following claim:
Claim 12 (Analytical Properties). Let λ ∈ [ 2 e 2 e − 1 , 3 2 ] \lambda\in\left[\frac{2\sqrt{e}}{2\sqrt{e}-1}, \frac{3}{2}\right] λ ∈ [ 2 e − 1 2 e , 2 3 ] , then:
∑ i = ⌈ m ′ ⌉ m 1 [ λ 2 − W 2 i ] > ∫ m ′ m 1 λ 2 − W 2 x d x \sum_{i=\lceil m'\rceil}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right] > \int_{m'}^{m_1}\frac{\lambda}{2}-\frac{W_2}{x}\,dx ∑ i = ⌈ m ′ ⌉ m 1 [ 2 λ − i W 2 ] > ∫ m ′ m 1 2 λ − x W 2 d x .
f ( q ) = ( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) f(q) = (\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right) f ( q ) = ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) monotonically decreases in q q q .
Q ( c ) = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − c 2 ) λ Q(c) = \frac{(1-c)(\lambda-1)m_1+c(1-\frac{\lambda}{2})m_1}{(1-\frac{c}{2})\lambda} Q ( c ) = ( 1 − 2 c ) λ ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 monotonically increases in c c c .
g ( Q ( c ) ) = ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln m 1 λ 2 λ Q ( c ) g(Q(c)) = (\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\frac{m_1\lambda}{2\lambda Q(c)} g ( Q ( c )) = ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln 2 λ Q ( c ) m 1 λ monotonically increases in Q ( c ) Q(c) Q ( c ) .
We will archive this by proving each claim individually in the following.
Claim 2.3.1.
∑ i = ⌈ m ′ ⌉ m 1 [ λ 2 − W 2 i ] > ∫ m ′ m 1 λ 2 − W 2 x d x \sum_{i=\lceil m'\rceil}^{m_1}\left[\frac{\lambda}{2}-\frac{W_2}{i}\right]>\int_{m'}^{m_1}\frac{\lambda}{2}-\frac{W_2}{x}\,dx i = ⌈ m ′ ⌉ ∑ m 1 [ 2 λ − i W 2 ] > ∫ m ′ m 1 2 λ − x W 2 d x Proof of Claim. Define h ( i ) : = λ 2 − W 2 i h(i):=\frac{\lambda}{2}-\frac{W_2}{i} h ( i ) := 2 λ − i W 2 and k : = ⌈ m ′ ⌉ k:=\lceil m'\rceil k := ⌈ m ′ ⌉ . Note that by Equation (6) , h ( i ) ≥ 0 h(i)\ge0 h ( i ) ≥ 0 holds, and for every i ∈ [ 1 , m 1 ] i\in[1,m_1] i ∈ [ 1 , m 1 ] , the following holds, since h ( i ) h(i) h ( i ) is strictly monotone:
∫ i − 1 i h ( x ) d x < ∫ i − 1 i h ( i ) d x = h ( i ) \int_{i-1}^{i}h(x)\,dx<\int_{i-1}^{i}h(i)\,dx=h(i) ∫ i − 1 i h ( x ) d x < ∫ i − 1 i h ( i ) d x = h ( i ) This implies:
∫ k m 1 h ( x ) d x = ∑ i = k + 1 m 1 ∫ i − 1 i h ( x ) d x ≤ ∑ i = k + 1 m 1 h ( i ) \int_{k}^{m_1}h(x)\,dx=\sum_{i=k+1}^{m_1}\int_{i-1}^{i}h(x)\,dx\le\sum_{i=k+1}^{m_1}h(i) ∫ k m 1 h ( x ) d x = i = k + 1 ∑ m 1 ∫ i − 1 i h ( x ) d x ≤ i = k + 1 ∑ m 1 h ( i ) and similarly for the rounded part:
∫ m ′ k h ( x ) d x ≤ ∫ m ′ k h ( k ) d x = ( k − m ′ ) h ( k ) < h ( k ) \int_{m'}^{k}h(x)\,dx\le\int_{m'}^{k}h(k)\,dx=(k-m')h(k)<h(k) ∫ m ′ k h ( x ) d x ≤ ∫ m ′ k h ( k ) d x = ( k − m ′ ) h ( k ) < h ( k ) Combined, we have:
∫ m ′ m 1 h ( x ) d x = ∫ m ′ k h ( x ) d x + ∫ k m 1 h ( x ) d x < h ( k ) + ∑ i = k + 1 m 1 h ( i ) = ∑ i = ⌈ m ′ ⌉ m 1 h ( i ) . \int_{m'}^{m_1}h(x)\,dx=\int_{m'}^{k}h(x)\,dx+\int_{k}^{m_1}h(x)\,dx<h(k)+\sum_{i=k+1}^{m_1}h(i)=\sum_{i=\lceil m'\rceil}^{m_1}h(i). ∫ m ′ m 1 h ( x ) d x = ∫ m ′ k h ( x ) d x + ∫ k m 1 h ( x ) d x < h ( k ) + i = k + 1 ∑ m 1 h ( i ) = i = ⌈ m ′ ⌉ ∑ m 1 h ( i ) .
Claim 2.3.2. If λ ∈ [ 4 3 , 3 2 ] \lambda\in\left[\frac{4}{3},\frac{3}{2}\right] λ ∈ [ 3 4 , 2 3 ] and q ≤ Q ( c ) q\le Q(c) q ≤ Q ( c ) , then f ( q ) = ( λ − 1 ) m 1 − λ 2 q − W 2 ln ( m 1 m ′ ) f(q)=(\lambda-1)m_1-\frac{\lambda}{2}q-W_2\ln\left(\frac{m_1}{m'}\right) f ( q ) = ( λ − 1 ) m 1 − 2 λ q − W 2 ln ( m ′ m 1 ) is monotonically decreasing in q q q .
Proof of Claim. Considering the first derivative of f f f with respect to q q q , we have:
∂ f ∂ q = − λ 2 \frac{\partial f}{\partial q}=-\frac{\lambda}{2} ∂ q ∂ f = − 2 λ Given the bounded interval λ ∈ [ 4 3 , 3 2 ] \lambda\in\left[\frac{4}{3},\frac{3}{2}\right] λ ∈ [ 3 4 , 2 3 ] , it trivially holds that − λ 2 ≤ − 2 3 < 0 -\frac{\lambda}{2}\le-\frac{2}{3}<0 − 2 λ ≤ − 3 2 < 0 .
Claim 2.3.3. If λ ∈ [ 1 , 3 2 ] \lambda\in\left[1,\frac{3}{2}\right] λ ∈ [ 1 , 2 3 ] , then Q ( c ) = ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − λ 2 ) m 1 ( 1 − c 2 ) λ Q(c)=\frac{(1-c)(\lambda-1)m_1+c(1-\frac{\lambda}{2})m_1}{(1-\frac{c}{2})\lambda} Q ( c ) = ( 1 − 2 c ) λ ( 1 − c ) ( λ − 1 ) m 1 + c ( 1 − 2 λ ) m 1 is monotonically increasing in c c c .
Proof of Claim. We will calculate the derivative of Q ( c ) Q(c) Q ( c ) again. Factor out the constant m 1 λ \frac{m_1}{\lambda} λ m 1 and simplify the numerator u ( c ) u(c) u ( c ) :
u ( c ) = ( 1 − c ) ( λ − 1 ) + c ( 1 − λ 2 ) u(c)=(1-c)(\lambda-1)+c\left(1-\frac{\lambda}{2}\right) u ( c ) = ( 1 − c ) ( λ − 1 ) + c ( 1 − 2 λ ) = λ − 1 + 2 c − 3 2 c λ =\lambda-1+2c-\frac{3}{2}c\lambda = λ − 1 + 2 c − 2 3 c λ Define v ( c ) v(c) v ( c ) as the denominator and calculate derivatives:
u ′ ( c ) = 2 − 3 2 λ u'(c)=2-\frac{3}{2}\lambda u ′ ( c ) = 2 − 2 3 λ v ( c ) = 1 − c 2 ⟹ v ′ ( c ) = − 1 2 v(c)=1-\frac{c}{2}\Longrightarrow v'(c)=-\frac{1}{2} v ( c ) = 1 − 2 c ⟹ v ′ ( c ) = − 2 1
Apply the quotient rule to find the new numerator u ′ v − u v ′ u'v-uv' u ′ v − u v ′ :
u ′ v − u v ′ = ( 2 − 3 2 λ ) ( 1 − c 2 ) − ( λ − 1 + 2 c − 3 2 c λ ) ( − 1 2 ) = ( 2 − c − 3 2 λ + 3 4 c λ ) + ( 1 2 λ − 1 2 + c − 3 4 c λ ) = 3 2 − λ = 3 − 2 λ 2 . \begin{aligned}
u'v-uv' &= \left(2-\frac{3}{2}\lambda\right)\left(1-\frac{c}{2}\right)-\left(\lambda-1+2c-\frac{3}{2}c\lambda\right)\left(-\frac{1}{2}\right) \\
&= \left(2-c-\frac{3}{2}\lambda+\frac{3}{4}c\lambda\right)+\left(\frac{1}{2}\lambda-\frac{1}{2}+c-\frac{3}{4}c\lambda\right) \\
&= \frac{3}{2}-\lambda=\frac{3-2\lambda}{2}.
\end{aligned} u ′ v − u v ′ = ( 2 − 2 3 λ ) ( 1 − 2 c ) − ( λ − 1 + 2 c − 2 3 c λ ) ( − 2 1 ) = ( 2 − c − 2 3 λ + 4 3 c λ ) + ( 2 1 λ − 2 1 + c − 4 3 c λ ) = 2 3 − λ = 2 3 − 2 λ .
Combine all parts with the factored constants m 1 λ \frac{m_1}{\lambda} λ m 1 to get the final derivative:
∂ Q ( c ) ∂ c = m 1 λ ⋅ 3 − 2 λ 2 ( 1 − c 2 ) 2 = m 1 ( 3 − 2 λ ) 2 λ ( 1 − c 2 ) 2 . \begin{aligned}
\frac{\partial Q(c)}{\partial c} &= \frac{m_1}{\lambda}\cdot\frac{\frac{3-2\lambda}{2}}{\left(1-\frac{c}{2}\right)^2} \\
&= \frac{m_1(3-2\lambda)}{2\lambda\left(1-\frac{c}{2}\right)^2}.
\end{aligned} ∂ c ∂ Q ( c ) = λ m 1 ⋅ ( 1 − 2 c ) 2 2 3 − 2 λ = 2 λ ( 1 − 2 c ) 2 m 1 ( 3 − 2 λ ) .
We now have that:
∂ Q ( c ) ∂ c = m 1 ( 3 − 2 λ ) 2 λ ( 1 − c 2 ) 2 ≥ ! 0 ⇔ 3 − 2 λ ≥ 0 ⇔ 3 2 ≥ λ . \frac{\partial Q(c)}{\partial c}=\frac{m_1(3-2\lambda)}{2\lambda\left(1-\frac{c}{2}\right)^2}\mathrel{\overset{!}{\geq}}0\Leftrightarrow3-2\lambda\geq0\Leftrightarrow\frac{3}{2}\geq\lambda. ∂ c ∂ Q ( c ) = 2 λ ( 1 − 2 c ) 2 m 1 ( 3 − 2 λ ) ≥ ! 0 ⇔ 3 − 2 λ ≥ 0 ⇔ 2 3 ≥ λ .
Claim 2.3.4. If λ ≥ 2 e 2 e − 1 \lambda\geq\frac{2\sqrt{e}}{2\sqrt{e}-1} λ ≥ 2 e − 1 2 e , then g ( Q ( c ) ) = ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln m 1 2 λ Q ( c ) g(Q(c))=(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\frac{m_1}{2\lambda Q(c)} g ( Q ( c )) = ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln 2 λ Q ( c ) m 1 is monotonically increasing in Q ( c ) Q(c) Q ( c ) .
Proof of Claim. First, we calculate the derivative of g g g . Cancel λ \lambda λ inside the logarithm to simplify:
ln ( m 1 λ 2 λ Q ( c ) ) = ln ( m 1 2 Q ( c ) ) \ln\left(\frac{m_1\lambda}{2\lambda Q(c)}\right)=\ln\left(\frac{m_1}{2Q(c)}\right) ln ( 2 λ Q ( c ) m 1 λ ) = ln ( 2 Q ( c ) m 1 )
Differentiate term by term with respect to Q ( c ) Q(c) Q ( c ) :
∂ g ∂ Q ( c ) = ∂ ∂ Q ( c ) [ ( λ − 1 ) m 1 − λ 2 Q ( c ) − λ Q ( c ) ln ( m 1 2 Q ( c ) ) ] = 0 − λ 2 − ∂ ∂ Q ( c ) [ λ Q ( c ) ln ( m 1 2 Q ( c ) ) ] \begin{aligned}
\frac{\partial g}{\partial Q(c)} &= \frac{\partial}{\partial Q(c)}\left[(\lambda-1)m_1-\frac{\lambda}{2}Q(c)-\lambda Q(c)\ln\left(\frac{m_1}{2Q(c)}\right)\right] \\
&=0-\frac{\lambda}{2}-\frac{\partial}{\partial Q(c)}\left[\lambda Q(c)\ln\left(\frac{m_1}{2Q(c)}\right)\right]
\end{aligned} ∂ Q ( c ) ∂ g = ∂ Q ( c ) ∂ [ ( λ − 1 ) m 1 − 2 λ Q ( c ) − λ Q ( c ) ln ( 2 Q ( c ) m 1 ) ] = 0 − 2 λ − ∂ Q ( c ) ∂ [ λ Q ( c ) ln ( 2 Q ( c ) m 1 ) ]
Apply the product rule ( u v ) ′ = u ′ v + u v ′ (uv)'=u'v+uv' ( uv ) ′ = u ′ v + u v ′ to the last term:
∂ ∂ Q ( c ) [ λ Q ( c ) ln ( m 1 2 Q ( c ) ) ] = λ ln ( m 1 2 Q ( c ) ) + λ Q ( c ) ( − 1 Q ( c ) ) = λ ln ( m 1 2 Q ( c ) ) − λ \begin{aligned}
\frac{\partial}{\partial Q(c)}\left[\lambda Q(c)\ln\left(\frac{m_1}{2Q(c)}\right)\right] &= \lambda\ln\left(\frac{m_1}{2Q(c)}\right)+\lambda Q(c)\left(-\frac{1}{Q(c)}\right) \\
&=\lambda\ln\left(\frac{m_1}{2Q(c)}\right)-\lambda
\end{aligned} ∂ Q ( c ) ∂ [ λ Q ( c ) ln ( 2 Q ( c ) m 1 ) ] = λ ln ( 2 Q ( c ) m 1 ) + λ Q ( c ) ( − Q ( c ) 1 ) = λ ln ( 2 Q ( c ) m 1 ) − λ
Substitute back, combine constants and factor out λ 2 \frac{\lambda}{2} 2 λ :
∂ g ∂ Q ( c ) = − λ 2 − ( λ ln ( m 1 2 Q ( c ) ) − λ ) = λ 2 − λ ln ( m 1 2 Q ( c ) ) = λ 2 ( 1 − 2 ln ( m 1 2 Q ( c ) ) ) \begin{aligned}
\frac{\partial g}{\partial Q(c)} &= -\frac{\lambda}{2}-\left(\lambda\ln\left(\frac{m_1}{2Q(c)}\right)-\lambda\right) \\
&=\frac{\lambda}{2}-\lambda\ln\left(\frac{m_1}{2Q(c)}\right) \\
&=\frac{\lambda}{2}\left(1-2\ln\left(\frac{m_1}{2Q(c)}\right)\right)
\end{aligned} ∂ Q ( c ) ∂ g = − 2 λ − ( λ ln ( 2 Q ( c ) m 1 ) − λ ) = 2 λ − λ ln ( 2 Q ( c ) m 1 ) = 2 λ ( 1 − 2 ln ( 2 Q ( c ) m 1 ) )
We now have:
∂ g ( c ) ∂ Q ( c ) = λ 2 ( 1 − 2 ln m 1 2 Q ( c ) ) ≥ ! 0 ⇔ 1 2 ≥ ln m 1 2 Q ( c ) ⇔ e ≥ m 1 2 Q ( c ) ⇔ Q ( c ) ≥ m 1 2 e \begin{aligned}
\frac{\partial g(c)}{\partial Q(c)} &= \frac{\lambda}{2}\left(1-2\ln\frac{m_1}{2Q(c)}\right) \overset{!}{\ge} 0 \\
&\Leftrightarrow\frac{1}{2} \ge\ln\frac{m_1}{2Q(c)} \\
&\Leftrightarrow\sqrt{e} \ge\frac{m_1}{2Q(c)} \\
&\Leftrightarrow Q(c) \ge\frac{m_1}{2\sqrt{e}}
\end{aligned} ∂ Q ( c ) ∂ g ( c ) = 2 λ ( 1 − 2 ln 2 Q ( c ) m 1 ) ≥ ! 0 ⇔ 2 1 ≥ ln 2 Q ( c ) m 1 ⇔ e ≥ 2 Q ( c ) m 1 ⇔ Q ( c ) ≥ 2 e m 1
And:
λ ≥ 2 e 2 e − 1 = 1 1 − 1 2 e ⇔ λ ( 1 − 1 2 e ) ≥ 1 ⇔ λ − 1 ≥ λ 1 2 e ⇔ λ − 1 λ m 1 ≥ m 1 2 e \begin{aligned}
\lambda&\ge\frac{2\sqrt{e}}{2\sqrt{e}-1} = \frac{1}{1-\frac{1}{2\sqrt{e}}} \\
&\Leftrightarrow\lambda\left(1-\frac{1}{2\sqrt{e}}\right) \ge1 \\
&\Leftrightarrow\lambda-1 \ge\lambda\frac{1}{2\sqrt{e}} \\
&\Leftrightarrow\frac{\lambda-1}{\lambda}m_1 \ge\frac{m_1}{2\sqrt{e}}
\end{aligned} λ ≥ 2 e − 1 2 e = 1 − 2 e 1 1 ⇔ λ ( 1 − 2 e 1 ) ≥ 1 ⇔ λ − 1 ≥ λ 2 e 1 ⇔ λ λ − 1 m 1 ≥ 2 e m 1
■ \blacksquare ■
The Full Algorithm
In this section we restate the full algorithm from [JO26] for completeness and clarity.
The partition C 1 ⊔ C 2 ⊔ C 3 = J B C_1 \sqcup C_2 \sqcup C_3 = J_B C 1 ⊔ C 2 ⊔ C 3 = J B is found by solving the MCKP as formulated in Lemma 5 . The high-level overview of this algorithm is given in Algorithm 1. Specifically, line 2 and 3 of Algorithm 1 are implemented in Algorithm 4.
Algorithm 4 Algorithm Assign Partitions
Require: Partition C 1 , C 2 , C 3 C_1, C_2, C_3 C 1 , C 2 , C 3 as in Lemma 5 , λ ∈ [ 2 e 2 e − 1 , 3 2 ] \lambda\in\left[\frac{2\sqrt{e}}{2\sqrt{e}-1},\frac{3}{2}\right] λ ∈ [ 2 e − 1 2 e , 2 3 ] and makespan guess d = 1 d = 1 d = 1 .
For each j ∈ C 1 ⊔ C 2 j \in C_1 \sqcup C_2 j ∈ C 1 ⊔ C 2 , set α j ← γ j ( λ ) \alpha_j \leftarrow\gamma_j(\lambda) α j ← γ j ( λ ) ; move j j j to S 0 S_0 S 0 if t j ( α j ) > 1 t_j(\alpha_j) > 1 t j ( α j ) > 1 , else to S 1 S_1 S 1
Schedule S 0 ⊔ S 1 S_0 \sqcup S_1 S 0 ⊔ S 1 on ∑ j ∈ S 0 ⊔ S 1 α j \sum_{j\in S_0\sqcup S_1}\alpha_j ∑ j ∈ S 0 ⊔ S 1 α j machines in non-decreasing order of processing times
▹ \triangleright ▹ May use more than m m m machines.
while there exist distinct machines i 1 , i 2 i_1, i_2 i 1 , i 2 assigned only jobs with α j = 1 \alpha_j = 1 α j = 1 and load ( i 1 ) ≤ load ( i 2 ) ≤ λ 2 \operatorname{load}(i_1) \le\operatorname{load}(i_2) \le\frac{\lambda}{2} load ( i 1 ) ≤ load ( i 2 ) ≤ 2 λ do
Move all jobs from i 2 i_2 i 2 to i 1 i_1 i 1
end while
if there exists a machine i i i assigned only jobs with α j = 1 \alpha_j = 1 α j = 1 such that load ( i ) ≤ λ 2 \operatorname{load}(i) \le\frac{\lambda}{2} load ( i ) ≤ 2 λ and load ( i ) + load ( m 1 ) ≤ λ \operatorname{load}(i) + \operatorname{load}(m_1) \le\lambda load ( i ) + load ( m 1 ) ≤ λ then
Move all jobs from i i i to m 1 m_1 m 1
end if
while there exist distinct machine triplets { i 1 , i 1 + 1 , i 1 + 2 } \{i_1, i_1 + 1, i_1 + 2\} { i 1 , i 1 + 1 , i 1 + 2 } and { i 2 , i 2 + 1 , i 2 + 2 } \{i_2, i_2 + 1, i_2 + 2\} { i 2 , i 2 + 1 , i 2 + 2 } assigned only jobs with α j = 3 \alpha_j = 3 α j = 3 and load ( i 1 ) ≤ load ( i 2 ) ≤ λ 2 \operatorname{load}(i_1) \le\operatorname{load}(i_2) \le\frac{\lambda}{2} load ( i 1 ) ≤ load ( i 2 ) ≤ 2 λ do
Move all jobs from { i 2 , i 2 + 1 , i 2 + 2 } \{i_2, i_2 + 1, i_2 + 2\} { i 2 , i 2 + 1 , i 2 + 2 } to { i 1 , i 1 + 1 , i 1 + 2 } \{i_1, i_1 + 1, i_1 + 2\} { i 1 , i 1 + 1 , i 1 + 2 }
end while ▹ \triangleright ▹ Now at most m m m machines are used.
Denote by q : = m − ∑ i , load ( i ) > 0 1 q := m - \sum_{i,\operatorname{load}(i)>0} 1 q := m − ∑ i , load ( i ) > 0 1 the number of unused machines
for each job j ∈ C 3 j \in C_3 j ∈ C 3 do
Set α j ← γ j ( λ − 1 ) \alpha_j \leftarrow\gamma_j(\lambda- 1) α j ← γ j ( λ − 1 )
if w j ( α j ) ≤ λ q w_j(\alpha_j) \le\lambda q w j ( α j ) ≤ λ q or α j ≤ q \alpha_j \le q α j ≤ q then
Add j j j to C 1 ⊔ C 2 C_1 \sqcup C_2 C 1 ⊔ C 2 and re-apply previous steps (lines 1–13)
else
Add j j j to S 2 S_2 S 2 .
end if
end for
Remove unused machines so that only m m m machines in total remain
Sort the machines (contiguously) by load non-decreasingly