Manuscript Offprint
arXiv:2610.40554Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We revisit scheduling with obligatory testing, where each job consists of two operations: a test with an initially known time and an operation whose processing time is revealed upon completion of the job's test. We develop an iterative competitive-ratio-preserving instance-reduction method that enables us to compute exact competitive ratios directly on highly structured instances for various index rules. Our main result is a clean analysis showing that the competitive ratio of the algorithm 1-SORT is exactly the Golden Ratio , improving the recent best-known upper bound of 1.861 for arbitrary testing times. We further leverage this method to obtain near-tight bounds for a simple randomized algorithm on instances with uniform testing times.
2012 ACM Subject Classification Theory of computation → Scheduling algorithms; Theory of computation → Adversary models
Keywords and phrases Scheduling with testing, Explorable uncertainty, Online algorithms, Competitive ratio, Total completion time, Analysis of algorithms
Funding Felix Buld: Partly funded by the German Research Foundation (DFG) - GRK 2201/2 - Project number 277991500.
1 Introduction
This paper studies scheduling under explorable uncertainty, where some job parameters are initially unknown but can be revealed through time-consuming tests. This uncertainty reduction comes with a trade-off towards the completion of jobs for which full information is already available. Thus, the model bridges classical offline and online scheduling settings, augmented with testing as a layer of active information acquisition at the cost of time investment. The paper follows a line of research on scheduling with testing that originated in the foundational works of [5, 9] and provides a competitive analysis that characterizes the exact performance guarantee of the studied scheduling rules.
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
1.2 Preliminaries and Related Work
Let be the set of instances of this scheduling problem. For an instance of this scheduling problem, let denote the algorithmic cost and the optimal cost, or and if the instance is clear from the context. The performance is measured by the competitive ratio, i.e., for a deterministic algorithm and for a randomized algorithm, against an oblivious adversary. In the optimal (offline) solution with full information, jobs are sorted by shortest processing time first (SPT), i.e., non-decreasingly in their total processing time , and scheduled in this order, without preemption between the two operations of each job. Let denote the permutation that sorts jobs in this SPT-order. Then, the optimal cost is
The second expression is a reformulation in terms of pairwise delays. In general, with denoting the delay of job caused by job , i.e., the time spent on testing or processing job before has been completed, here , the algorithmic cost can be written as
This pairwise-delay decomposition is often used to succinctly represent the algorithmic cost of algorithms and analyze their performance, and also extends to randomized algorithms using (expected) algorithmic cost, see [2, 3, 4, 13, 14].
In the classical non-clairvoyant scheduling problem, with the objective of minimizing , the processing time is revealed only upon completion of a job; obligatory tests are not available. The non-preemptive variant of this scheduling problem is unbounded, whereas in the preemptive version, the Round Robin-Rule, which rotates among infinitesimal pieces of incomplete jobs, achieves the best-possible competitive ratio of 2 [14]. The algorithm and its analysis carry over to obligatory testing if one allows arbitrary preemption, but the testing model provides strictly more information and can, without loss of generality, be considered as the test-preemptive model in Section 1.1 [2, 4, 5, 13], thereby allowing strictly smaller competitive ratios for algorithms.
The obligatory testing model in Section 1.1 was first studied by Dogeas et al. [4]. They consider the rule -SORT, where testing operations have priority value and processing operations have priority value , and prove that 1-SORT has a competitive ratio of at most 1.861 using an enhanced amortization scheme based on the pairwise-delay framework. They also provide a lower bound based on the parameter . This lower bound is minimal for 1-SORT and equals the Golden Ratio . This is the positive root of the quadratic equation and a recurring parameter in the competitive analysis of various algorithms in the scheduling-with-testing literature (see, e.g., [5]) and beyond.
For uniform testing times, they use an instance-reduction framework from Dürr, Erlebach, Megow, and Meißner [5] to compute the exact competitive ratio for SIDLE, a variant of -SORT on these instances, which is minimized for , and equal to about 1.585. They also give a lower bound of for uniform testing times. This bound was improved by recent papers [11, 15], which give lower bounds of [11] and about 1.57 [15] for any deterministic algorithm, and of [15] for any randomized algorithm. For the latter two results, algorithms with matching bounds of rather intricate structure and analysis were developed with substantial assistance from large language models [15]. Results for index rules for scheduling on a single machine can be transferred to parallel identical machines, potentially with some performance loss, using the frameworks developed in [2, 6, 8, 11]. The obligatory testing model and the algorithm 1-SORT were also generalized to jobs arriving online and consisting of chains of successive operations that are gradually revealed, and a competitive ratio of 2 was achieved in the obligatory testing model for instances with uniform testing times for total flow time minimization [12].
A very related model from which the obligatory testing model originated is the optional testing model. In this model, one is given intervals for processing times, i.e., for each job , and can either choose to process a job untested for units of time or test it, taking time , and process it later for units of time. Similar index rules to -SORT and generalizations thereof for optional testing have been studied in various papers (e.g., [1, 2, 5, 8, 13]). The rule -SORT for obligatory testing originated from an extended rule -SORT for optional testing [1, 4]. Instance-reduction frameworks have been used for algorithms in the model with uniform testing times [5]. For the general model, the analysis techniques have mostly focused on locally bounding pairwise delays [2, 8, 13].
In the stochastic counterparts for scheduling with testing [9, 10, 17], processing times and job priorities are drawn from independent probability distributions. For obligatory testing in this context, Levi, Magnanti, and Shaposhnik [10] prove the optimality of an index rule.
Approximation-ratio-preserving instance-reduction approaches have been used for scheduling rules in other contexts, e.g., [16], or for integrality-gap-preserving reductions within linear programming-based approaches to other combinatorial optimization problems [7].
1.3 Contributions
Our main contributions in this paper are threefold.
First, we develop an instance-reduction method that is competitive-ratio-preserving, i.e., a sequence of structural adaptations, such as shifts in processing times and adversarial exchange arguments, applied to an instance without decreasing an algorithm's competitive ratio. This process results in a highly structured family of instances for which the exact competitive ratio can be computed directly.
Second, we apply this method to the algorithmic family -SORT and characterize its exact competitive ratios as functions of . This yields an improvement for the competitive-ratio for 1-SORT from the currently best-known guarantee 1.861 [4] to the Golden Ratio and solves the open question on the exact competitive ratio by Dogeas et al. [4]. It also shows that a simple index rule almost matches the known lower bounds. We further prove that deeper amortization, beyond locally bounding pairwise costs, is necessary to achieve exact competitive ratios for this algorithmic family. Our method does this via a clean analysis.
Third, we connect the two (previously separate) lines of research on stochastic and adversarial scheduling with testing via Yao's Principle. We leverage this to provide lower bounds on randomized algorithms for adversarial scheduling with obligatory testing of in the uniform testing case. We provide a family of randomized algorithms that are simple variants of the deterministic family -SORT paired with a random permutation of tests. Using our instance-reduction method, we can show that, with an optimized parameter , this achieves an almost-optimal competitive ratio of at most 1.359 in the uniform testing case.
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
1.4 Outline of the Paper
This paper is structured as follows. We start by presenting our instance-reduction method in Section 2. In Section 3, we present the family of deterministic algorithms -SORT and apply our instance-reduction method to characterize the exact competitive ratios. In Section 4, we study randomized algorithms and also employ our instance-reduction method together with a presentation of a lower bound via the connection between stochastic and adversarial scheduling with testing. Finally, a conclusion is drawn in Section 5.
2 A Competitive-Ratio-Preserving Instance-Reduction Method
In this section, we first describe the high-level idea behind our instance-reduction method, followed by the technical aspects used throughout this paper to exactly compute the competitive ratios of various algorithms. The method applied to an arbitrary instance of the scheduling problem consists of three main steps:
-
Competitive-Ratio-Preserving Shifts Iteratively, we jointly increase or decrease a subset of testing or processing times to strictly decrease the number of distinct parameters in an instance.
-
Adversarial Exchange Arguments Tie-breaks in the algorithmic structure are resolved in favor of the adversary without changing the structure of the optimal solution.
-
Exact Computation on Highly Structured Instances For worst-case instances with a small number of distinct parameters, algorithmic and optimal costs are highly structured, and the exact competitive ratios can directly be computed.
The first step of the instance-reduction relies heavily on the following structural properties in Lemma 1 and 2. These two results are generalizations of two results in [5, Proposition 2 and Lemma 3], which provided a similar reasoning for optional testing and uniform testing times that were applied in [4, 5]. The main insight behind the enhanced methods in the first step is that we need a more general property of the optimal cost and iterative shifts to make these results applicable to non-uniform testing times. Lemma 1 is the technical core of this step.
▶ Lemma 1. Consider a parameter for bounds . Suppose that on this interval, with , and is a piecewise affine, continuous, non-decreasing, concave function with . Then, is attained for at least one value .
Proof. We write for all for a finite partition and all with and using the stated properties of and the interval. On the interior of each sub-interval , the derivative of equals . The sign of the derivative is independent of . Since , and , we have for each , implying that the sign is non-decreasing in . Hence, we can conclude that the ratio is first non-increasing, then non-decreasing, and attains its maximum at least at one of the bounds.
Consider an arbitrary but fixed instance I of the scheduling problem with obligatory testing and an arbitrary algorithm ALG. Lemma 1 will now be applied to the cost functions in this setting with and to obtain another instance parametrized by some value , without decreasing the ratio. For this, we may write testing and processing times as and , the algorithmic cost as , the optimal cost as , and the pairwise delay as as functions in .
▶ Lemma 2. Consider a parameter for bounds . Suppose that we shift operation times on this interval such that all testing and processing times and are affine and non-decreasing functions in with , and the pairwise delays of ALG for all pairs of jobs satisfy the same properties, and further . Then, the worst-case ratio on this interval is attained for at least one .
Proof. For each job , let for , which is non-decreasing and affine on this interval as are, and . By Equation (1), the optimal cost can be written as . This yields a non-decreasing and piecewise-affine function. Affine functions are continuous and concave, and pointwise minima and sums preserve these properties. Hence, is also a continuous and concave function.
By Equation (2), the algorithmic cost equals . Again, this is a non-decreasing, affine function, with being a sum of functions with these properties. An application of Lemma 1 yields the claimed result.
▶ Remark 3. Lemma 2 will be applied to a class of index rules in Section 3 as follows. Consider index rules that assign testing operations priority values linear in and processing operations priority values linear in , and always select the next operation to be scheduled from the set of available operations with the smallest priority value. Let be a fixed set of operations, all with the same priority value . Suppose that we shift all testing or processing times in linearly such that their priority values are all equal to a value , with , and keep all operations not in fixed and the same overall relative priority order of operations. Then, note that the pairwise delays are affine and non-decreasing in the shift , and non-negative at . Thus, we can apply Lemma 2 in this situation and iteratively reduce the number of different priority values and testing and processing times.
This result strictly generalizes the corresponding step in the instance-reduction framework of Dürr et al. [5] for optional testing and uniform testing times, which restricts shifts to those of processing operations that preserve the order of operations in both the algorithm and the optimum. This suffices for uniform testing times, but our strict generalization is key for non-uniform testing times, see Theorem 9.
The technical assumption ensures that every occurring term is well-defined. This is equivalent to the existence of at least one strictly positive operation time. We assume this without loss of generality in the following. Lemma 2 also extends to randomized algorithms using expected pairwise delays. We will use this in Section 4.
With Lemma 2, we may iteratively find sequences of instances such that for some .
The limitation of Lemma 2 is that it holds as long as the relative order of operations remains the same in the algorithm and the pairwise delays are affine. Since the algorithmic cost is not necessarily continuous under such shifts, when the order of operations changes, we will apply another adversarial exchange argument as a second step in our instance-reduction framework. With this, we construct for an instance derived by the first step, , another even more structured instance for every such that .
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
Lemma 2 and the adversarial exchange argument will be used to identify a highly structured subclass of instances for an algorithm ALG such that
and for which an exact computation can easily be established, e.g., by solving a quadratic equation, see Section 3.3.
3 Deterministic Algorithms
In this section, we study the family of deterministic algorithms, -SORT. Section 3.1 describes this family, and Section 3.2 shows limitations of previous approaches. In Section 3.3, we leverage our instance-reduction method from Section 2 to characterize the competitive ratio of -SORT exactly and, in particular, show that 1-SORT is -competitive for scheduling with obligatory testing, solving the open question on the exact competitive ratio by Dogeas et al. [4].
3.1 Algorithmic Family
The family of deterministic algorithms -SORT, as considered in [4] for obligatory testing and similarly for optional testing, e.g. [1, 2, 5, 13]. It is a simple index rule as already described in Remark 3: processing operations carry the priority value , and testing operations carry the priority value , where is a single joint scaling factor that balances the priority between testing and processing.
▶ Definition 4. The algorithm -SORT is defined as follows: Keep a priority queue and initially insert all testing operations with priority value . As long as the queue is not empty, schedule an operation with the smallest priority value and remove it from the queue. If it was a testing operation, add the processing operation with priority value to the queue.
For , we especially obtain a generalization of the SPT-rule. For a typical instance, -SORT schedules more tests, i.e., it explores more, in the earlier phase than the optimal algorithm. On structured subclasses of problems, e.g., for uniform testing times, a value of may dominate in the worst-case, as we will see in Section 4.
Let denote the competitive ratio of -SORT for every . Note that -SORT is formulated as an index rule in Definition 4, allowing for arbitrary tie-breaks between operations of the same priority value. However, the following result shows that the competitive ratio is independent of the tie-breaking rule for arbitrary testing times. Small perturbations to operation times within an instance can be used to enforce a specific order of operations without requiring tie-breaking.
▶ Lemma 5. For an instance I and any order of operations consistent with Definition 4, we can find another instance with pairwise distinct priority values such that .
Proof. Consider instance , , and a given order of operations in -SORT. Perturb the operation times using a small such that the priority values increase by in this order and that all priority values differ. This means that we either add or to an operation time for some . This instance is denoted by . Using Equations (1) and (2) for optimal and algorithmic cost similar as in the proof of Lemma 2, we have that and are continuous in and can conclude that there is a for some such that .
3.2 Comparison of Analysis Methods
An established way to prove upper bounds on the competitive ratio of algorithms for scheduling problems with testing, and in similar uncertainty frameworks, is a local pairwise delay analysis [2, 4, 13, 14]. Bounding for all pairs of jobs yields an upper bound of using Equations (1) and (2).
It is shown by Dogeas et al. [4] that the best possible local pairwise bound for 1-SORT equals , considering an exhaustive analysis of possible orders. This analysis can be extended for general ; see Buld and Schulz [2] and Liu, Liu, Wong, and Zhang [13] and their corresponding full versions, which study optional testing, with pairwise bounds for obligatory testing as a special case. The following proof is tailored for obligatory testing.
▶ Lemma 6. For , algorithm -SORT is at most -competitive for scheduling with obligatory testing to minimize on a single machine.
Proof. Consider two jobs with , i.e., job is scheduled before job in the optimal schedule. We bound the pairwise algorithmic delay based on a case distinction on the actions of -SORT, similar to that in [2, 4, 13]. Abbreviate by the testing operation and by the processing operation of job as in [2, 4]. We distinguish cases based on the order of operations in -SORT.
-
Order of operations : .
-
: , tight for , , and .
-
: , tight for , , .
-
: , tight for , .
-
: , tight for , .
-
: , tight for
, .
Using this local pairwise analysis, no better bound than 2 can be shown for any . To overcome this limitation, Dogeas et al. [4] give a method to amortize the delay of pairs with local delay close to 2 for 1-SORT and achieve an upper bound of 1.861 on its competitive ratio. They also give a family of instances to establish a lower bound on the competitive ratio for the algorithmic family -SORT. We will show in Section 3.3 how to match this lower bound using our instance-reduction method from Section 2. The tight pairs of jobs in the proof of Lemma 6 will be crucial in this.
▶ Theorem 7. The competitive ratio of -SORT is exactly
and this expression is minimized at attaining a value of .
The proof of Theorem 7 is relegated to Section 3.3.
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
Remark 8. In Figure 1, we depict various bounds on the competitive ratio as varies. These include the local pairwise delay bound from Lemma 6, the previous best bound by Dogeas et al. [4] for 1-SORT, and the exact competitive ratios obtained in this paper. Interestingly, both the local pairwise delay and the exact competitive ratio attain their minima at , with values of 2 and , respectively. Furthermore, this shows that a local pairwise delay analysis is not sufficient for this algorithmic family.

