WorksComputer Science
Weighted Flow Time Does Not Admit Constant-Competitive Randomized Algorithms
Abstract
We study online preemptive scheduling on a single machine with the objective of minimizing the total weighted flow time. Bansal and Chan (SODA 2009) showed that no deterministic online algorithm is -competitive for this problem. We show that no randomized online algorithm is -competitive against an oblivious adversary either. This settles the remaining case of the long-standing question whether the problem admits an -competitive online algorithm. Quantitatively, every randomized online algorithm has a competitive ratio in , where is the number of jobs and , , and are the ratios of the largest to the smallest job weight, size, and density (weight divided by size), respectively. The lower bound also holds with high probability, with the same asymptotic dependence on the instance parameters. For every and every randomized online algorithm, there is an instance on which the cost of the algorithm is at least times the optimal cost with probability at least . Both lower bounds hold even if the algorithm knows in advance the size and weight of every job in release order and, for any fixed , every interarrival time up to a factor of .
Introduction
In online scheduling, jobs arrive over time and must be scheduled without knowledge of the future. A fundamental objective is the total weighted flow time, that is, the total time that the jobs spend in the system, weighted by their importance [35]. We study this objective on a single machine with preemption. Each job has a release time , a size , and a weight , all of which become known at time . The machine processes at most one job at a time and may interrupt a job and resume it later. If job completes at time , its flow time is , and the cost of a schedule is its total weighted flow time . An online algorithm decides at each time which job to process, knowing only the jobs released so far, and it is -competitive if its (expected) cost is at most times the optimal cost on every instance.
With unit weights, the online rule that always processes a job with the shortest remaining processing time (SRPT) is optimal [37]. Non-uniform weights make the problem much harder. Even the offline problem is strongly NP-hard [LLLR84], and a polynomial-time approximation scheme [2] was found only after a long line of work [15, 9, 19, 36, 11].
For the online problem, the best known upper bounds on the competitive ratio grow logarithmically with the parameters of the instance. Let , , and be the ratios of the largest to the smallest job weight, size, and density , respectively. The first nontrivial algorithm, by Chekuri, Khanna, and Zhu [16], is -competitive and needs to know in advance. Bansal and Dhamdhere [8] gave an -competitive algorithm. Azar and Touitou [5] gave - and -competitive algorithms and combined them with the algorithm of Bansal and Dhamdhere into an -competitive deterministic algorithm.
Pruhs, Sgall, and Torng [35] called the existence of an -competitive algorithm perhaps the most intriguing open question about flow time in online scheduling. As Bansal and Chan [7] note, it was widely believed that such an algorithm exists. They showed, however, that every deterministic online algorithm has a competitive ratio in
Their proof starts from the trivial lower bound of one and improves it step by step, using an adaptive adversary that chooses the next jobs in response to the algorithm’s scheduling decisions. By contrast, a randomized algorithm is evaluated against an oblivious adversary, which fixes the instance in advance, without knowing the algorithm’s random choices. The adaptive construction of Bansal and Chan [7] therefore does not apply to randomized algorithms.
A lower bound for deterministic algorithms does not settle the randomized case, because randomization is provably powerful in preemptive online scheduling. For example, when job sizes remain unknown until completion (so-called nonclairvoyant scheduling), every deterministic algorithm for unweighted flow time on a single machine has a competitive ratio in , where is the number of jobs [32]. Yet a randomized version of the multilevel feedback algorithm [28] is -competitive [12], which is best possible up to a constant factor [32].
For weighted flow time on a single machine, the best lower bound for randomized algorithms that we are aware of is [16, 18]. Thus it has remained open whether a randomized online algorithm can be -competitive.
Our Results
We answer this question negatively.
Theorem 1.1. No randomized online algorithm for minimizing weighted flow time on a single machine is -competitive against an oblivious adversary. More precisely, for every , there is a probability distribution over finitely many instances such that every deterministic online algorithm satisfies .
Here denotes the weighted flow time of the schedule that produces on the instance , and is the optimal weighted flow time of . By Yao’s principle [38], the second statement implies the first. Thus, even with randomization, the competitive ratio must grow with the parameters of the instance. Our construction makes this dependence explicit in terms of , , , and the number of jobs. All logarithms are to base 2.
Theorem 1.2. For all , every randomized online algorithm for weighted flow time has a competitive ratio in
against an oblivious adversary on instances with at most jobs and weight, size, and density ratios at most , , and , respectively.
The minimum reflects that our hard instances simultaneously have large weight, size, and density ratios and many jobs. For the three ratios this cannot be avoided, since the -competitive algorithm of Azar and Touitou [5] is -competitive as soon as one of them is bounded. If only one parameter is restricted, then Theorem 1.2 gives the lower bound in terms of the weight ratio and the lower bounds , , and in terms of the size ratio, the density ratio, and the number of jobs.
Our lower bound also holds with high probability, with the same dependence on the parameters.
Theorem 1.3. There is an absolute constant such that, for every and every randomized online algorithm , there is an instance on which incurs cost at least with probability at least . This instance has weight ratio at most , and its size ratio, density ratio, and number of jobs are at most .
None of these lower bounds relies on uncertainty about the jobs themselves. In our hard distributions, the sizes and weights of all jobs are fixed, and only the times between consecutive releases are random, each up to a factor of for an arbitrary .
Theorem 1.4. For every , there is a constant such that the following holds for every . There are jobs with sizes , weights , and independent random variables with finitely many values, where each takes values in for some , with the following property. Let be the random instance in which the th job has release time . Then every deterministic online algorithm satisfies
The weight ratio of is at most , and its size ratio, density ratio, and number of jobs are at most .
The algorithm may depend on , on the sizes and weights, and on the distributions of the interarrival times . Both bounds therefore hold even if all of these are known in advance. The only uncertainty is then a factor of in each interarrival time, and hence also in each release time, because every release time is a sum of interarrival times.
Technical Overview
It suffices to construct, for every , a distribution over instances on which every deterministic online algorithm has expected cost at least times the expected optimal cost. Such a distribution cannot react to the algorithm, so it cannot choose later jobs based on which earlier jobs remain unfinished. Instead, our distributions hide the time at which the algorithm’s active weight, the total weight of released but uncompleted jobs, is compared with the minimum possible active weight.
Active weight at a hidden time. Weighted flow time is the integral of the active weight over time. An algorithm whose active weight is always at most times the minimum possible active weight at that time is therefore -competitive. Conversely, Becchetti, Leonardi, Marchetti-Spaccamela, and Pruhs [13] showed that every -competitive deterministic online algorithm essentially has this property, as long as nearly finished jobs are not counted, using a stream of short, dense jobs. We use this converse direction. We first create a large expected gap in active weight at a hidden time and then use such a stream to make this gap persist long enough to dominate the weighted flow time. Bansal and Chan [7] use the same conversion.
Hard terminal distributions. Our building blocks are terminal distributions over pairs of instances and times, where is later than all release times in . The algorithm sees the jobs of as they arrive, but is not given . Let be the minimum active weight at among all feasible schedules. Online, we count only robust jobs, whose remaining size at is at least . These jobs form the robust backlog and cannot finish before . We cap their total weight at . A terminal distribution is -hard if and every deterministic online algorithm has expected capped robust backlog at least . We call the gap and the cap.
Flooding. A -hard terminal distribution yields the lower bound by flooding. Starting at , a long stream of jobs of weight and density keeps the machine busy. Until the algorithm has spent one unit of processing on old jobs, its robust backlog remains unfinished. Afterwards, the delayed stream jobs have total weight at least . Hence the active weight of the algorithm never drops below its capped robust backlog at while the stream lasts. An offline schedule can instead leave weight unfinished and process each stream job immediately, which keeps its active weight at . A sufficiently long stream makes this gap dominate the costs before and after it.
It thus suffices to construct -hard terminal distributions with arbitrarily large gap . We start from the trivial -hard distribution that consists of a single job of size and weight , released at time , with terminal time , and we alternate two operations, amplification and averaging. Both build on the following way of combining copies of a hard distribution.
Copying and scaling. We concatenate independent samples of a hard distribution, starting copy at the terminal time of copy and stretching its times and sizes by a factor . Measured at this scale, its robust backlog consists of jobs with remaining size at least . All later copies together have duration and total size less than , so this backlog survives them even if an algorithm only works on the backlog and not on the later copies. Conditioned on the earlier copies, copy remains a fresh sample, and later copies arrive at or after its terminal time. Thus its capped robust backlog has conditional expectation at least , even though the algorithm adapts to the past. An offline schedule can process each copy in its own window, leaving expected weight at most per copy.
Amplification. We take copies of a -hard distribution and, immediately after them, release a heavy job of weight whose size is at least the total size of all copies. The new terminal time is one of checkpoints after the release of , where checkpoint leaves enough time to complete and copies . We choose the checkpoint at random, with for . An offline schedule that completes and copies by leaves only jobs of the other copies. Each of these copies leaves expected weight at most , so the schedule leaves expected weight at most . At the earliest checkpoint , this bound is , and it is better to complete all copies and leave only , of weight . The offline schedule therefore leaves expected weight at most , and one unit less if . Averaged over , the schedule leaves expected weight at most at the terminal time of the new instance.
The online algorithm faces a dilemma at every checkpoint . If it has nearly finished by , it had too little time for the robust backlog of copy , which then survives at and at all earlier checkpoints . Since is then also nearly finished at the later checkpoints , the algorithm holds the robust backlogs of all copies at , each of expected capped weight at least , whereas the offline schedule leaves expected weight at most per copy. Otherwise itself is still robust at and counts with its weight . In this case, the algorithm may have used the time that it did not spend on to clear the robust backlogs of some of the copies . The weight of makes up for the cleared backlogs in expectation, because each of them counts for at most its cap and the checkpoint probabilities halve with each index. Hence the expected capped robust backlog at the terminal time of the new instance is at least . Compared with the offline bound at the same time, the new distribution improves the gap by at least a factor of , where .
For example, start with the -hard single-job distribution. Then , and are chosen with probabilities , respectively. At the earliest checkpoint , an offline schedule can finish all three copies and leave only , of weight . The minimum active weight at is thus at most , , and , respectively, and at most in expectation. Online, the robust backlog capped at 4 has expectation at least . Dividing all weights by gives a gap of at least , slightly more than the factor from above.
Averaging. Amplification improves the gap but increases the cap, making the next improvement exponentially smaller. Averaging brings the cap back down. Given a -hard distribution, it concatenates copies and divides all weights by . Their capped robust backlogs need not be independent, but have conditional expectations at least . A second-moment bound shows that their average, capped at , has expectation at least . Thus we can reduce the cap to while losing arbitrarily little from the gap.
Iterative construction. We fix the cap and alternate amplification and averaging. Since the gap is at least 1, amplification increases it by at least , and averaging loses at most while returning the cap to at most . Each round therefore adds at least to the gap, which reaches after rounds. Each round combines copies, which gives the bounds on , , , and in Theorem 1.2.
Comparison with the deterministic lower bound. Our construction builds on the gap amplification technique of Bansal and Chan [7], and its deterministic ingredients appear there in adaptive form. Bansal and Chan measure active weight using jobs with large remaining size, run subinstances at decreasing scales, release a final heavy job, and then also flood the instance with a stream of dense jobs. Their adversary, however, observes the algorithm. It ends each subinstance when the algorithm has fallen behind, and after the heavy job it chooses the time at which the gap is measured depending on how much of this job the algorithm has processed. An oblivious adversary can make neither choice, and three new ideas replace them. First, hardness is a property of a distribution with a hidden terminal time, and it bounds the offline and the online active weight separately in expectation. This property survives copying, because a fresh sample remains hard for an algorithm that has adapted to all earlier samples. Second, a random checkpoint with halving probabilities replaces the adaptive choice of the time after the heavy job. No matter how the algorithm divides its time between the heavy job and the copies, the weight of the unfinished heavy job makes up in expectation for the backlogs that the algorithm clears instead. Third, this exchange is possible only if each copy contributes a bounded backlog, which is the role of the cap. Amplification increases the cap far more than the gap, so it cannot simply be repeated, and averaging restores the cap at an arbitrarily small loss in the gap.
Further Related Work
On a single machine, a constant competitive ratio is known for the special case of total stretch, in which the weight of every job is the reciprocal of its size. Here SRPT is 2-competitive [33], although none of the three ratios is bounded.
For unit weights, SRPT is -competitive on identical machines, which is best possible for , even for randomized algorithms [30]. With weights, every randomized online algorithm on identical machines has a competitive ratio in [16].
On a single machine, a constant competitive ratio becomes possible with speed augmentation [27, 34], where the algorithm runs on a slightly faster machine than the one used by the optimal schedule. On a machine of speed , the Highest Density First rule, which always processes a released and uncompleted job of largest density, is -competitive for every constant [BIMPD06]. With speed augmentation, constant competitive ratios for weighted flow time also extend to unrelated machines [14, 1, 17, 26]. Other relaxations help as well. An algorithm that may reject jobs of an -fraction of the total weight can be -competitive on unrelated machines, even without preemption [31]. If the machine can vary its speed at an energy cost, then there is an -competitive algorithm for weighted flow time plus energy on a single machine [10].
Nonclairvoyant algorithms also achieve constant competitive ratios for weighted flow time with speed augmentation, both on a single machine [8] and on unrelated machines [25]. Im, Kulkarni, and Munagala [24] introduced the more general polytope scheduling problem, in which the processing rates of the jobs are subject to arbitrary packing constraints. For weighted flow time, the nonclairvoyant Proportional Fairness algorithm is -competitive with speed on broad subclasses of this problem [24], whereas on general instances, every nonclairvoyant deterministic algorithm needs polylogarithmic speed to be -competitive [24]. Between the clairvoyant and the nonclairvoyant setting, another line of work studies total flow time when the algorithm knows only estimates of the job sizes [3, 4 GKPW26, 21].
Preliminaries
An instance is a finite nonempty set of jobs. We identify each job with the triple of its release time , size , and weight , so an algorithm receives no information about a job beyond these parameters. For a set of jobs, let and . For , let and be the instances obtained from by dividing and multiplying all weights by , respectively.
A schedule of assigns to each job a (measurable) rate function such that for , for all , and . A schedule may thus share the machine among several jobs. This gives an online algorithm more power, and it does not change the optimum, because processing at each time an active job whose completion time in a given schedule is earliest, that is, the earliest-deadline-first rule with these completion times as deadlines, completes no job later. The remaining size of at time is . Job completes at the first time at which its remaining size is zero ( if there is no such time), and it is active at time if . The active weight at time is the total weight of the jobs that are active at time , and the weighted flow time of the schedule is its integral over time, that is,
and denotes the optimum weighted flow time for instance .
A deterministic online algorithm maps every instance to a schedule of subject to non-anticipation, which requires that for every and all instances and that contain the same jobs with release times before , the schedules and assign the same rates to these jobs during . In other words, the decisions of before time depend only on the jobs released before , including their sizes and weights. In particular, these jobs have the same remaining sizes at time in and in . We write for the weighted flow time of .
A randomized online algorithm is a probability distribution over deterministic online algorithms such that is a random variable for every instance when . It is -competitive (against an oblivious adversary) if for every instance . We use the easy direction of Yao’s principle [38].
Lemma 2.1 (Yao’s principle). Let be a probability distribution over finitely many instances, and let be such that every deterministic online algorithm satisfies . Then for every randomized online algorithm , there is an instance in the support of with .
Hard Terminal Distributions
We first define hardness at a hidden terminal time and show how it yields a lower bound for weighted flow time. This reduces Theorem 1.1 to the construction of hard terminal distributions in § 4.
A terminal instance is a pair of an instance and a terminal time such that all jobs of are released before . A terminal distribution is a probability distribution over finitely many terminal instances. An online algorithm processes only , so its schedule does not depend on . The algorithm may know the distribution in advance. Since and can be correlated, the jobs it sees may reveal information about .
For a terminal instance , let be the minimum active weight at time over all schedules of . A job is robust at time in a schedule if its remaining size at is at least 1. For a deterministic online algorithm , the robust backlog of at time is the set of jobs of that are robust at time in . These jobs are active at time , and none of them can be completed before time . For , the capped robust backlog is
Definition 3.1. Let . A terminal distribution is -hard if
(i) and
(ii) for every deterministic online algorithm $A.
We call the gap and the cap.
The cap is needed for amplification (§ 4.2). The following observation gives the starting point of our construction and two basic properties of hardness.
Observation 3.2. The following statements hold.
(a) Let consist of a single job with release time 0, size 2, and weight 1, and let . The terminal distribution supported on the single terminal instance is -hard for every .
(b) If is -hard, then is -hard for all and .
(c) Let and , and let be a terminal distribution such that and for every deterministic online algorithm . Then the distribution of for is -hard.
Proof. (a) No schedule completes the job by time 1, and in every schedule its remaining size at time 1 is at least 1. Hence and .
(b) The offline condition in Definition 3.1(i) involves neither the gap nor the cap, so it carries over from to . For the online condition in Definition 3.1(ii), note that , so every deterministic online algorithm and every terminal instance satisfy . Taking expectations gives .
(c) Since , we have . Let be a deterministic online algorithm. As need not make the same scheduling decisions on and , we apply the assumption to the algorithm that on input runs on and uses the same rates, that is, . Since and have the same release times, satisfies the non-anticipation condition. The robust backlogs of on and of on consist of the same jobs up to the scaling of their weights, so . By assumption, the right-hand side has expectation at least . ∎
Flooding. The following lemma turns a gap in active weight at the terminal time into a gap in weighted flow time by releasing a long stream of short, dense jobs. Such streams are a standard tool in lower bound constructions for flow time objectives [32, 13, 7, 4, 20, 21]. In our version for terminal distributions, the stream does not depend on the algorithm.
Lemma 3.3 (Flooding). Let be a terminal instance, let , and let be a positive multiple of . Construct instance by adding jobs of size and weight at times to .
(i) Every deterministic online algorithm satisfies .
(ii) The optimum satisfies .
Proof. Call the jobs of old and the added jobs stream jobs.
(i) Fix . Since the stream starts at , non-anticipation implies that each old job has the same remaining size at in and . For , let be the processing that the old jobs receive during . If , every job in is still active at time , so the active weight at this time is at least . If , the stream jobs released by time have total size and receive at most processing. Their total remaining size therefore exceeds . More than stream jobs are active, with total weight greater than . Thus the active weight stays at least throughout the stream. Integration over time gives
(ii) Until time , follow a schedule that leaves weight unfinished. Then, process every stream job immediately after its release, and after the stream finish the remaining old jobs. The old jobs contribute at most before , exactly during the stream, and at most afterwards. The stream jobs contribute . Adding these terms proves the bound. □
It remains to find hard terminal distributions with arbitrarily large gaps. Their existence is our main technical result, which we prove in § 4.
Theorem 3.4. For every , there is a -hard terminal distribution with .
Before that, we show that flooding such a distribution yields Theorem 1.1.
Proof of Theorem 1.1. Let , and take a -hard terminal distribution from Theorem 3.4. Since its support is finite, there is a constant such that for every in the support of . Apply Lemma 3.3 with the same length to every terminal instance in , where is a positive multiple of and . For the resulting distribution over finitely many instances, hardness and the two bounds of the lemma give
for every deterministic online algorithm . This proves the distributional statement. For a randomized online algorithm , Lemma 2.1 therefore gives an instance with . □
Constructing Hard Terminal Distributions
We prove Theorem 3.4 by alternating two operations on hard terminal distributions. Amplification (§ 4.2) multiplies the gap by for a small that depends on the cap, but it increases the cap. Averaging (§ 4.3) reduces the cap to the input gap at an arbitrarily small loss in the gap. Both operations concatenate independent copies at decreasing time scales.
Copying a Terminal Distribution
Let be a terminal distribution. A bound for is a number such that and for every terminal instance in its support. The concatenation of copies of stretches the th sample in time and size by a factor . We define these factors backwards, together with numbers that bound both the duration and the total size of the later copies , and we choose larger than twice .
Definition 4.1. Let be a terminal distribution with a bound , and let be a positive integer. Set and, for , define and . Let . Let be independent samples from , and set and for . For each job , copy contains a job with release time , size , and weight . The concatenation of copies of is the union of the copies, and is its end.
By construction, for every , we have
where the first identity also holds for . In particular, will bound the duration and the total size of all copies (Figure 1).

