betaFeedback

WorksComputer Science

Contiguous Monotone Moldable Job Scheduling

Abstract

In this paper, we address the Contiguous Monotone Moldable Job Scheduling (CMMJS) problem, where a set of jobs must be scheduled on parallel machines to minimize the overall makespan. Each job is characterized by a processing time function mapping the number of assigned machines to a processing time, such that the corresponding work area function is non-decreasing. Building upon the framework and critical cases identified by Jansen and Ohnesorge (2026), we present an improved analytical approach that yields a tighter approximation ratio of 2e2e−1+ε≈1.4353+ε\frac{2\sqrt{e}}{2\sqrt{e}-1}+\varepsilon \approx 1.4353+\varepsilon with a running time of O(nmlog⁡1ε)O(nm\log \frac{1}{\varepsilon}). We prove that this worst-case analysis is essentially tight by providing a matching lower bound instance. This approximation ratio applies not only to contiguous scheduling but also to the non-contiguous variant of the problem. Finally, we demonstrate that our improved bounds extend naturally to heterogeneous environments; seamlessly integrating our results into an existing dual approximation framework for combined CPU/GPU scheduling by Germann~et~al.\ (2024) yields an improved overall approximation ratio of 2e2e−1+ε\frac{2\sqrt{e}}{2\sqrt{e}-1}+\varepsilon for the joint problem.

Introduction

In Contiguous Monotone Moldable Job Scheduling (CMMJS), we are given n∈Z>0n \in\mathbb{Z}_{>0} jobs and m∈Z>0m \in\mathbb{Z}_{>0} machines. Each job j∈[n]j \in[n] is associated with a function tj:[m]→Q>0t_j : [m] \to\mathbb{Q}_{>0} which assigns a number of machines to a processing time. Furthermore, the work area function wj:[m]→Q>0w_j : [m] \to\mathbb{Q}_{>0}, with wj(k):=tj(k)⋅kw_j(k) := t_j(k) \cdot k, defines the work area of a job jj, when assigned to kk machines. We assume that wjw_j is non-decreasing and tjt_j is non-increasing. A schedule is given by assigning every job jj to a number of machines αj∈[m]\alpha_j \in[m] and a starting time sjs_j. In any feasible schedule, the total number of machines assigned to jobs at any time must not exceed mm. A schedule is contiguous if for each job jj the machines assigned to it are consecutive, i.e., if jj is assigned to machines mj,…,mj+αj−1m_j,\ldots,m_j+\alpha_j-1 for some mj∈[m−αj+1]m_j \in[m-\alpha_j+1]. Our goal is to minimize the makespan of the schedule, i.e., max⁡j∈[n]sj+tj(αj)\max_{j\in[n]} s_j+t_j(\alpha_j). We denote the minimal makespan as OPT. For any machine i∈[m]i \in[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∈[mj,mj+αj)sj+tj(αj)\operatorname{load}(i):=\max_{j\in[n],i\in[m_j,m_j+\alpha_j)}s_j+t_j(\alpha_j).

Table 1: Practically efficient algorithms for Monotone Moldable Job Scheduling. The O~\widetilde{O} notation hides logarithmic factors in nn, mm, and 1/ε1/\varepsilon. Algorithms marked with (*) were originally designed for the non-contiguous case but can be adapted to the contiguous case [JO26].

RatioRuntimeContiguous?Author
32+ε\frac{3}{2}+\varepsilonO(nmlog⁡(1/ε))O(nm\log(1/\varepsilon))Yes*Mounié, Rapine, Trystram [20] [20]
32+ε\frac{3}{2}+\varepsilonO~(n/ε3)\widetilde{O}(n/\varepsilon^3)Yes*Jansen, Land [11] [11]
32+ε\frac{3}{2}+\varepsilonO~(n/ε)\widetilde{O}(n/\varepsilon)Yes*Grage, Jansen, Ohnesorge [5] [5]
32\frac{3}{2}O~(nm)\widetilde{O}(nm)NoWu, Zhang, Chen (2023) [WZC23]
1.4593+ε1.4593+\varepsilonO(nmlog⁡(1/ε))O(nm\log(1/\varepsilon))YesJansen, Ohnesorge [13] [JO26]
1.4353+ε1.4353+\varepsilonO(nmlog⁡(1/ε))O(nm\log(1/\varepsilon))YesThis Work

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 (32−ε)(\frac{3}{2}-\varepsilon)-approximation, unless P = NP [4, 14]; Under special assumptions there exist better polynomial-time approximations [3, 15] as well as a pseudo-polynomial (54+ε)(\frac{5}{4}+\varepsilon)-approximation algorithm with running time of O(nlog⁡n)⋅mf(1/ε)O(n\log n)\cdot mf(1/\varepsilon) [16], where f(⋅)f(\cdot) is a computable function. When the number of machines mm is bounded by a polynomial in nn, Jansen and Thöle presented a Polynomial Time Approximation Scheme (PTAS) [17] for the non-contiguous variant as well as a (32+ε)(\frac{3}{2}+\varepsilon)-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 tjt_j is monotone, the problem is still NP-hard [12], but the strict 32\frac{3}{2} lower bound no longer applies. Jansen and Land presented a Fully Polynomial Time Approximation Scheme (FPTAS) for the contiguous variant when (m>8nε)(m > 8^{\frac{n}{\varepsilon}}) [11] and with this generalized the PTAS for the non-contiguous variant [17]; However, the complexity of the PTAS is roughly nm2⋅102.4⋅1017nm^{2\cdot10^{2.4\cdot10^{17}}}, even for ε=12\varepsilon=\frac{1}{2}. A similar observation can be made for the pseudo-polynomial-time (54+ε)(\frac{5}{4}+\varepsilon)-approximation algorithm [16], where the time complexity resolves to Ω((mn)16134)\Omega((mn)^{16^{\frac{13}{4}}}) for ε=14\varepsilon=\frac{1}{4}. These large constants have motivated recent work to focus on practically efficient algorithms, i.e., algorithms with a running time of O(nmlog⁡(1ε))O(nm\log(\frac{1}{\varepsilon})) or better.

Mounié, Rapine, and Trystram presented a (32+ε)(\frac{3}{2}+\varepsilon)-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 32\frac{3}{2}-approximation algorithm. Just recently, Jansen and Ohnesorge [JO26] presented an algorithm with a worst-case ratio of roughly 1.4593+ε1.4593+\varepsilon for the contiguous variant. Note that the running time 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>8nε)(m > 8^{\frac{n}{\varepsilon}}), we can assume that mm is polynomially in nn 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] and α′<α≤m\alpha' < \alpha\le m, the monotony implies:

tj(α′)≤wj(α)α′=tj(α)αα′.(1)t_j(\alpha') \le\frac{w_j(\alpha)}{\alpha'} = t_j(\alpha)\frac{\alpha}{\alpha'}. \tag*{(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. 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 and runtime of O(nmlog⁡1ε)O(nm \log\frac{1}{\varepsilon}).

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 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, there exists an instance II for which Algorithm 1 returns a schedule with makespan ALG⁡(I)\operatorname{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.

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 nn 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∥Cmax⁡P\Vert C_{\max}) 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∥Cmax⁡P\Vert C_{\max}) 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 (32+ε)(\frac{3}{2}+\varepsilon)-approximation algorithm with running time O(n2mc4mg2)O(n^{2}m_{c}^{4}m_{g}^{2}). Later, Germann et al. [6] improved the running time to O(log⁡(nmcmg/ε)⋅n2mcmg)O(\log(nm_{c}m_{g}/\varepsilon)\cdot 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 for the combined CPU/GPU Scheduling problem.

Theorem 4. Let ε>0\varepsilon> 0. There exists a (2ε2ε−1+ε)(\frac{2\sqrt{\varepsilon}}{2\sqrt{\varepsilon}-1}+\varepsilon)-approximation algorithm for CPU/GPU Scheduling that runs in time O(log⁡(nmcmg/ε)⋅n2mcmg)O(\log(nm_{c}m_{g}/\varepsilon)\cdot 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}. 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 dd such that OPT≤d<(1+ε)OPT\mathrm{OPT} \le d < (1+\varepsilon)\mathrm{OPT}. For simplicity, we also assume that d=1d=1 (by scaling).

Given this, the algorithm in [JO26] partitions the jobs into a set of big jobs JB:={j∈[n]∣tj(1)>37}J_B := \{j \in[n] \mid t_j(1) > \frac{3}{7}\} and a set of small jobs JS=[n]∖JBJ_S = [n] \setminus J_B and focuses on scheduling the big jobs first. The key component of the algorithm is partitioning the big jobs JBJ_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) denotes the minimal machine assignment of job jj such that its processing time is at most xx, i.e., γj(x)=min⁡{α∈[m]∣tj(α)≤x}\gamma_j(x) = \min\{\alpha\in[m] \mid t_j(\alpha) \le x\}.