Figure 1 Bounds on the competitive ratio using previous approaches and our instance-reduction method.
Note that our exact competitive ratio of for 1-SORT for arbitrary testing times almost matches the lower bound of about 1.57 [15] for any deterministic algorithm and uniform testing times.
3.3 Exact Analysis of the Competitive Ratio of -SORT
Using our instance-reduction method from Section 2, we can show that there are worst-case instances with only a few distinct parameters in the operation times. First, we iteratively merge groups of operations with the same priority value. Then, we apply adversarial exchange arguments to obtain worst-case instances for which we compute the competitive ratio exactly.
▶ Theorem 9. For each instance of the obligatory testing problem, and any order of operations consistent with Definition 4, there is an instance such that -SORT yields the same order of operations and , where each job is of the structure as follows:
Table 1 Worst-case structure for -SORT.
| Job Parameters | Type 1 | Type 2 | Type 3 |
|---|---|---|---|
Proof. Let be an arbitrary instance, and denote the set of strictly positive priority values in -SORT for all operations (for 1-SORT, these are exactly the operation times).
We rescale all operation times by the maximal priority value , such that we have and . This is without loss of generality, since the order of priority values and the ratio remain unchanged.
If , we are done. Otherwise, we will use our instance-reduction method to construct a series of instances such that and for some and the result follows with .
We use Lemma 2 via Remark 3. In particular, if we select a subset of operations and shift their priority values in -SORT uniformly while preserving the order of operations, especially for tie-breaks, the pairwise delay between two jobs is affine in the shift.
First, note that for each job with , -SORT schedules the processing operation of job immediately after 's test. Hence, by applying Lemma 2 independently to each such job with interval , we can conclude that we can restrict ourselves to for these jobs without changing the algorithmic order and without worsening the competitive ratio. Let the resulting instance be denoted by .
Second, for the instance , we write for all priority values in that -SORT uses on this instance. Pick an arbitrary index together with all operations of priority values . Apply Lemma 2 to all these operations and the interval . Note that this shift in operation times does not change the relative order of operations since -SORT always uses the smallest priority value, and if there is a job with , it will still be scheduled immediately after the test of job . Hence, by Lemma 2, we obtain from with and by shifting all operations of priority value to a priority value of either or .
Iteratively following this approach, we arrive at an instance with and . Hence, instance only has priority values 0 and , implying that for all jobs , we have and . Removing jobs with that neither contribute to the algorithmic nor the optimal cost, leaves us with the pairs of operation times as stated.
Theorem 9 shows that we can restrict our attention to instances of the three types above. These are exactly the job pairs where at least one pairwise delay bound is tight; see Lemma 6. Since this step does not change the algorithmic order, we must consider adversarial tie-breaking when analyzing the competitive ratio for this class of instances. This is established by Lemma 10 using adversarial exchange arguments.
▶ Lemma 10. The worst-case schedule of -SORT on instances in Table 1 is structured as follows: First jobs of type are tested instantly, then jobs of type are tested, then, 1. if , all of these jobs are completed in arbitrary order, and then all jobs of type are tested and immediately completed.
- if , all jobs of type are tested and immediately completed, and then all jobs of type and are completed in arbitrary order.
Proof. The proof is a straightforward exchange argument; using that the optimal cost is constant, and the pairwise delay is maximized for any two jobs of these three types when operations are scheduled exactly in the stated order for the two cases. Hence, all pairwise delays are maximized simultaneously in the described schedules.
We first use Theorem 9 and Lemma 10 to prove our main result for and then extend the proof strategy to the other cases of afterwards.
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
▶ Theorem 11. 1-SORT is -competitive for scheduling with obligatory testing on a single machine to minimize .
Proof. Following Theorem 9, we can focus on instances with three types of jobs, with parameters in the case of . By Lemma 10, Case 1, 1-SORT schedules all tests of jobs of type immediately, followed by all tests of jobs of type , and then completes all jobs in arbitrary order, taking time 1 each. In the optimum, the jobs of types and are completed in arbitrary order first, then all jobs of type are completed without preemption between testing and processing. In Table 2, we explicitly write down the pairwise algorithmic and optimal delays for jobs of the two types.
Table 2 Pairwise delays of 1-SORT and the optimal schedule for the worst-case instances.
| (0,1) | (1,1) | (1,0) | ||
|---|---|---|---|---|
| Type 1 | (0,1) | 1 | 1 | 2 | 1 | 1 | 1 |
| Type 2 | (1,1) | 3 | 2 | 2 | 1 | |
| Type 3 | (1,0) | 1 | 1 | ||
Consider an arbitrary instance consisting of jobs of types , where and . Hence, using Equation (2) and Table 2:
and using Equation (1) and Table 2:
We can bound
for all such instances. For each fixed , the competitive ratio of 1-SORT restricted to the class of instances with this parameter is bounded by the right-hand side. Moreover, for fixed , the ratio approaches the latter ratio as , so we can focus on the coefficients of the quadratic terms. The derivative is equal to , and the positive root of the latter quadratic numerator set to 0 is equal to . Hence, we can calculate, using twice,
and obtain the competitive ratio of .
We have proven that 1-SORT is -competitive. Note that, for the identified instances, some pairs still have pairwise delays that are off the optimal pairwise delays for such jobs by a factor of 2; see Table 2. However, there are pairs of ratios and 1, as well, which offset the overall ratio again. Following the proof of Theorem 11, the limiting worst-case instance has a fraction of jobs of type (1, 1) and a fraction of jobs that is an arbitrary combination of the other two types.
For the cases of , we can extend the proof strategy of Theorem 11 to further reduce the instances to be considered and then also perform a single-parameter optimization.
▶ Theorem 12. Consider -SORT with an adversarial tie-breaking rule as in Lemma 10.
If , then -SORT has the same competitive ratio when the instance class is restricted to jobs of uniform testing time and two distinct processing times, i.e., for for all , we have .
If , then -SORT has the same competitive ratio when the instance class is restricted to jobs of uniform processing time and two distinct testing times, i.e., for for all , we have .
Proof Idea. The proof is similar to that for 1-SORT in Theorem 11, with more variables and a few more small arguments. Following Theorem 9, we consider an arbitrary instance consisting of jobs of types , , . We compute the pairwise delays using adversarial tie-breaks and obtain a similar structure to that in Table 2:
Table 3 Pairwise delays of -SORT and the optimal schedule for the worst-case instances and .
| (0,β) | (1,β) | (1,0) | |
|---|---|---|---|
| (0,β) | β | β | 1 + β | β | β | 1 |
| (1,β) | 2 + β | 1 + β | 1 + β | 1 | |
| (1,0) | 1 | 1 |
Table 4 Pairwise delays of -SORT and the optimal schedule for the worst-case instances and .
| (0,β) | (1,β) | (1,0) | |
|---|---|---|---|
| (0,β) | β | β | 1 + β | β | 1 | β |
| (1,β) | 2 + β | 1 + β | 2 | 1 | |
| (1,0) | 1 | 1 |
We compute the algorithmic and optimal costs for each. In the case of , we argue that we can convert all jobs of type to either being jobs of type or jobs of type , reaching as a limiting ratio, as well. Vice versa, for , we can convert jobs of type similarly. The detailed proof steps and calculations are relegated to Appendix A.
▶ Remark 13. Note that in the instances in Theorem 12, adversarial tie-breaking is crucial. However, we can derive tight instances that do not rely on adversarial tie-breaking but yet enforce the specified order, following Lemma 5. Another perturbation for some small to achieve this is the following: for , use jobs of type , , and for , use jobs of type , similar as in the class of instances in [4].
Having established Theorem 12, we can compute the ratio exactly for these highly structured instances for . This is the last step of the proposed instance-reduction method from Section 2. For instances of this structure (up to scaling and perturbations), this calculation was already established in [4] to obtain a lower bound on the competitive ratio . We briefly repeat the results here to conclude the proof of Theorem 7.
Proof of Theorem 7. Consider an instance consisting of jobs of types , , , where and as in Theorem 9. Using Theorem 12, the formulas for from Appendix A and substitution of variables, we need to solve a maximization problem in a single parameter depending on the value of for the two cases and .
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
For , one obtains the fraction of and , , in the worst-case family, see also [4], resulting in the competitive ratio as stated.
For , one obtains the fraction of and , , in the worst-case family, see also [4], resulting in the competitive ratio as stated.
We end this section with a remark on the special case of uniform testing times, i.e., for each job j, to distinguish it from the general case.
▶ Remark 14. On the class of instances with uniform testing times, the competitive ratio of -SORT does not change for in comparison to the case of arbitrary testing times, following Theorem 12. For , following Theorem 9, one obtains worst-case instances with for all . The competitive ratio is enhanced compared to Theorem 7 on this branch. But the resulting expression is also minimized for , still yielding the Golden Ratio as the competitive ratio of 1-SORT on this class of instances.
Unlike in the general case, tie-breaking can make a difference for instances with uniform testing times , and thereby improve competitive ratios. The algorithm ( -SIDLE [4] equals -SORT with an additional tie-break in favor of processing operations whenever there is a processing operation of priority value . For and the instance structure from Theorem 12 with jobs of types , , this tie-breaking prevents a job of type from achieving the maximally possible pairwise delay with other jobs of type and of type at once, see Table 3. Note that this effect vanishes again for , considering the perturbed instance , for small .
Using our instance-reduction method of Section 2, tailored for instances with uniform testing times, or that of Dürr et al. [5], one can show as in [4] that we can restrict our analysis to the worst-case structure that uses for some arbitrarily small and an adversarial order of testing the jobs (in non-increasing order of processing times). Explicitly calculating the competitive ratio in this case, Dogeas et al. [4] show that the parameter yields the minimal competitive ratio of for -SIDLE. This also shows that it might be beneficial to consider tie-breaking rules and a value for specially structured instances, in contrast to the setting with arbitrary testing time, see Lemma 5.
Hence, we conclude that the competitive ratio obtained for -SORT crucially depends on the instance having distinct testing times that an adversary can structurally exploit (see Remark 13) or on adversarial tie-breaking respectively.
4 Randomized Algorithms for Uniform Testing Times
In this section, we consider a randomized variant of -SORT on instances with uniform test times, in which we uniformly randomize the test order and then run -SORT for a fixed value of . As a tie-breaker, we may also prioritize processing over testing for all pairs of all jobs as for -SIDLE [4]. This randomization step accounts for the fact that -SORT tests jobs in the worst-case instances in exactly the opposite order to the optimal algorithm. This algorithm is a variant of the RANDOM algorithm for optional testing of Dürr et al. [5] in the obligatory testing setting.
In Section 4.1, we will compute the exact competitive ratio for this rule and show that it is minimized for with a competitive ratio of . In Section 4.2, we use a connection to the literature on stochastic scheduling with testing [10] via Yao's principle [18] that has not been used in the literature on adversarial models for scheduling with testing up to now giving us a lower bound of for any randomized algorithm. This bound has also been derived differently in [15] with a matching upper bound for an intricate sampling algorithm. We give a novel structural interpretation here and further show that a simple index rule, paired with randomization, is almost best possible for uniform testing times, as well. This section also shows that a significant part of the competitive ratio of -SORT is due to the adversarial testing order.
4.1 Exact Competitive Ratio
The expected pairwise delay between jobs with by -SIDLE for uniform testing times, i.e., for all jobs , for uniformly permuted tests is the following:
For the pairwise delay in the optimal solution, we have, as before, . As in Section 3, we start by computing pairwise bounds.
▶ Lemma 15. For uniform testing times, -SIDLE on a uniformly permuted test order achieves a competitive ratio of at most . This expression is minimized for with .
Proof. The bound on the ratio is achieved by a case distinction on Equation (9). We obtain a factor of at most in the first case, tight for , ; of in the second case, tight for ; and of in the last case, tight for . The bound of in the second case is dominated by the maximum of the bounds in the other two cases.
As in Section 3, we can leverage our instance-reduction scheme from Section 2 or that of Dürr et al. [5] to consider all pairs in a more amortized fashion and characterize the exact competitive ratio, similar to that of the algorithms RANDOM in [5] and -SIDLE in [4].
▶ Theorem 16. For uniform testing times, -SIDLE on a uniformly permuted test order achieves a competitive ratio of exactly
This expression is minimized for being the solution of and attaining a value of .
Proof. Let . Based on the Equation (9) for the pairwise delay, we can first apply the instance-reduction method and then explicitly optimize over the parameter set to obtain a closed-form solution. Since is linear when shifting processing times in , we can apply Lemma 2 to restrict all processing times in this interval to be either 0 or . For the competitive ratio, we obtain:
with short-hand notation equal to for , for , and 1 for . All processing times with can be shifted to for small , since they only appear in the denominator and with a positive sign. Hence, we can restrict ourselves to instances with three different processing times . Similarly as
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
in [4] and Section 3, for arbitrary fractions , let there be jobs of length 0, jobs of length , and jobs of length . For this family, we obtain:
(12)
For the optimal schedule for this family, we obtain, see [4]:
We can bound
and obtain a maximization problem in two variables. Solving this for each and minimizing the expression yields as stated. The detailed algebraic steps are relegated to Appendix B.
We conclude this section with a comparison of the exact competitive ratios of -SORT for arbitrary testing times, -SIDLE for uniform testing times, and -SIDLE for uniformly ordered tests.

Figure 2 Comparison of exact competitive ratios for uniform testing times.
▶ Remark 17. The competitive ratios of the three proposed scheduling rules are depicted in Figure 2. The worst-case instance structures for -SIDLE with a random test order are achieved by instances with for , instances with for , and instances with for , see Appendix B. For -SIDLE, the worst-case structure is similar, but slightly different, e.g., there is a mixed-case for some values of . For -SORT, the branch for remains the same as in Section 3, while it collapses to the one of -SIDLE on the branch for , see Remark 14. This figure also shows that the optimal value of increases as the adversary becomes less powerful across these three types of algorithms, and one balances the trade-off more in favor of exploitation.
In the following Section 4.2, we will see that there is a lower bound of . This means that a simple randomization step for instances with uniform testing times significantly reduces the competitive ratio.
4.2 A Lower Bound for Randomized Algorithms
In the stochastic counterpart of the scheduling problem with testing studied in this paper, we are given jobs to be scheduled on a single machine, with testing times for each job and random non-negative processing times independently drawn from a distribution with finite support and the objective is to minimize , see e.g., [9, 10, 17]. Following Levi et al. [10], an index rule is optimal for this stochastic scheduling problem. This index rule bears similarities with -SORT and uses indices for processing operations and being the unique solution of for the testing operation for job .
We explicitly use this via the connection between randomized algorithms for adversarial models and deterministic algorithms for stochastic models, established by Yao's principle [18]. This provides an alternative, direct explanation of the lower-bound family for uniform testing times, as also given in [15].
▶ Lemma 18. Any randomized algorithm for scheduling with obligatory testing on a single machine to minimize has a competitive ratio of at least .
Proof. Consider the instance as in [15] consisting of jobs with and independent drawn from a distribution attaining 0 and 2 with probability each. The priority value for testing operations is as for each job . Hence, scheduling the jobs without preemption is an optimal policy, and we compute its objective value as:
and the objective value of the optimal clairvoyant policy as
For , we obtain a ratio approaching .
5 Conclusion
In this paper, we developed an iterative instance-reduction method that is competitive-ratio-preserving, yielding highly structured instances on which the competitive ratio can be computed directly. We applied it to various index rules for scheduling with obligatory testing and showed how to precisely determine competitive ratios. With this, we showed that the exact competitive ratio of 1-SORT is the Golden Ratio, improving upon the bound of 1.861 in [4] and yielding the new best-known bound for scheduling with obligatory testing with arbitrary testing times on a single machine to minimize total completion time.
We believe our instance-reduction technique can also be leveraged to compute exact competitive ratios for other (index) rules that rely on pairwise structures in online optimization problems in scheduling and beyond. A natural next step arising from this research is to develop randomized algorithms for obligatory testing with non-uniform test times.
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
Declaration on AI Usage
The ideas and proofs in this paper were developed by the author, and the paper was written by the author. The model Claude Opus 5 by Anthropic was used to assist with simulations, validation of calculations, presentation discussions, and parts of the parameter optimization in Appendix B.
References
1 Susanne Albers and Alexander Eckl. Explorable uncertainty in scheduling with non-uniform testing times. In Christos Kaklamanis and Asaf Levin, editors, Approximation and Online Algorithms. WAOA 2020, volume 12806 of Lecture Notes in Computer Science, pages 127–142, Cham, 2021. Springer. doi:10.1007/978-3-030-80879-2_9.
2 Felix Buld and Andreas S. Schulz. Scheduling with testing: Competitive algorithms for minimizing the total weighted completion time in the adversarial model. In Vincent Chau, Christoph Dürr, Minming Li, and Pinyan Lu, editors, Frontiers of Algorithms, volume 15828 of LNCS, pages 64–77, Singapore, 2025. Springer. doi:10.1007/978-981-96-8312-3_5.
3 Romain Cosson, Jingwei Li, Alexander Lindermayr, and Jens Schlöter. Online scheduling with a stochastic signal. arXiv preprint arXiv:2607.17784, 2026.
4 Konstantinos Dogeas, Thomas Erlebach, and Ya-Chun Liang. Scheduling with obligatory tests. In Timothy Chan, Johannes Fischer, John Iacono, and Grzegorz Herman, editors, 32nd Annual European Symposium on Algorithms (ESA 2024), volume 308 of Leibniz International Proceedings in Informatics (LIPIcs), pages 48:1–48:14, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ESA.2024.48.
5 Christoph Dürr, Thomas Erlebach, Nicole Megow, and Julie Meißner. An adversarial model for scheduling with testing. Algorithmica, 82(12):3630–3675, 2020. doi:10.1007/s00453-020-00742-2.
6 Willard L. Eastman, Shimon Even, and I. Martin Isaacs. Bounds for the optimal scheduling of n jobs on m processors. Management Science, 11(2):268–279, 1964. doi:10.1287/mnsc.11.2.268.
7 Koppány István Encz, Monaldo Mastrolilli, and Eleonora Vercesi. Integrality gap preserving reductions. arXiv preprint arXiv:2609.19967, 2026.
8 Mingyang Gong, Zhi-Zhong Chen, and Kuniteru Hayashi. Approximation algorithms for multiprocessor scheduling with testing to minimize the total job completion time. Algorithmica, 86(5):1400–1427, 2024. doi:10.1007/s00453-023-01198-w.
9 Retsef Levi, Thomas Magnanti, and Yaron Shaposhnik. Scheduling with testing. Management Science, 65(2):776–793, 2019. doi:10.1287/mnsc.2017.2973.
10 Retsef Levi, Thomas Magnanti, and Yaron Shaposhnik. Scheduling with testing of heterogeneous jobs. Management Science, 70(5):2934–2953, 2024. doi:10.1287/mnsc.2023.4833.
11 Kao-Chuan Liang and Ya-Chun Liang. Hardness of obligatory-test scheduling on multiple machines. arXiv preprint arXiv:2606.02029, 2026.
12 Alexander Lindermayr, Guido Schäfer, Jens Schlöter, and Leen Stougie. Online flow time minimization with gradually revealed jobs. In Philip Bille, Seth Pettie, and Sabine Storandt, editors, 34th Annual European Symposium on Algorithms (ESA 2026), volume 388 of Leibniz International Proceedings in Informatics (LIPIcs), pages 128:1–128:22, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ESA.2026.128.
13 Alison Hsiang-Hsuan Liu, Fu-Hong Liu, Prudence W.H. Wong, and Xiao-Ou Zhang. The power of amortization on scheduling with explorable uncertainty. In Jarosław Byrka and Andreas Wiese, editors, Approximation and Online Algorithms. WAOA 2023, volume 14297 of Lecture Notes in Computer Science, pages 90–103, Cham, 2023. Springer. doi:10.1007/978-3-031-49815-2_7.
14 Rajeev Motwani, Steven Phillips, and Eric Torng. Nonclairvoyant scheduling. Theoretical Computer Science, 130(1):17–47, 1994. doi:10.1016/0304-3975(94)90151-1.
15 Václav Rozhoň. Test or run? Scheduling jobs of unknown length. arXiv preprint arXiv:2608.30911, 2026.
16 Uwe Schwiegelshohn. An alternative proof of the Kawaguchi-Kyan bound for the Largest-Ratio-First rule. Operations Research Letters, 39(4):255–259, 2011. doi:10.1016/j.orl.2011.06.007.
17 Zhankun Sun, Nilay Tanik Argon, and Serhan Ziya. Patient triage and prioritization under austere conditions. Management Science, 64(10):4471–4489, 2018. doi:10.1287/mnsc.2017.2855.
18 Andrew Chi-Chih Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science, pages 222–227. IEEE, 1977. doi:10.1109/SFCS.1977.24.
A Exact Competitive Ratio of -SORT for
Proof of Theorem 12 for . Let be an instance with job types as in Theorem 9. Suppose we have an instance consisting of jobs of type , where and .
Consider the case of first. Using Equation (2) and Table 3 to compute the pairwise delays; and further ; we obtain:
(17)
and similarly, for the optimal schedule, using Equation (1), Table 3 and :
(18)
We can rewrite
In addition, the ratio approaches the latter ratio as , allowing us to focus on the limiting case with fixed.
If , then we are done. Otherwise, we consider two cases: Either consider the type of instance , parametrized by , , , or instance , parametrized by , , where all jobs of type are converted to jobs of type in or to jobs of type in . Using Equation (19), we have that
for instance and analogously for instance using and :
Exact Competitive Ratios of Index Rules for Scheduling with Obligatory Testing
Since at least one of the two conditions on holds, we can find a family of instances that achieves the same competitive ratio or worse in the limit.
For , we use the same proof strategy with slightly different terms to show that there exists an instance family such that that achieves the same competitive ratio or worse.
Using Equation (2) and Table 4 to compute the pairwise delays; and further ; we obtain:
(22)
For the optimal schedule, using Equation (1), Table 4 and , it follows:
(23)
We can rewrite
In addition, the ratio approaches the latter ratio as , allowing us to focus on the limiting case with fixed.
If , then we are done. Otherwise, , and we consider two cases: Either consider the type of instance , parametrized by , , , or instance , parametrized by , , where all jobs of type are converted to jobs of type in or to jobs of type in . Using Equation (24) and , we have that
for instance and analogously for instance using :
We have that
Hence, at least one of the two conditions on holds, we can find a family of instances that achieves the same competitive ratio or worse in the limit.
B Parameter Optimization in the Proof of Theorem 16
This section presents the algebraic derivations within the parameter optimization for Equation (14), in particular:
As a first step, we show that we can restrict ourselves to parameter combinations with or . For this, we use that if and , we can rewrite the function as a convex combination of the two with parameters , , and , . These are chosen such that all three parameter combinations share the same denominator, and the convex combination uses coefficients and . We have that , since , and , and the calculation reads:
The left-hand side is bounded from above by the maximum of the two expressions for and . Hence, we are left with two single-parameter optimization problems.
For the first, we keep fixed and vary . Differentiating and solving for stationary points yields and . For , we hence have and a function value of . For , we have , since , and a function value of .
For the second, we keep fixed and vary . Differentiating and solving for stationary points yields and . We hence have and a function value of .
Comparing the optimal expressions from the single-parameter optimizations for , we have that , hence the former term dominates on this branch. The comparison on the branch with leads to an intersection at , the solution of , where dominates for and dominates for values .
Overall, we obtain the expression for the competitive ratio as stated in Equation (10). The instances in the proof of Theorem 16 are parametrized such that there are jobs of length 0, jobs of length , and jobs of length . Hence, we get instances only consisting of jobs with for , instances with for , and instances with for .