Figure 1. Copying a terminal distribution (Lemma 4.2), not to scale. The copies after copy take at most time, so every job of keeps a remaining size of at least until .
Lemma 4.2. Let be a terminal distribution, and let be the concatenation of copies formed from independent samples from , with end , as in Definition 4.1.
(i) The jobs of copy are released during . For every , copies have total size at most , and . In particular, and .
(ii) There is a schedule of in which, for every , the jobs of copy that are active at time have total weight . If is -hard, then .
(iii) Suppose that is -hard, and let be a deterministic online algorithm. For , let be the set of jobs of copy whose remaining size at time in is at least , and let . Then is determined by . For every realization of the preceding samples of positive probability, it holds that
Moreover, every job of has remaining size at least at time .
Proof. (i) A job of copy is released at time with , hence during . For each , copy has total size , and . Summing over and using (1), we find that copies have total size at most and that . The case gives and .
(ii) During , process copy by a schedule of that leaves weight unfinished at , stretched in time and size by , and do not process copy afterwards. Stretching preserves feasibility, and the time windows are disjoint, so these schedules combine into a schedule of that leaves weight of each copy unfinished at . If is -hard, then is a sample from a hard distribution, so by Definition 3.1(i).
(iii) Fix and a realization of the first samples of positive probability. This fixes copies , their union , and the time . With these copies fixed, the behavior of on copy defines a deterministic online algorithm for the unstretched sample . Since is a fresh sample from , the hardness of applies to .
To define , let for a job , and let for an instance . Thus copy is . On input , algorithm runs on and, at time , gives each job the rate that gives at time . Processing that assigns to becomes idle time for . Since time and sizes are stretched by the same factor , these rates form a schedule of , and the remaining size of at time in is the remaining size of at time in , divided by . Moreover, is a deterministic online algorithm. If two inputs contain the same jobs with release times before , then the instances on which runs contain the same jobs with release times before , so inherits non-anticipation from .
Now consider the input . The instance consists of copies . It contains the same jobs as with release times before , because copies are released at or later by (i). By non-anticipation, the jobs of copy therefore have the same remaining sizes at time in and in . Since , a job of copy belongs to if and only if has remaining size at least at time in , that is, if and only if . As preserves weights, we obtain . Since depends only on the first samples, is determined by the first samples.
Since does not depend on and the samples are independent, is the capped robust backlog of a fixed algorithm on a fresh sample from . As is -hard, applying Definition 3.1(ii) to yields
Finally, a job of has remaining size at least at and receives at most processing before . Its remaining size at is therefore at least .
Amplification
Amplification appends a heavy job to copies of a terminal distribution and hides the terminal time among checkpoints after the release of this job (Figure 2). Let be an integer and . Let be a terminal distribution with a bound , and let be the concatenation of copies of (Definition 4.1), with the notation of § 4.1 for . We add a job with release time , size , and weight , and we define for each the checkpoint . Since , we have . By Lemma 4.2(i), copies have total size at most , and all copies together have total size at most . Hence the time from to suffices to complete either and copies , or all copies.

Figure 2. Amplification for and , before weight normalization (not to scale). By the checkpoint , a schedule can complete and then the remaining jobs of copies (dashed). The terminal time is , where with the probability shown above .
The terminal time for the new distribution is the checkpoint for a random index , drawn independently of the copies with for all . Equivalently, is the number of fair coin flips up to and including the first head, truncated at . Thus, for every ,
because the left-hand side equals and for , and both sides vanish for . Moreover, and . Let . The amplified terminal distribution is the distribution of .
Lemma 4.3. Let be an integer, , and . If is -hard, then is -hard. Moreover, every terminal instance in its support satisfies .
Proof. All jobs of are released by time , and the support is finite, so is a terminal distribution. We show that, before the weights are divided by ,
for every deterministic online algorithm , where the expectations are over the copies and .
We first derive the lemma from (3). Since , we have . As , it follows that
Raising the cap in (4) from to can only increase the capped robust backlog, so
With (3), this verifies the assumptions of Observation 3.2(c) for the distribution of , with , gap , and cap . Here because . Hence , the distribution of , is -hard.
Proof of (3a). Follow the schedule of Lemma 4.2(ii) until , which leaves weight of copy unfinished at , where . By the choice of , it can then complete during either and the remaining jobs of copies , or all remaining jobs of . Thus
In particular, for every realization of the copies and . Dividing the weights by gives for every terminal instance in the support of , which is the second claim of the lemma.
To bound the expectation, fix . Since is independent of the copies, for every . As the minimum is at most each of its arguments, taking conditional expectations yields
Averaging over and using gives
Proof of (4). Fix a deterministic online algorithm . Let denote the tuple of independent samples that form the copies, and fix a realization of . The variable affects only the terminal time, so the schedule is fixed, and only the checkpoint at which we evaluate it is random. Let and be as in Lemma 4.2(iii). Since is released at time , non-anticipation implies that and process the jobs of identically before . Hence every job of has remaining size at least at also in .
Let be the largest index such that is not robust at , with if is robust at every checkpoint. The remaining size of does not increase over time and , so is robust at if and only if .
We claim that for every , all jobs of are robust at every checkpoint with . Indeed, is not robust at , so it received more than processing during , which leaves less than processing for the jobs of . Every job of therefore has remaining size greater than at , and hence also at every earlier checkpoint with .
Now fix a checkpoint . By the claim, its robust backlog contains the sets with , and it contains if . The sets and are pairwise disjoint, and , so the weight of the robust backlog at is at least
We also have . Indeed, since , the sum is at most if , and at most if , because then . The capped robust backlog is the minimum of and the weight of the robust backlog at , and therefore at least .
We now take expectations, first over with fixed. The copies, the schedule, the index , and the values remain fixed, and the distribution of is unchanged because is independent of . In , a copy contributes whenever , and contributes whenever , so
where the final inequality uses (2) and for every that . We now average over . Since is determined by the first samples, averaging the conditional bound of Lemma 4.2(iii) over the first samples gives for every . The law of total expectation therefore yields
This is (3b) and thus completes the proof.
Averaging
For a terminal distribution with a bound and a positive integer , the averaged terminal distribution is the distribution of the terminal instance , where is the concatenation of copies of (Definition 4.1), formed with the bound , and is its end.
Lemma 4.4. Let be a -hard terminal distribution and let be a positive integer. For , we have and for every deterministic online algorithm . In particular, if , then is -hard.
Proof. All jobs of are released before by Lemma 4.2(i), so is a terminal distribution. For every instance , we have . Moreover, for a deterministic online algorithm , the algorithm with is a deterministic online algorithm with , as in the proof of Observation 3.2(c). It therefore suffices to show that
for every deterministic online algorithm . The first bound holds because Lemma 4.2(ii) gives with .
To show the second bound, fix a deterministic online algorithm , and let and be as in Lemma 4.2(iii). Every job of has remaining size at least at , so the robust backlog at contains the pairwise disjoint sets . Since , we obtain
where . It remains to show that .
We bound by induction over the copies. For , let . We show that for all . The case holds because . Now let . Since and is nondecreasing, we have . Squaring and using and , we obtain
Fix a realization of the first samples of positive probability. By Lemma 4.2(iii), these samples determine and hence the value . By the same lemma, the conditional expectation of given these samples is at least . Therefore
By the law of total expectation, the term has nonpositive expectation. Thus, taking expectations in the bound on gives by the induction hypothesis. Finally, for , Cauchy–Schwarz gives .
Iterative Construction of a Hard Terminal Distribution
It remains to combine the two operations.
Proof of Theorem 3.4. Fix and let . This will be the cap of the distributions constructed below, and the last of them will have gap . Set
Here and are the parameters of Lemma 4.3, and is chosen so that averaging an input with cap loses at most by Lemma 4.4. Since and , both and are positive integers. Let be the single-job distribution of Observation 3.2(a), and for define iteratively the distribution
We call one amplification followed by one averaging a round, so is the number of rounds. Both operations depend on a bound for their input distribution through the scales of Definition 4.1. Lemmas 4.3 and 4.4 hold for any bound, and we fix specific bounds in § 5.1.
We show by induction on that is -hard, where . For , this is Observation 3.2(a). Let , and suppose that is -hard. By Lemma 4.3, amplification gives gap and cap . By Lemma 4.4, averaging then loses at most from the gap and reduces the cap to . Since , the gap of is at least
Its cap satisfies , because and . By Observation 3.2(b), is -hard. Finally, we have , which proves the theorem.
Quantitative Bounds and Extensions
We bound the parameters of our instances and prove Theorem 1.2 in § 5.1. We then prove the high-probability bound of Theorem 1.3 in § 5.2 and the bound for nearly known instances of Theorem 1.4 in § 5.3.
Parameter Bounds
For an instance , let and be its weight and size ratios. Let be its density ratio, and let be its number of jobs. Bounding these parameters in the construction of § 4.4 gives the following refinement of Theorem 1.1.
Theorem 5.1. There is a constant such that for every , there is a probability distribution over finitely many instances such that every instance in its support satisfies
and every deterministic online algorithm satisfies .
:::`
Proof. Let , , , , , and be as in § 4.4. We obtain by flooding (Lemma 3.3) with a common stream length chosen below. The stream jobs have weight and size .
Weights. All weights in lie in . Indeed, the initial weight is . Each round adds a heavy job of weight and divides all weights by , where is the normalization of amplification. The claim follows by induction, since . The stream weight lies in the same interval for , so .
Sizes. The backward recurrence for the copy scales in Definition 4.1 gives . Since for a concatenation of copies, and for , such a concatenation with bound has . The output of amplification with bound has total size at most and terminal times at most . Thus is a bound for it, since . Averaging with the bound then yields total sizes and terminal times at most , by Lemma 4.2(i). We therefore fix the bounds as follows. In round , amplification uses the bound , and averaging uses the bound , where and . By induction, is a bound for .
All jobs in also have size at least , because the initial job has size , copying stretches sizes by factors , and every heavy job has size . After flooding, all sizes lie in , so .
Densities. For every instance , the ratio of any two job densities satisfies . Hence , and the preceding bounds give .
Cost and number of jobs. An instance in the support of consists of jobs of size at least and has total size at most , so it has at most jobs, each of weight at most . Hence , and the additive term in Lemma 3.3 is at most . Choose , a multiple of because and are integers. Since is -hard, the lemma gives
for every deterministic online algorithm , as required. The stream adds jobs. As and , we obtain .
We have and . The explicit parameters of the iteration give
Consequently,
Together with , , and , these estimates give the claimed bounds with an absolute constant .
Proof of Theorem 1.2. Let , and let be the constant of Theorem 5.1. Fix a randomized online algorithm and set . This is positive because . If , there is nothing to show. Otherwise, let be the distribution of Theorem 5.1. By Lemma 2.1, there is an instance in its support with
and . Since , the algorithm is not -competitive on this class of instances for any , which proves the claimed lower bound.
High-Probability Bounds
The last averaging step also yields the high-probability lower bound of Theorem 1.3.
Proof of Theorem 1.3. Use the construction of § 4.4 with in place of . Thus , , , and , and is obtained by averaging . This amplified distribution has gap and cap , so it is -hard by Observation 3.2(b). A sample of is , where is the concatenation of copies of the amplified distribution and is its end. Averaging the capped robust backlogs of the copies and capping the result at gives a lower bound on for every deterministic online algorithm . The average of their minimum active weights gives an upper bound on .
Fix a deterministic online algorithm , and let be the algorithm with for every instance , as in the proof of Lemma 4.4. Let and be as in Lemma 4.2(iii) for the algorithm , the amplified distribution, and its cap . As in the proof of Lemma 4.4, the robust backlog of at contains the pairwise disjoint sets , and the robust backlog of on consists of the same jobs with weights divided by . Hence
By Lemma 4.2(iii), each is determined by the first samples, and its conditional expectation given the first samples is at least . The differences therefore form a martingale difference sequence with , and the Azuma–Hoeffding inequality [23, 6] gives
where the last step uses . Since , we have outside this event.
To bound the offline active weight, let be the values of on the independent amplified samples entering the last averaging step. By Lemma 4.3, they are independent with and . The offline schedule of Lemma 4.2(ii), with weights divided by , gives for the average , which has expectation at most 1. Hoeffding’s inequality [23] therefore implies
Both failure probabilities are at most . Hence every deterministic satisfies
with probability at least , where the last inequality uses .
We now flood with the stream length from the proof of Theorem 5.1, applied to the construction with . Whenever and , the two bounds of Lemma 3.3 give
Thus the resulting finite distribution satisfies for every deterministic . The parameter bounds follow from the proof of Theorem 5.1, with an absolute constant enlarged to account for the use of .
Finally, average over . Since has finite support, we may exchange the expectations over the algorithm and the instance, giving
Hence some instance in the support of satisfies the claim.
Nearly Known Instances
We prove Theorem 1.4. All randomness in the distributions of § 4.4 comes from the checkpoint indices of the amplification steps, one for each heavy job. Such an index determines only how long after the heavy job the next job is released, and with a large bound in Definition 4.1, this time varies by a factor of at most .
Let be a terminal instance whose jobs have distinct release times . Its interarrival times are the numbers and , in this order, so the terminal time counts as the final arrival. For , a terminal distribution is -predictable if it has the following two properties.
(a) All terminal instances in its support have the same number of jobs, with distinct release times, the first of which is . For every , the th released job has the same size and the same weight throughout the support.
(b) The interarrival times are mutually independent, and for every there is a number such that the th interarrival time lies in .
Lemma 5.2. Let , and let be an -predictable terminal distribution with a bound , which is used to form and .
(i) For every positive integer , the distribution is -predictable.
(ii) If , then is -predictable for every integer .
Proof. Let be the concatenation of copies of , formed from independent samples , and let be its end. We first show that the distribution of is -predictable.
Copy is obtained from by mapping each release time to and multiplying each size by , where the factor does not depend on the samples. Since the first job of is released at time , the first job of copy is released at , and all jobs of copy are released during by Lemma 4.2(i). Hence the release times of are distinct, the first of them is , and the jobs of in release order are the jobs of copies in release order, with sizes and weights that are the same for all samples. This is (a).
For (b), note that the last interarrival time of , multiplied by , is the time from the last release of copy to , and that is the first release time of copy if and equals if . The interarrival times of are therefore those of multiplied by , followed by those of multiplied by , and so on. They are mutually independent because the samples are independent, and an interarrival time of in becomes one in . Dividing all weights by preserves both properties, which proves (i). For (ii), let . Amplification adds to the job with release time , size , and weight , divides all weights by , and replaces the terminal time by . All jobs of are released before , so is released last, and its size and weight are the same for all samples. The interarrival times of remain interarrival times, the last of them now ending at the release of , and there is one new interarrival time . It is independent of the others because is independent of the copies. By Definition 4.1, we have , and therefore . Since , the new interarrival time lies in .
Proof of Theorem 1.4. Fix and . As in the proof of Theorem 1.3, use the construction of § 4.4 with in place of and the bounds from the proof of Theorem 5.1, except that now . That proof uses only that is an integer and a bound for , so is a bound for , and the amplification of round uses the bound .
The single-job distribution is -predictable, since its job is released at time 0 and its only interarrival time is 1. By Lemma 5.2 and induction on , every is -predictable. Flooding with the stream length releases the first stream job at the terminal time , so the last interarrival time of becomes the time before the first stream job, and the further stream jobs follow at the fixed spacing . All stream jobs have the same size and weight. The resulting random instance therefore has the form required in Theorem 1.4. Its sizes and weights in release order are fixed, its first job is released at time 0, and its interarrival times are independent, each with finitely many values in an interval with .
With this choice of , the proof of Theorem 5.1 at target gives for every deterministic online algorithm . The proof of Theorem 1.3 at target uses the same distribution and gives . The parameter bounds change only through , for which . Hence they hold with a constant that depends only on , and can be chosen independently of whenever .
AI Declaration
A first version of a lower bound construction was found by GPT 6 Astra. The author then refined and simplified the proof and added the extensions in several rounds with the help of Claude Opus 5.5 and Claude Fable 5.2, which were also used to revise the text and create the figures. The author has checked all statements and proofs and takes full responsibility for the content of this paper.
References
- [1]S. Anand, Naveen Garg, and Amit Kumar. Resource augmentation for weighted flow-time explained by dual fitting. In: SODA. 2012, pp. 1228–1241.DOI
- [2]Alexander Armbruster, Lars Rohwedder, and Andreas Wiese. Minimizing Weighted Flow Time. In: J. ACM 73.3 (2026), 19:1–19:23.DOI
- [3]Yossi Azar, Stefano Leonardi, and Noam Touitou. Flow time scheduling with uncertain processing time. In: STOC. 2021, pp. 1070–1080.arxiv.org/abs/2103.05604
- [4]Yossi Azar, Stefano Leonardi, and Noam Touitou. Distortion-Oblivious Algorithms for Minimizing Flow Time. In: SODA. 2022, pp. 252–274.arxiv.org/abs/2109.08424
- [5]Yossi Azar and Noam Touitou. Improved Online Algorithm for Weighted Flow Time. In: FOCS. 2018, pp. 427–437.arxiv.org/abs/1712.10273
- [6]Kazuoki Azuma. Weighted Sums of Certain Dependent Random Variables. In: Tohoku Math. J. 19.3 (1967), pp. 357–367.DOI
- [7]Nikhil Bansal and Ho-Leung Chan. Weighted flow time does not admit O(1)-competitive algorithms. In: SODA. 2009, pp. 1238–1244.DOI
- [8]Nikhil Bansal and Kedar Dhamdhere. Minimizing weighted flow time. In: ACM Trans. Algorithms 3.4 (2007), p. 39.
- [9]Nikhil Bansal and Kirk Pruhs. The Geometry of Scheduling. In: SIAM J. Comput. 43.5 (2014), pp. 1684–1698.
- [10]Nikhil Bansal, Kirk Pruhs, and Cliff Stein. Speed Scaling for Weighted Flow Time. In: SIAM J. Comput. 39.4 (2009), pp. 1294–1308.
- [11]Jatin Batra, Naveen Garg, and Amit Kumar. Constant Factor Approximation Algorithm for Weighted Flow-Time on a Single Machine in PseudoPolynomial Time. In: SIAM J. Comput. 52.6 (2023), S18–158.arxiv.org/abs/1802.07439
- [12]Luca Becchetti and Stefano Leonardi. Nonclairvoyant scheduling to minimize the total flow time on single and parallel machines. In: J. ACM 51.4 (2004), pp. 517–539.DOI
- [13]Luca Becchetti, Stefano Leonardi, Alberto Marchetti-Spaccamela, and Kirk Pruhs. Online weighted flow time and deadline scheduling. In: J. Discrete Algorithms 4.3 (2006), pp. 339–352.
- [14]Jivitej S. Chadha, Naveen Garg, Amit Kumar, and V. N. Muralidhara. A competitive algorithm for minimizing weighted flow time on unrelated machines with speed augmentation. In: STOC. 2009, pp. 679–684.DOI
- [15]Chandra Chekuri and Sanjeev Khanna. Approximation schemes for preemptive weighted flow time. In: STOC. 2002, pp. 297–305.
- [16]Chandra Chekuri, Sanjeev Khanna, and An Zhu. Algorithms for minimizing weighted flow time. In: STOC. 2001, pp. 84–93.DOI
- [17]Qingyun Chen, Sungjin Im, and Aditya Petety. Online Scheduling via Gradient Descent for Weighted Flow Time Minimization. In: SODA. 2025, pp. 3802–3841.arxiv.org/abs/2409.03020
- [18]Leah Epstein and Rob van Stee. Lower Bounds for On-Line Single-Machine Scheduling. In: Theor. Comput. Sci. 299.1–3 (2003), pp. 439–450.
- [19]Uriel Feige, Janardhan Kulkarni, and Shi Li. A Polynomial Time Constant Approximation For Minimizing Total Weighted Flow-time. In: SODA. 2019, pp. 1585–1595.
- [20]Anupam Gupta, Haim Kaplan, Alexander Lindermayr, Jens Schlöter, and Sorrachai Yingchareonthawornchai. A Little Clairvoyance Is All You Need. In: FOCS. 2025, pp. 86–118.arxiv.org/abs/2508.17759
- [21]Anupam Gupta, Haim Kaplan, Alexander Lindermayr, Jens Schlöter, and Sorrachai Yingchareonthawornchai. Better Late Than Never: Online Flow Time Scheduling with Online Estimates. In: SODA. To appear. 2027.arxiv.org/abs/2609.07402
- [23]Wassily Hoeffding. Probability Inequalities for Sums of Bounded Random Variables. In: J. Amer. Statist. Assoc. 58.301 (1963), pp. 13–30.
- [24]Sungjin Im, Janardhan Kulkarni, and Kamesh Munagala. Competitive Algorithms from Competitive Equilibria: Non-Clairvoyant Scheduling under Polyhedral Constraints. In: J. ACM 65.1, 3 (2018).
- [25]Sungjin Im, Janardhan Kulkarni, Kamesh Munagala, and Kirk Pruhs. SelfishMigrate: A Scalable Algorithm for Non-clairvoyantly Scheduling Heterogeneous Processors. In: FOCS. 2014, pp. 531–540.arxiv.org/abs/1404.1943
- [26]Sven Jäger, Alexander Lindermayr, and Bart Zondervan. Single-Machine Guarantees on Unrelated Machines and Beyond: Proportional Fairness for Nonclairvoyant Polytope Scheduling. arXiv:2610.32545. 2026.arxiv.org/abs/2610.32545
- [27]Bala Kalyanasundaram and Kirk Pruhs. Speed Is as Powerful as Clairvoyance. In: J. ACM 47.4 (2000), pp. 617–643.DOI
- [28]Bala Kalyanasundaram and Kirk Pruhs. Minimizing flow time nonclairvoyantly. In: J. ACM 50.4 (2003), pp. 551–567.
- [30]Stefano Leonardi and Danny Raz. Approximating total flow time on parallel machines. In: J. Comput. Syst. Sci. 73.6 (2007), pp. 875–891.
- [31]Giorgio Lucarelli, Benjamin Moseley, Nguyen Kim Thang, Abhinav Srivastav, and Denis Trystram. Online Non-Preemptive Scheduling to Minimize Weighted Flow-time on Unrelated Machines. In: ESA. 2018, 59:1–59:12.arxiv.org/abs/1804.08317
- [32]Rajeev Motwani, Steven J. Phillips, and Eric Torng. Non-Clairvoyant Scheduling. In: Theor. Comput. Sci. 130.1 (1994), pp. 17–47.
- [33]S. Muthukrishnan, Rajmohan Rajaraman, Anthony Shaheen, and Johannes E. Gehrke. Online Scheduling to Minimize Average Stretch. In: SIAM J. Comput. 34.2 (2005), pp. 433–452.
- [34]Cynthia A. Phillips, Clifford Stein, Eric Torng, and Joel Wein. Optimal Time-Critical Scheduling via Resource Augmentation. In: Algorithmica 32.2 (2002), pp. 163–200.
- [35]Kirk Pruhs, Jiří Sgall, and Eric Torng. Online Scheduling. In: Handbook of Scheduling: Algorithms, Models, and Performance Analysis. Ed. by Joseph Y.-T. Leung. Chapman and Hall/CRC, 2004.
- [36]Lars Rohwedder and Andreas Wiese. A (2+ε)-Approximation Algorithm for Preemptive Weighted Flow Time on a Single Machine. In: STOC. 2021, pp. 1042–1055.DOI
- [37]Linus Schrage. A Proof of the Optimality of the Shortest Remaining Processing Time Discipline. In: Oper. Res. 16.3 (1968), pp. 687–690.DOI
- [38]Andrew Chi-Chih Yao. Probabilistic Computations: Toward a Unified Measure of Complexity. In: FOCS. 1977, pp. 222–227.DOI