References

  1. [1]R. Bleuse, S. Kedad-Sidhoum, F. Monna, G. Mounié and D. Trystram. “Scheduling independent tasks on multi-cores with GPU accelerators”. In: Concurr. Comput. Pract. Exp. 27.6 (2015), pp. 1625–1638. DOI: 10.1002/CPE.3359.DOI
  2. [2]J. Du and J. Y. Leung. “Complexity of Scheduling Parallel Task Systems”. In: SIAM J. Discret. Math. 2.4 (1989), pp. 473–487. DOI: 10.1137/0402042.DOI
  3. [3]T. Decker, T. Lücking and B. Monien. “A 54-approximation algorithm for scheduling identical malleable tasks”. In: Theoretical Computer Science 361.2-3 (2006), pp. 226–240. DOI: 10.1016/j.tcs.2006.05.012.
  4. [4]M. Drozdowski. “On the complexity of multiprocessor task scheduling”. In: Bulletin of The Polish Academy of Sciences-technical Sciences 43 (1995), pp. 381–392.
  5. [5]K. Grage, K. Jansen and F. Ohnesorge. “Improved Algorithms for Monotone Moldable Job Scheduling Using Compression and Convolution”. In: Euro-Par 2023: Parallel Processing - 29th International Conference on Parallel and Distributed Computing. Lecture Notes in Computer Science. 2023. DOI: 10.1007/978-3-031-39698-4\_34.arxiv.org/abs/2303.01414
  6. [6]S. B. Germann, K. Jansen, F. Ohnesorge and M. Tutas. “3/2-Dual Approximation for CPU/GPU Scheduling”. In: 22nd International Symposium on Experimental Algorithms, SEA 2024. 2024. DOI: 10.4230/LIPIcs.SEA.2024.13.DOI
  7. [7]R. L. Graham. “Bounds on Multiprocessing Timing Anomalies”. In: SIAM Journal of Applied Mathematics 17.2 (1969), pp. 416–429.DOI
  8. [8]D. S. Hochbaum and D. B. Shmoys. “Using dual approximation algorithms for scheduling problems theoretical and practical results”. In: J. ACM 34.1 (1987), pp. 144–162. DOI: 10.1145/7531.7535.DOI
  9. [9]K. Jansen. “An EPTAS for Scheduling Jobs on Uniform Processors: Using an MILP Relaxation with a Constant Number of Integral Variables”. In: SIAM J. Discret. Math. 24.2 (2010), pp. 457–485. DOI: 10.1137/090749451. URL: https://doi.org/10.1137/090749451.
  10. [10]E. G. C. Jr., M. R. Garey and D. S. Johnson. “An Application of Bin-Packing to Multiprocessor Scheduling”. In: SIAM J. Comput. 7.1 (1978), pp. 1–17. DOI: 10.1137/0207001.DOI
  11. [11]K. Jansen and F. Land. “Scheduling Monotone Moldable Jobs in Linear Time”. In: 2018 IEEE International Parallel and Distributed Processing Symposium, IPDPS 2018, Vancouver, BC, Canada, May 21-25, 2018. IEEE Computer Society, 2018, pp. 172–181. DOI: 10.1109/IPDPS.2018.00027.DOI
  12. [12]K. Jansen, F. Land and K. Land. “Bounding the Running Time of Algorithms for Scheduling and Packing Problems”. In: SIAM J. Discret. Math. 30.1 (2016), pp. 343–366. DOI: 10.1137/140952636.DOI
  13. [13]K. Jansen and F. Ohnensorge. “A Practical 73/50 Approximation for Contiguous Monotone Moldable Job Scheduling”. In: 43rd International Symposium on Theoretical Aspects of Computer Science, STACS 2026. LIPICs. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026. DOI: 10.4230/LIPICS.STACS.2026.56.DOI
  14. [14]B. Johannes. “Scheduling parallel jobs to minimize the makespan”. In: J. Sched. 9.5 (2006), pp. 433–452. DOI: 10.1007/S10951-006-8497-6. URL: https://doi.org/10.1007/s10951-006-8497-6.
  15. [15]K. Jansen and L. Porkolab. “Linear-Time Approximation Schemes for Scheduling Malleable Parallel Tasks”. In: Proceedings of the tenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 1999). ACM/SIAM, 1999, pp. 490–498. URL: http://dl.acm.org/citation.cfm?id=314500.314870.
  16. [16]K. Jansen and M. Rau. “Closing the Gap for Pseudo-Polynomial Strip Packing”. In: 27th Annual European Symposium on Algorithms, ESA 2019. LIPICs. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019, 62:1–62:14. DOI: 10.4230/LIPICS.ESA.2019.62. URL: https://doi.org/10.4230/LIPICS.ESA.2019.62.
  17. [17]K. Jansen and R. Thöle. “Approximation Algorithms for Scheduling Parallel Jobs: Breaking the Approximation Ratio of 2”. In: Automata, Languages and Programming, 35th International Colloquium, ICALP 2008. Lecture Notes in Computer Science. Springer, 2008, pp. 234–245. DOI: 10.1007/978-3-540-70575-8\_20.DOI
  18. [18]H. Kellerer, U. Pferschy and D. Pisinger. Knapsack problems. Springer, 2004. ISBN: 978-3-540-40286-2. DOI: 10.1007/978-3-540-24777-7.DOI
  19. [20]G. Mounie, C. Rapine and D. Trystram. “A 3/2-Approximation Algorithm for Scheduling Independent Monotonic Malleable Tasks”. In: SIAM J. Comput. 37.2 (2007), pp. 401–412. DOI: 10.1137/S0097539701385995.

Paper details

vlnc:W_mj6wtdzw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents