Weighted Chairman Assignment and Flow-Time Scheduling
Abstract
Given positive integers , a fractional assignment and weights , we show that there exists an assignment so that for every and ,
This generalizes a result of Tijdeman (1973) on the unweighted version, known as the chairman assignment problem. This also confirms a special case of the single-source unsplittable flow conjecture with arc-wise lower and upper bounds due to Morell and Skutella (IPCO 2020). As an application, we consider a scheduling problem where jobs have release times and machines have closing times, and a job can only be scheduled on a machine if it is released before the machine closes. We give a -approximation algorithm for maximum flow-time minimization.
Keywords and phrases:
prefix discrepancy, flow-time scheduling, unsplittable flowCopyright and License:
2012 ACM Subject Classification:
Theory of computation Randomness, geometry and discrete structuresAcknowledgements:
We would like to thank R. Ravi for numerous discussions. The work was done during an internship of the first author at Microsoft Research.Editor:
Shubhangi SarafSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Let be positive integers. We say that a matrix is a fractional assignment if for every column , and that is an (integral) assignment if for every . Consider the following problem introduced by Niederreiter in 1972 [24, 25]: find the minimum value of such that for every positive integer and fractional assignment , there is an assignment so that for every row and column ,
This is known as the chairman assignment problem due to Tijdeman [27]: suppose states form a union and each state receives a value from being a member at year so that . Every year a union chairman has to be selected in such a way that at any year the accumulated number of chairmen from each state is proportional to its accumulated value . Niederreiter showed a bound of [24] which was subsequently improved by Meijer and Niederreiter to [22] and by Tijdeman to [26], who also showed that, for and any , via a family of examples with . The approaches of [22] and [26] are both based on an application of Hall’s theorem to a carefully constructed bipartite graph. Finally, Meijer matched this lower bound by showing [21]. Since then, there have been other proofs of this result through different approaches [27, 3, 16, 8]; see also the survey of Tijdeman [28].
We study the weighted chairman assignment problem where each has an associated weight and we want to bound for every and . All of the previous approaches in the unweighted setting rely on the fact that the increments to the integral assignment are integers and do not directly generalize to the weighted setting. Our main theorem generalizes an algorithm of Tijdeman [27] (see also Angel, Holroyd, Martin and Propp [3]) with a new analysis to show the following:
Theorem 1.
Given positive integers with , a fractional assignment and weights , there is a linear-time algorithm that computes an assignment so that for every and ,
The weighted chairman assignment problem gains renewed interest due to a conjecture by Morell and Skutella [23]: given a flow from a single source to multiple sinks with varying demands, there is an unsplittable flow where each sink should be served by a single path, such that the discrepancy between the two flows on each arc is at most the maximum demand. The weighted chairman assignment problem with weights can be modeled as a single-source unsplittable flow instance with demands (see Section 2), and therefore Theorem 1 with discrepancy bound would follow if the conjecture were true. When the demands are uniform, i.e., , the conjecture is true because by adding capacity constraints to the flow polytope we can find an integral flow which is automatically unsplittable and satisfies . Therefore, the discrepancy bound for the (unweighted) chairman assignment follows as a consequence. The weighted setting corresponds to nonuniform demands, where so far all linear programming techniques fall apart.
As an application, we consider the following scheduling problem. Suppose there are machines and jobs . Each machine has a closing time . Each job has a release time and a processing time . Job can be scheduled on machine if and only if . The flow-time of a job is defined as the time elapsed from its release to completion. The goal is to schedule jobs to machines to minimize the maximum flow-time of any job. This is a special case of the restricted assignment variant of maximum flow-time minimization, where each job has a subset of machines that it can be scheduled on. In the most general form of the problem, each job has a potentially different processing time on machines . Bansal, Rohwedder and Svensson [6] proved that a natural linear programming relaxation has integrality gap , and conjectured that an -approximation should be possible. We confirm this conjecture for the setting of machine closing times:
Theorem 2.
There is a -approximation algorithm for the maximum flow-time minimization problem in the setting of machine closing times.
Previously, a -approximation was known via a greedy algorithm (first-in-first-out, or FIFO) for the setting of identical machines where for all [7, 20], and this bound is known to be tight for FIFO [19]. We also show that FIFO has approximation ratio at least for the setting of closing times.
Furthermore, we give several lower bound constructions. We provide a construction simpler than Tijdeman’s [26] to establish a matching lower bound for the chairman assignment problem:
Proposition 3.
For any positive integer there exists a fractional assignment so that for any assignment , there exists some and for which
The assignment given in [26] that achieves yields a strict inequality and has the property that whenever . We give a construction showing that Tijdeman’s bound is tight under this additional constraint:
Proposition 4.
For any there exists a positive integer and a fractional assignment so that for any assignment satisfying whenever , there exists some and for which
Finally, we disprove a conjecture in [3] that one may obtain a bound of 1 for all intervals, not just prefixes:
Proposition 5.
There exist positive integers and a fractional assignment , so that for any assignment , there exist some and for which
In particular, this implies that we cannot hope to directly apply our rounding approach to obtain a 2-approximation for maximum flow-time minimization.
Organization
In Section 2, we discuss related work. In Section 3, we prove our main Theorem 1. In Section 4, we discuss connections to maximum flow-time scheduling and prove Theorem 2. In Section 5, we give lower bound constructions to prove Propositions 3, 4 and 5. In Section 6, we formulate some open questions.
2 Related work
Theorem 1 resolves a special case of a conjecture of Morell and Skutella [23] which can be formally stated as follows. Let be a directed acyclic graph with source , sink terminals and associated demands . We say a flow satisfies the demands if for every , and for every . We say a flow is unsplittable if for each there is a single path from to that carries units of flow, so that for every . Morell and Skutella conjectured the following:
Conjecture 6 ([23]).
For every flow satisfying the demands, there is an unsplittable flow such that for all .
They also showed the one-sided bound for all may be satisfied, thereby complementing the previously known one-sided bound for all of Dinitz, Garg and Goemans [12]. So far, Conjecture 6 has been established when the demands have the property that one divides another, i.e., [23] and for special digraphs such as acyclic planar digraphs [29]; see also [2] for stronger guarantees for series-parallel digraphs.
To see the connection with Theorem 1, note that given positive integers we may construct a directed acyclic graph consisting of paths of length starting from , with edges pointing at terminals along the way. Then any fractional assignment and weights induce a flow so that each terminal has demand and each prefix is captured by one of the arcs in a path, as illustrated in Figure 1. An unsplittable flow routes each demand to through a path , which corresponds to assigning to . Assuming Conjecture 6, such an assignment satisfies for all .
A variant of the chairman assignment problem is the carpooling problem [14, 1], where can be assigned to if and only if . The weighted carpooling problem, which remains open, can also be viewed as a special case of Conjecture 6 using a similar construction that connects terminal to paths for which :
Conjecture 7.
Let be positive integers and . For every fractional assignment , there is an assignment so that whenever , and for every and ,
Morell and Skutella [23] outlined the connection to maximum flow-time minimization and noted that Conjecture 7 would imply a 3-approximation for the restricted assignment setting. The best known approximation in polynomial time is due to Bansal and Kulkarni via iterated rounding [5]. Bansal, Rohwedder and Svensson [6] prove a bound of for Conjecture 7, leveraging a non-constructive argument from convex geometry by Banaszczyk [4], thereby showing that the natural linear programming relaxation for maximum flow-time minimization has integrality gap . For identical machines, a simple 3-approximation is known [7, 20]: sort the jobs by release times and assign them one by one to the machine with the least remaining processing time of jobs that have been assigned to it. The special case where release times are all zero corresponds to makespan minimization; the work of Lenstra, Shmoys and Tardos gives a 2-approximation algorithm via rounding [18]. Their approach also solves the Morell-Skutella conjecture for digraphs of diameter 2.
To the best of our knowledge, the weighted chairman assignment problem has not been studied before. The more general weighted carpooling problem fits within the broader framework of prefix discrepancy [6], and it is possible to derive a bound of for Conjecture 7 via a linear algebraic argument [10, 9]. Together with Banaszczyk’s result [4], the current best bound for Conjecture 7 is . The special case of Conjecture 7 where each column has at most two nonzero entries is known as the 2-sparse prefix Beck-Fiala problem and is equivalent to the general case up to a constant [6]. Proposition 4 shows that unlike Theorem 1, we cannot hope for a bound for Conjecture 7 for any even for .
For the online version of the chairman assignment problem, where columns of arrive one at a time and the assignment must be decided irrevocably, it is known that the best possible bound is for adaptive adversaries, attainable with a simple greedy algorithm [11], and the analysis readily generalizes for the weighted setting. On the other hand, the best possible bound independent of for the online version of the carpooling problem is [11]. For the online 2-sparse prefix Beck-Fiala problem, there is also an bound [17] and a lower bound [1] for oblivious adversaries. A recent line of work studies the online carpooling problem with recourse [15, 13], and it remains open to obtain a constant bound for the online chairman assignment problem with polylogarithmic recourse.
3 Proof of Theorem 1
Given with , denote . Let be a fractional assignment. We normalize so that , thereby assuming . For , denote by the element to which will be assigned, so that if and otherwise. For each and , denote
At time , the deadline of is defined as
| (1) |
which is set to (or ) if such does not exist.
The set of candidates at time is defined as
| (2) |
At time , the algorithm chooses a candidate with the earliest deadline. The detailed description is in Algorithm 1. We remark that if we only wanted a bound of in Theorem 1, simpler definitions of deadline and candidates where setting in both definitions would have been sufficient.
The feasibility of the algorithm follows from the lemma below.
Lemma 8.
For any , there always exists a candidate, i.e., .
Proof.
Since
it follows that a candidate always exists as
The following lemma justifies the definition of candidates:
Lemma 9.
For any and , .
Proof.
If has not been selected at any time up to , then and
Otherwise, let be the latest time such that . Then
where the second inequality follows from the fact that is a candidate at time .
Picking a candidate with the earliest deadline also ensures the upper bound:
Lemma 10.
For any and , .
Proof.
Define and assume towards contradiction that . We will need to study a carefully chosen time interval and the set of rows with deadline at most at time to derive a contradiction. Define
which by (1) is the first time that we pick some row with deadline later than .
Claim 11.
The time is well-defined.
Proof.
Let . Then, since and ,
where the last inequality holds for . Obviously has been selected by time , since otherwise . As such let be the latest time with , and thus
In particular, is well-defined.
Claim 12.
and for every .
Proof.
It follows from definitions of and that . For an arbitrary , it follows from the maximality of that
Therefore, .
Claim 13.
; in particular .
Proof.
For every ,
which implies . Thus, .
Claim 14.
for every .
Proof.
By the definition of and deadline, , which means . By the choice of in the algorithm, all candidates satisfy . In other words, . It follows from (2) that for every ,
Claim 15.
for every .
Proof.
For an arbitrary , if there does not exist with , then
where we used the fact that as . Otherwise, let be the latest time with . Then by the maximality of , we have
Proof of Theorem 1.
The bounds follow from Lemmas 9 and 10. It remains to show that the algorithm can be implemented in linear time. We may precompute for all via prefix sum, and we may update for all after the -th iteration. The deadlines may also be computed in linear amortized time by incrementing them each iteration until as .
4 Application for flow-time scheduling
Let be a set of machines, and be a set of jobs. Each job can be scheduled on a subset of machines . Each job has a processing time and release time . Let be the completion time of . Order the jobs by their release times . We want to schedule each job to a machine such that the maximum flow-time is minimized. Consider the following linear programming relaxation for this problem:
| (3) | ||||
Morell and Skutella [23] show that Conjecture 7 would imply the integrality gap of (3) is at most . Efficiently computing such an assignment would lead to a -approximation algorithm for maximum flow-time scheduling. It follows readily from their proof that upper-bounding for every machine and interval of jobs defined by suffices to prove the desired approximation ratio. We summarize this in the following lemma and give its proof for completeness.
Lemma 16 ([23]).
Let be positive integers and . If for every fractional assignment , there is an assignment so that whenever and
| (4) |
then the integrality gap of the linear programming relaxation (3) is at most . A polynomial time algorithm to compute such an assignment would lead to an -approximation algorithm for maximum flow-time scheduling.
Proof.
Denote . Let be the optimal solution to the linear program (3). Let be the minimum maximum flow-time. Suppose is the assignment satisfying (4). Let and . The total processing time of jobs assigned to machine and released between and is
where the first inequality follows from (4). The second inequality follows from the fact that the job of size has flow-time at least . The last inequality follows from the fact that . Suppose job is scheduled on . Let be the latest time before such that is idle when some job scheduled to is released (which exists because is idle when the first job scheduled to is released). Then, the completion time of is . The flow-time of is . Therefore, the maximum flow-time is at most .
Previously, a -approximation algorithm was known for identical machines [7, 20]. Combining Theorem 1 and Lemma 16, we get a -approximation algorithm for this setting, matching the current best approximation ratio asymptotically. Yet, their algorithm (FIFO) follows a much simpler greedy approach, which orders jobs by their release times and assigns them online to the machine with the least remaining processing time of jobs that have been assigned to it.
We study a variation where each machine has a closing time , and a job can be scheduled on machine only if . We begin by observing that FIFO has a lower bound for the setting of closing times (see Figure 2). We give a -approximation algorithm for the setting of closing times. We start by observing that Algorithm 1 has the following property.
Proposition 17.
Given , and a fractional assignment so that , there is a linear-time algorithm that computes an assignment so that and
Proof.
Note that for every , , since . Therefore, for every , , which means is not a candidate at time . Thus, the assignment returned by Algorithm 1 satisfies .
Lemma 18.
Given release times of jobs, closing times of machines, and a fractional assignment so that , there is a linear-time algorithm that computes an assignment so that and
Proof.
For every , define . Then, assignment satisfies . Applying Proposition 17 with and , we conclude that there exists an assignment satisfying , and thus satisfies . Moreover, for every and ,
Proof of Theorem 2.
5 Lower bounds
Proof of Proposition 3.
If we can simply take . Otherwise, let be defined as for and , for and otherwise (see below). Assume towards contradiction that there exists some assignment so that . If for some then already . Otherwise, and yet each must be assigned at least once, since . But there are only columns left, so one of must never be assigned, which is a contradiction.
Proof of Proposition 4.
Consider the fractional assignment below where there are columns, with repeating pairs of columns after the first. Assume towards contradiction that there exists some assignment so that for all . We have to assign , for otherwise already . Since , to keep the discrepancy of the first row bounded, we must assign and for . Then we are forced to assign for every because implies . Yet the second row sums to without ever being assigned, a contradiction.
Proof of Proposition 5.
A construction is given by for all where , which can be computationally verified to achieve interval discrepancy equal to 1.32. See Appendix A.
6 Open problems
We ask for a version with non-uniform weights which may shed light on the unrelated machines scheduling, where job has processing time on machine :
Conjecture 19.
Let be positive integers and . For every fractional assignment , there is an assignment so that for every and ,
The construction in Proposition 4 applied to also shows a lower bound of for all for this setting. The argument in [18] shows that the bound holds for the non-prefix version, i.e. .
We also formulate a weighted committee assignment problem:
Conjecture 20.
Let be positive integers and . For every so that for all , there is so that for all and
Conjecture 21.
Let be positive integers and . For every so that for all , there is so that for all , whenever , and
References
- [1] Miklós Ajtai, James Aspnes, Moni Naor, Yuval Rabani, Leonard J. Schulman, and Orli Waarts. Fairness in scheduling. In Proceedings of the Sixth Annual ACM–SIAM Symposium on Discrete Algorithms (SODA), pages 477–485. SIAM, 1995. URL: http://dl.acm.org/citation.cfm?id=313651.313796.
- [2] Mohammed Majthoub Almoghrabi, Martin Skutella, and Philipp Warode. Integer and unsplittable multiflows in series-parallel digraphs. In Proceedings of the 26th International Conference on Integer Programming and Combinatorial Optimization (IPCO 2025), volume 15620 of Lecture Notes in Computer Science, Baltimore, MD, USA, 2025. Springer. Also appears as arXiv preprint arXiv:2412.05182v2, July 22, 2025. doi:10.48550/arXiv.2412.05182.
- [3] Omer Angel, Alexander E. Holroyd, James B. Martin, and James Propp. Discrete low-discrepancy sequences, 2009. arXiv:0910.1077.
- [4] Wojciech Banaszczyk. On series of signed vectors and their rearrangements. Random Structures & Algorithms, 40(3):301–316, 2012. doi:10.1002/rsa.20373.
- [5] Nikhil Bansal and Janardhan Kulkarni. Minimizing flow-time on unrelated machines. In Proceedings of the Forty-Seventh Annual ACM Symposium on Theory of Computing, STOC ’15, pages 851–860, New York, NY, USA, 2015. Association for Computing Machinery. doi:10.1145/2746539.2746601.
- [6] Nikhil Bansal, Lars Rohwedder, and Ola Svensson. Flow time scheduling and prefix Beck–Fiala. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 331–342. ACM, 2022. doi:10.1145/3519935.3520077.
- [7] Michael A. Bender, Soumen Chakrabarti, and S. Muthukrishnan. Flow and stretch metrics for scheduling continuous job streams. In Proceedings of the 9th Annual ACM–SIAM Symposium on Discrete Algorithms (SODA), pages 270–279, San Francisco, CA, 1998. SIAM. URL: https://dl.acm.org/doi/10.5555/314613.314715.
- [8] Valérie Berthé, Olivier Carton, Nicolas Chevallier, Wolfgang Steiner, and Reem Yassawi. A dynamical view of Tijdeman’s solution of the chairman assignment problem. Combinatorics and Number Theory, 13(4):377–412, 2024. doi:10.2140/cnt.2024.13.377.
- [9] Imre Bárány. On the power of linear dependencies. In Building Bridges: Between Mathematics and Computer Science, volume 19 of Bolyai Society Mathematical Studies, pages 31–45. Springer, 2010.
- [10] Imre Bárány and V. S. Grinberg. On some combinatorial questions in finite-dimensional spaces. Linear Algebra and its Applications, 41:1–9, 1981.
- [11] Don Coppersmith, Tomasz J. Nowicki, Giuseppe A. Paleologo, Charles Philippe Tresser, and Chai Wah Wu. The optimality of the online greedy algorithm in carpool and chairman assignment problems. ACM Transactions on Algorithms, 7(3):37:1–37:22, 2011. doi:10.1145/1978782.1978792.
- [12] Yefim Dinitz, Naveen Garg, and Michel X. Goemans. On the single-source unsplittable flow problem. Combinatorica, 19(1):17–41, 1999. doi:10.1007/s004930050043.
- [13] Yuval Efron, Shyamal Patel, and Cliff Stein. A simple algorithm for dynamic carpooling with recourse. In Proceedings of the 2025 Symposium on Simplicity in Algorithms (SOSA), pages 196–201, 2025. arXiv preprint arXiv:2411.07553.
- [14] Ronald Fagin and John H. Williams. A fair carpool scheduling algorithm. IBM Journal of Research and Development, 27(2):133–139, March 1983. doi:10.1147/rd.272.0133.
- [15] Anupam Gupta, Vijaykrishna Gurunathan, Ravishankar Krishnaswamy, Amit Kumar, and Sahil Singla. Online discrepancy with recourse for vectors and graphs. In Proceedings of the 2022 ACM–SIAM Symposium on Discrete Algorithms (SODA), 2022. arXiv preprint arXiv:2111.06308. arXiv:2111.06308.
- [16] Alexander E. Holroyd and James Propp. Rotor walks and Markov chains. In Manuel E. Lladser, Robert S. Maier, Marni Mishna, and Andrew Rechnitzer, editors, Algorithmic Probability and Combinatorics, volume 520 of Contemporary Mathematics, pages 105–126. American Mathematical Society, Providence, RI, 2010. arXiv:0904.4507.
- [17] Janardhan Kulkarni, Victor Reis, and Thomas Rothvoss. Optimal online discrepancy minimization. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, pages 1832–1840, New York, NY, USA, 2024. Association for Computing Machinery. doi:10.1145/3618260.3649720.
- [18] Jan Karel Lenstra, David B Shmoys, and Éva Tardos. Approximation algorithms for scheduling unrelated parallel machines. Mathematical programming, 46(1):259–271, 1990. doi:10.1007/BF01585745.
- [19] Monaldo Mastrolilli. Notes on max flow time minimization with controllable processing times. Computing, 71(4):375–386, 2003. doi:10.1007/s00607-003-0029-z.
- [20] Monaldo Mastrolilli. Scheduling to minimize max flow time: Off-line and on-line algorithms. International Journal of Foundations of Computer Science, 15(2):385–401, 2004. doi:10.1142/S0129054104002480.
- [21] H. G. Meijer. On a distribution problem in finite sets. Indagationes Mathematicae, 35:9–17, 1973. doi:10.1016/1385-7258(73)90015-2.
- [22] H. G. Meijer and H. Niederreiter. On a distribution problem in finite sets. Compositio Mathematica, 25(2):153–160, 1972. URL: https://www.numdam.org/item/CM_1972__25_2_153_0/.
- [23] Sarah Morell and Martin Skutella. Single source unsplittable flows with arc-wise lower and upper bounds. In Proceedings of IPCO 2020, volume 12125 of Lecture Notes in Computer Science, pages 294–306. Springer, 2020. doi:10.1007/978-3-030-45771-6_23.
- [24] H. Niederreiter. On the existence of uniformly distributed sequences in compact spaces. Compositio Mathematica, 25(1):93–99, 1972. URL: https://www.numdam.org/item/CM_1972__25_1_93_0/.
- [25] Harald Niederreiter. A distribution problem in finite sets. In S. K. Zaremba, editor, Applications of Number Theory to Numerical Analysis, pages 237–248. Academic Press, New York, 1972. Proc. Symposium, Université de Montréal, 1971.
- [26] R. Tijdeman. On a distribution problem in finite and countable sets. Journal of Combinatorial Theory, Series A, 15:129–137, 1973. doi:10.1016/S0097-3165(73)80002-0.
- [27] Robert Tijdeman. The chairman assignment problem. Discrete Mathematics, 32(3):323–330, 1980. doi:10.1016/0012-365X(80)90269-1.
- [28] Robert Tijdeman. A progress report on discrepancy. Astérisque, pages 175–185, 1982.
- [29] Vera Traub, Laura Vargas Koch, and Rico Zenklusen. Single-source unsplittable flows in planar graphs. In Proceedings of the 2024 Annual ACM–SIAM Symposium on Discrete Algorithms (SODA), pages 639–668. SIAM, 2024. doi:10.1137/1.9781611977912.24.
Appendix A Computer program
We use the following Julia function to verify Proposition 5:
