WorksComputer Science
Improved Bounds for Online TSP on the Half-Line
Abstract
In the open online traveling salesperson problem, requests appear over time at different positions of a metric space. A single agent traveling at unit speed must serve all requests, by visiting their positions, with the objective of minimizing the completion time. We propose online algorithms for this problem for the case that the metric space is the half-line. First, we present a -competitive algorithm in which the server always either moves at unit speed or remains stationary, which improves on the previously best-known ratio of . We further observe that algorithms must sometimes move slower than unit speed to achieve competitive ratios below . We introduce a second algorithm that beats the barrier of by carefully modulating its speed, and prove a tight bound of on its competitive ratio. Finally, we slightly strengthen a known lower bound on the best-possible competitive ratio on the half-line from to .
Introduction
We study the online traveling salesperson problem (TSP) on the half-line. In this problem, requests of the form are revealed over time, where denotes the release time and the position of the request. A single server, initially located at the origin and moving at speed at most 1, must serve every request by visiting position at some time not earlier than time . In the online setting, the algorithm only learns about a request at its release time, whereas an offline algorithm knows the entire request sequence from time 0. The objective is to minimize the makespan, i.e., the time when all requests are served. Note that the offline setting does not coincide with the classical TSP, as the offline algorithm is still restricted to serving a request after its release time. Furthermore, we consider the open version of the problem, where, in contrast to the closed version, the server does not need to return to the origin.
Online TSP models dynamic routing scenarios arising, for instance, in robotic maintenance, cleaning, or collection tasks where jobs appear over time. In many such settings, the depot lies at the boundary of a one-dimensional operating region, such as inspection along a track, pipeline, or corridor, so that the underlying metric space is the half-line, making it a natural case to study. While the online TSP has been extensively studied in many variants [3, 4, 5, 13, 19, 20, 21, 26], in particular for the underlying metric space being the real line or higher-dimensional Euclidean spaces , we focus here on algorithms tailored specifically to the half-line . Although this setting appears simple at first glance, obtaining optimal strategies turns out to be surprisingly challenging. The half-line has fundamentally different structural properties due to the lack of symmetry around the origin, and it seems that optimal strategies cannot be obtained by simple adaptations of known algorithms. For instance, we will see that, unlike any algorithm previously proposed for online TSP, an optimal online strategy on the half-line must already start moving before the first request is revealed.
As usual in online optimization, we measure the quality of a (deterministic) algorithm in terms of competitive analysis. For an algorithm Alg and a request sequence , let denote the completion time of Alg on , and let denote the completion time of an optimal offline solution. We say that Alg is -competitive if for every request sequence . The competitive ratio of Alg is the infimum over all such , and the competitive ratio of the problem is the best ratio achievable by any online algorithm.
Throughout the paper, we assume without loss of generality that every request satisfies . Indeed, since the server moves at speed at most 1, even the offline optimum cannot reach position before time , and is therefore unaffected by this assumption. Moreover, an online algorithm could only benefit from learning about a request earlier. Hence, this assumption is justified when the request sequence is constructed adversarially and does not affect the competitive ratio of the problem.
Finally, we introduce the following notational conventions. Given an online algorithm Alg, we write for the position of the server at time . For a request sequence , we sometimes abbreviate the completion times and by Alg and Opt when the sequence is clear from context. At any point in time, the server can move in (at most) two directions. We refer to the direction towards the origin as left and to the direction away from the origin as right.
Our results. We begin by introducing the algorithm LeftFirst (cf. Algorithm 1), which follows a very simple strategy: it prioritizes requests that lie to the server’s left over those to its right. We show that this algorithm achieves a competitive ratio of 2, improving on the previously best-known ratio of 2.04 [12]. We further observe that no algorithm restricted to moving either at full speed or not at all can achieve a better competitive ratio.
Theorem 1. The algorithm LeftFirst is 2-competitive for online TSP on the half-line. Moreover, this ratio is optimal among all algorithms in which the server is restricted to speeds 0 and 1.
In particular, the theorem shows that fundamentally new ideas are required to beat the barrier of 2. Our main contribution is to propose such an idea in the form of a parameterized algorithm LeftGuard() for (cf. Algorithm 2). Its strategy can be summarized as follows. The algorithm maintains at all times that , enabling the server to reach requests to its left in a timely manner. It assigns strict deadlines to such requests and prioritizes requests to its right if and only if these deadlines can still be met. Our main result is a careful analysis of this algorithm. We show that, for , it achieves a competitive ratio of 1.75. After identifying the most difficult instances for LeftGuard, a key ingredient of our proof is an LP-duality argument that yields sharp performance bounds. Moreover, we prove that this analysis is tight in the sense that LeftGuard() has competitive ratio at least 1.75 for every choice of .
Theorem 2. LeftGuard(0.75) is 1.75-competitive for open online TSP on the half-line. Moreover, the choice is optimal.
We complement our result with a general lower bound on the best-possible competitive ratio that slightly improves the known lower bound of 1.627 [27].
Theorem 3. Every algorithm for open online TSP on the half-line has competitive ratio at least 1.6463.
Related work While this is, to the best of our knowledge, the first work to specifically focus on open online TSP on the half-line, the problem has been studied before on other metric spaces. Most notably, Bjelde et al. tightly analyzed the problem on the line with a competitive ratio of 2.04 [12]. Their upper bound also applies to the special case of the half-line and, prior to our work, was the best-known upper bound in this setting. Their lower bound extends to general metric spaces and remains the best-known lower bound there. The best-known algorithm for general metric spaces, introduced by Bonifaci and Stougie, achieves a competitive ratio of [14].
By contrast, the closed version of the problem has been tightly analyzed in all three cases: It has a competitive ratio of 2 on general metric spaces [5], of 1.64 on the line [5, 12] and of 1.5 on the half-line [13]. The optimal algorithm for the closed version on the half-line follows a strategy that can be viewed as the “opposite” of our algorithm LeftFirst: That algorithm moves right whenever a request to the server’s right is available and otherwise moves left.
Online TSP has also been investigated in several related settings, for instance when the metric space is a circle [21], when distances are asymmetric [3], or when the request sequence satisfies additional structural assumptions [13, 26].
The online TSP can be viewed as a special case of the extensively studied online dial-a-ride problem [2, 8, 10, 11, 18, 25, 27], where each request is a transportation request consisting of a release time, a starting position, and a destination. In other words, the online TSP corresponds to the special case of online dial-a-ride in which starting position and destination always coincide. Classical online dial-a-ride strategies include Ignore, which repeatedly recomputes a schedule for the currently unserved requests [9, 24]; Replan, which greedily recomputes an optimal tour whenever a new request arrives [5, 9, 24]; and Lazy, which deliberately delays service to aggregate requests before executing a tour [8, 27].
Other online variants of the TSP focus on different types of uncertainty. In online graph exploration [6, 16, 17, 23], the metric space is initially unknown and all vertices must be visited. In universal TSP [15, 22], the goal is to find a fixed master tour that is competitive for any subset of active requests. Recently, Abrahamsen et al. [1] introduced a model where requests are revealed one by one and must be irrevocably sorted to minimize total travel distance, rather than minimizing the makespan for requests arriving over time.
Warm-up: moving at speed 1 or 0
Before considering the problem in full generality, we first consider the easier case where the server is only allowed to move at full speed or not move at all. We first observe a simple lower bound on the competitive ratio of this variant of the problem.
Lemma 4. If the server is only allowed to move at speed 1 or 0, the competitive ratio of open online TSP on the half-line is at least 2. The same lower bound applies when the server is not allowed to move before the first request is revealed.
Proof. Fix an algorithm Alg in which the server can move only at speed 0 or 1. Then there exists some time such that, before time , the server has not changed its speed. Hence . If , we release the request , and if , we release the request . In both cases, we have OPT , but have Alg not complete the request before time . Therefore, the competitive ratio is at least 2. Observe that even if the server is allowed to move at intermediate speeds, as long as it does not move before the first request is revealed, the same argument still applies.
Next, we give an algorithm whose competitive ratio matches this lower bound.
Algorithm 1: LeftFirst
if there is a left-request:
MoveLeft
else
if there is a right-request:
MoveRight
else
Stay
A 2-competitive algorithm
When considering algorithms for online TSP on the half-line (or even on the line), observe that, at any point in time, the algorithm only needs to consider at most two requests: the request with the leftmost position among all unserved requests to the algorithm’s left (referred to as the left-request) and the request with the rightmost position among all unserved requests to the algorithm’s right (referred to as the right-request). At some times, there may be no left-request or no right-request. This is the case when all unserved requests lie on the same side of the server. If there are multiple requests at the same position, we select the one with the latest release time. By serving the left- and right-request, the algorithm necessarily also serves all other requests on the way. In our analysis, we therefore consider only left- and right-requests. The online algorithm is thus defined by a strategy that determines when to serve the left-request, when to serve the right-request, and when to wait.
The algorithm LeftFirst is formally defined in Algorithm 1 and follows a simple strategy: It prioritizes left-requests over right-requests. More precisely, whenever a left-request is available, the server executes command MoveLeft, i.e., travels towards the origin at full speed (note that MoveLeft is never invoked when the server is located at the origin). If no left-request is available but a right-request exists, the server executes command MoveRight, i.e., it moves away from the origin at full speed. If there are no unserved requests, the server follows command Stay, i.e., remains stationary.
Before turning to the analysis of the algorithm, we state a simple observation that will be useful throughout our paper. Since the offline optimum cannot serve requests before they are released, the following holds.
Observation 5. If is the release time of any request of the input sequence, then .
Now we have all the prerequisites at hand to analyze the algorithm LeftFirst.
Theorem 6. LeftFirst is 2-competitive.
Proof. Fix an arbitrary request sequence. Let denote the last request served by LeftFirst. First, observe that, if is a left-request, we have
where we have made use of the fact that since the server cannot move at speed more than 1. Therefore, we can assume from now on that is a right-request.
Next, observe that, if the server does not move left after time , we have
where we have used the assumption that every request fulfills . Therefore, we can assume from now on that there was an unserved left-request after time and let denote the last left-request served by LeftFirst. Observe that we have
We now distinguish the following two cases: (1) the offline optimum serves before , or (2) the offline optimum serves before . In the first case, we have
With (1) and (2), we obtain
In the second case, i.e., where Opt serves before , we have
Moreover, observe that we have because either or and therefore was an unserved right-request at time . With (1) and (3), we obtain
To summarize, we have in either case that , which completes the proof of the theorem. □
Note that Theorem 6 and Lemma 4 together complete the proof of Theorem 1.
Improved algorithm for open online TSP on the half-line
In this section, we prove our main result (Theorem 2), i.e., we prove that the competitive ratio of open online TSP on the half-line is at most 1.75. For this, we begin by introducing the algorithm LeftGuard.
The algorithm LeftGuard
The algorithm LeftGuard is formally defined in Algorithm 2. It is parameterized by a value and we let denote the current time. Its intuition can be summarized as follows: First, recall that no algorithm is better than 2-competitive if the server does not move while being idle (Lemma 4), so we let the server move at speed before the first request is revealed. As before, we always consider at most two requests: the left-request and the right-request. The most important property of our algorithm is that every left-request has a strict deadline, meaning that it must be served no later than at time . To make this possible, the server maintains at every time that . Therefore, whenever a new left-request appears, the server is located at so that, by moving left immediately, position can be reached by time . However, if the server can serve a right-request without violating the deadlines of left-requests, it proceeds to do so. Note that a right-request can be reached by time , where the first term corresponds to moving from to at unit speed, and the second term is the arrival time at in case becomes tight. Therefore, the server prioritizes a right-request over a left-request if and only if .
Algorithm 2: LeftGuard($\alpha$)
if there is a left-request $r_L=(t_L,p_L)$:
if there is a right-request $r_R=(t_R,p_R)$ with
$\max\{t+p_R-\operatorname{pos}(t),\frac{p_R}{\alpha}\}+p_R-p_L\le(1+\alpha)t_L$:
MoveRight($\alpha$)
else
MoveLeft
else
MoveRight($\alpha$)
Algorithm: MoveRight($\alpha$)
if $\operatorname{pos}(t)<\alpha t$:
move right at speed 1
else
move right at speed $\alpha$
Algorithm: MoveLeft
move left at speed 1
The algorithm definition contains the subroutines MoveLeft and MoveRight(). When MoveLeft is invoked, it simply orders the server to move towards the origin at unit speed (observe that MoveLeft is never invoked when the server is located at the origin). MoveRight() depends on the parameter and orders the server to move away from the origin at full speed while maintaining that . In other words, the server moves at speed 1 as long as and at speed when . In particular, the server always moves either at speed 1 or at speed . When it moves at speed , we say that it slows down.
Let us summarize the most important properties that immediately follow from the algorithm’s definition.
Observation 7. LeftGuard() fulfills the following properties.
i) At every time , the server position fulfills .
ii) Every left-request is served no later than at time , unless a new left-request appeared before time .
iii) Every right-request is served no earlier than at time . Moreover, if the server is slowed down (i.e., moving at speed ) at the time of serving , it is served precisely at time .
Upper bound for the competitive ratio of LeftGuard
We now turn to analyzing the algorithm LeftGuard. More precisely, we show the following.
Theorem 8. For , the competitive ratio of LeftGuard() is upper-bounded by
Note that, by setting , we obtain a competitive ratio of 1.75 (cf. Figure 1), i.e., the statement of the first part of Theorem 2 follows.

Figure 1. Bounds on the competitive ratio from Theorem 8 as a function of .
We now prove Theorem 8. To this end, for the remainder of this subsection, we fix an arbitrary input sequence of requests, and we show that LeftGuard() achieves the claimed ratio on this sequence. We denote by Opt an optimum offline solution, or its completion time, depending on context. We denote the last right-request served by LeftGuard() by , and the last left-request served by LeftGuard() by . In case there is no left-request, Observations 5 and 7 iii) immediately bound the competitive ratio by , and in case there is no right-request, Observations 5 and 7 ii) bound it by . Similarly, we immediately obtain the desired bounds in the following two cases.
Observation 9. If one of the following conditions holds, then LeftGuard() completes the request sequence by :
i) LeftGuard() serves after .
ii) LeftGuard() serves while moving at speed .
Therefore, we assume from now on that and both exist, and that the server first served and then moved at full speed to . Next, we identify two further simple cases within these assumptions.
Lemma 10. Assume that LeftGuard() serves before and always moves at unit speed after serving . If one of the following two conditions holds, the request sequence is completed by time .
i) serves before .
ii) .
Proof. In both cases, serves neither of earlier than at time , and then travels to the other request, which takes time units. Therefore,
By assumption, LeftGuard first serves and then moves at full speed to . By Observation 7 ii), is reached no later than and then moving to takes time units. It follows that the request sequence is completed by time
The remaining case turns out to be the most difficult to analyze and constitutes the crux of our proof. While the two previous results hold for any , we need in the following lemma that . This is a reasonable assumption, since for , the bound from Observation 9 is already significantly worse than the bound of 2 achieved by LeftFirst.
Lemma 11. Let . Assume that LeftGuard() serves before and always moves at unit speed after serving . Additionally, assume that and serves before . Then LeftGuard() completes the request sequence by time .
Proof. First, observe that in the given setting, when appeared at time , the server decided not to detour to serve before . In other words, at time , the condition in line 2 of Algorithm 2 was violated, i.e., we have
Further, note that the completion time of is given by
and the completion time of the offline optimum is bounded by
Next, we will make use of the following observation: The behavior of is invariant under multiplying all release times and positions by the same factor . In particular, this allows us to assume w.l.o.g. that by rescaling by (if , then is trivial). Summarizing our findings, it follows that the competitive ratio is bounded by the maximum value of the following optimization problem (here, , , , , , , are interpreted as variables of the optimization problem):
Observe that the problem is not linear due to the maximum in (5). Therefore, we now distinguish the two cases and . For each of the two cases, we obtain a linear program, which allows us to use duality. In the end, the competitive ratio will be bounded by the maximum of the two values of the optimization problems.
First, we consider the case . Here, we obtain the following LP, where it turns out that the condition can be dropped.
Writing , a relaxation (P) of the LP and its dual (D) can equivalently be written as
and
By weak duality, any feasible solution to the dual provides an upper bound on the optimum value of the primal. The dual solution is feasible for and has objective value .
Next, we consider the case . Here, we obtain the following LP, where it turns out that the condition can be dropped.
As before, we can write the dual (D) of the relaxed LP as
The dual solution is feasible for (more precisely, the second-to-last inequality holds for , and all other inequalities hold for all ). The corresponding objective value is .
Together, we obtain that the competitive ratio is bounded by . □
Let us summarize the different cases we considered to prove Theorem 8.
Proof of Theorem 8. First, we noted that, in case there is no left-request or no right-request, we easily obtain a bound of on the competitive ratio. Therefore, we can assume that a left- and right-request exist and let denote the last-served left-request and the last-served right-request. By Observation 9, we can assume that the server first served and then moved at full speed to (otherwise, we obtain a bound of ). By Lemma 10, we can additionally assume that Opt serves before and that was released before (otherwise, we obtain a bound of ). Finally, we showed in Lemma 11 that, under these assumptions, the competitive ratio is bounded by .
Lower bound for the competitive ratio of LeftGuard
In this subsection, we present two lower-bound constructions for LeftGuard, showing that the analysis in § 3.2 is tight in the sense that no choice of yields a competitive ratio below for LeftGuard (i.e., we prove the second part of Theorem 2).
Lemma 12. The competitive ratio of LeftGuard is at least for every .
Proof. First, consider the input sequence consisting of the single request . Note that LeftGuard executes MoveRight before time so that . Therefore, the request is served by time . On the other hand, Opt serves the request immediately at time by waiting at the origin. Therefore, the competitive ratio is at least .
Next, consider the input sequence consisting of the single request . Since is a right-request, by Observation 7 iii), LeftGuard completes it not earlier than at time , while we have . Therefore, the competitive ratio is at least .
Lemma 13. The competitive ratio of LeftGuard is at least for .
Proof. Consider the input sequence consisting of the three requests , and where . Observe that for , so the requests indeed arrive in the order given above.
Opt can serve the requests by moving to position at time and then moving to position , i.e., we have
On the other hand, LeftGuard moves away from the origin at speed until time so that . By moving back to the origin at unit speed, LeftGuard could serve the first request at time
which is the maximum time allowed to serve the first request according to the algorithm definition. Therefore, LeftGuard cannot decide to serve another right-request before serving the left-request at position , or before another left-request is revealed. Hence, LeftGuard serves the left-request at position at time , and then moves right at maximum speed while maintaining to serve the right-request at position . Since , we obtain , i.e., the request is still unserved when the new left-request arrives.
If LeftGuard served the right-request first, it would arrive at the left-request at time
hence LeftGuard has to move to the left-request first before serving the right-request. It follows that LeftGuard finishes at time
Together with (10) and letting , we obtain that the competitive ratio is at least .
For , Lemma 12 yields the lower bound on the competitive ratio of LeftGuard. For , the competitive ratio is at least by Lemmas 12 and 13. This completes the proof that LeftGuard has competitive ratio at least for any choice of (i.e., the second part of Theorem 2).
General lower bound for online TSP on the half-line
In the following, we fix an arbitrary online algorithm ALG and prove a general lower bound for the competitive ratio of online TSP on the half-line.
Theorem 3. Every algorithm for open online TSP on the half-line has competitive ratio at least .
It is immediate to see that no online algorithm for the TSP on the half-line can achieve a competitive ratio strictly smaller than : At time , we reveal either a request at if , or a request at otherwise. In both cases, we have ALG and OPT .
For the remainder of this section, we fix and assume that ALG has competitive ratio strictly less than . We progressively introduce requests that, based on the fact that it must be -competitive if no further requests appear, constrain ALG’s behavior more and more. Specifically, we present two fixed requests, followed by three requests that depend on ALG’s behavior. Based on the derived restrictions on ALG, we show that the resulting request sequence yields a lower bound of . We denote by the time when the request is served by ALG and formally define the adversarial request sequence as follows.
Definition 14 (Adversarial request sequence). We present an adversarial request sequence consisting of the requests
and ,
, where ,
for some to be determined later,
depending on ALG’s behavior: i. if and , then with , ii. otherwise, .
We show in Lemmas 15 and 18 that this sequence is well-defined, in the sense that the time in the second step and, if needed, the time in the fourth step exist.
The adversarial sequence is illustrated in Figure 2 for . The figure also shows the trajectory of the optimum offline solution for the entire request sequence, as well as the best possible trajectory of ALG.

Figure 2. Adversarial request sequence for the lower bound in Theorem 3 for , with the best possible trajectory of Alg in blue and the trajectory of the offline optimum in orange. Curved lines in Alg’s trajectory indicate that the online algorithm has degrees of freedom in its behavior, whereas straight lines indicate that any other behavior increases the lower bound on the competitive ratio. Dashed lines show that there are two possible trajectories. The trajectories marked (i) and (ii) correspond to the two cases in the definition of .
By we denote the sequence of requests revealed up to and including request , and we write and for the cost of ALG and the offline optimum, respectively, for serving the request sequence . Moreover, we write for the schedule ALG computes for the request sequence , i.e., ALG’s behavior if only the requests were revealed. Note that the serving times are always w.r.t. the full schedule .
The following lemma establishes that the time as described in the second step of Definition 14 exists and falls within certain bounds.
Lemma 15. After releasing the requests and of Definition 14, there exists a time with such that . Moreover, .
Proof. Observe that, before the first request is revealed, the server needs to be able to handle the case where the first request is of the form with . In this case, the offline optimum’s cost is and the server must be able to serve the request before time . Note that since the server is restricted to unit speed. It follows that . Equivalently, we have
This implies that, when is revealed at time , we have , and it follows that
Moreover, because Alg is -competitive for the request sequence , i.e., is already served when is revealed. From (9), it follows that
With this, we obtain that there is a time where : Let . At time , we have . When request is served at time , we have , where the first inequality holds for . Therefore, by continuity of and , there exists such that . Since and, as we show below, every time with satisfies , the minimum in the definition of exists and lies in .
It remains to prove the claimed upper and lower bounds on . To this end, note that is served no earlier than time . Moreover, (wait at until time and then move up to ) so that . Reformulating and using yields
To bound from below, observe that, using (9) and , we have for all that . By definition of time , it therefore holds that
or, equivalently, . The same argument applies to every time with .
To prove restrictions on Alg’s behavior, we use the fact that Alg’s competitive ratio is strictly less than for the request sequences and , whose optimum offline cost can be bounded.
Observation 16. It holds that
Proof. An offline algorithm can serve by moving to at time and then moving back to to serve and at time , since , achieving completion time .
For , the offline optimum can wait at until time and then move to , serving on the way.
The time is chosen precisely such that is forced to serve before , as the alternative would not be competitive in case no more requests are released.
Observation 17 (Planned order of and ). serves before .
Proof. Otherwise, would finish the request sequence no earlier than
contradicting that has competitive ratio strictly less than .
We can now prove lower bounds on the competitive ratio of , depending on which request is released.
Lemma 18. If and , then the adversarial request sequence is well-defined in the sense that as described in Definition 14 exists, and
Proof. Since and is not yet served at time , the server has to cross position at some time after . Therefore, the request is well-defined.
Between times and , only requests up to are present, so the offline optimum cost is by Observation 16. Since is -competitive, must therefore serve before time . This implies that
Since and since and are not yet served by at time , we have . Moreover, . It follows that
To prove a lower bound on the competitive ratio in the second case, we first establish that must plan to serve before , and we derive a lower bound on the time is served. We prove the claimed serving order by contradiction: assuming the opposite, we can construct an additional request for which the resulting request sequence even yields a lower bound of .
Lemma 19 (Serving order of and ). serves before .
Proof. Assume, for the sake of contradiction, that serves the request before . We will derive a contradiction to the assumption that by presenting a request that forces to have competitive ratio at least .
As a first step, we prove that . Suppose for the sake of contradiction that . At time , only requests , , and have been released,
and, by Observation 16, . Observe that must have served before time (i.e., ), as, otherwise,
implying that
This contradicts the assumption that . Note that , as the server needs to reach after time . With this, we obtain that
This yields
where the last inequality holds for . It follows that , which completes the first step.
Define . It holds that . Let denote the time when serves . Then , where , as it takes at least time units to serve before . Therefore, there exists a time such that . Consider the potential request . could complete the sequence by waiting at until time , and then moving to with total cost . Since is -competitive, it must be able to serve all requests of before time . On the other hand, since the server is located at and with , we have that
This contradicts the assumption that , which implies that the initial assumption that serves before is false.
To establish a lower bound on the serving time of , we make use of the fact that must plan to serve before (Observation 17).
Lemma 20 (Serving time of ). If , it holds that .
Proof. Recall that, by Observation 17, serves before . Moreover, by Lemma 15, . It follows that either or both requests are served after appears, i.e., and . If , we obtain, by definition of ,
For the case that and , we analyze the position of the server at time . Since serves before , we have that
or, equivalently, . Using , it follows that
:::
Combining the previous two lemmas, we can prove a lower bound on the competitive ratio for the second case. Here, the main observation is that it is always optimal for Alg to serve , then and then , which allows us to use the lower bound on to obtain a lower bound on the competitive ratio for .
Lemma 21. Let . If or , then
Proof. The adversarial sequence concludes by releasing at time . The optimum cost for the entire sequence is (immediately move to and back to the origin by time ). By Lemma 19, serves before . If , i.e., has already been served when appears, then we have . It follows that . In the other case (i.e., ), we have and by assumption. Moreover, we can show that , i.e., is served before and : Otherwise, since serves before (Lemma 19), it holds that
contradicting . Since and , the fastest way for to complete the sequence is to serve before . As before, we obtain . It follows that
To prove Theorem 3, we combine the bounds of Lemma 18 and Lemma 21 and choose such that both bounds are equal. To ensure that the lower bounds still apply, we first verify that this choice of is valid in the sense that .
Lemma 22. Let and . If satisfies
then .
Proof. Notice that the left side of (11) is decreasing in and the right side of (11) is increasing in , as
and . For , the left-hand side becomes
and the right-hand side becomes
We want to show that , as this implies that both sides can become equal only for some . Notice that, as and , is increasing in and is decreasing in . Therefore, it suffices to show for , which is the smallest possible value of . For this choice of , we have
so reduces to
where the right-hand side has roots and and negative leading coefficient. Therefore, it is positive for .
The resulting lower bound on the competitive ratio depends on the value chosen by the algorithm. To find an unconditional lower bound, we prove that it is increasing in , and determine its value for the smallest possible . To this end, we use the following intermediate lemma, stating that our choice of to make the bounds of Lemma 18 and Lemma 21 equal is increasing in .
Lemma 23. Assume that is fixed and is maximal such that
Then is increasing and differentiable in for all .
Proof. The function can be determined by reformulating (12), where we note that the denominators are non-zero, as by Lemma 22:
Note that , as and . Hence, the two roots of this quadratic equation in have product , so is a simple root and therefore differentiable in .
To show that is increasing, we consider the two sides of (12) as functions of and , i.e.,
For fixed , is increasing in and is decreasing in . Hence, for , we have
Moreover, as in the proof of Lemma 22, for fixed , is decreasing in and is increasing in . Thus, is decreasing in , positive for and zero for , which implies .
Using this lemma, we can now show that the lower bound itself increases in .
Lemma 24. Assume that is fixed and is maximal such that
Then is increasing in for .
Proof. Computing the derivative of using the left side yields
while the right side yields
It follows that
If , then by the first equality. Otherwise, we have . Using and (Lemma 23), we obtain that , hence by the second equality. □
Combining the previous lemmas, we can now prove Theorem 3.
Proof of Theorem 3. Lemmas 18 and 21 combined yield that, for every and every , we have
The remainder of the proof is purely analytical and dedicated to showing that, for every and , there exists such that , contradicting (15).
To this end, we choose the maximal such that the two values in the minimum coincide. By Lemma 15, we have that , and therefore, Lemma 22 gives , so that the lower bound still applies. Moreover, it follows from Lemma 24 that the resulting lower bound is increasing in . Therefore, we obtain a general lower bound by setting (since we have proven in Lemma 15 that is lower bounded by this value). Plugging this in, we obtain
resulting in
and a lower bound on the competitive ratio of
which decreases in and equals for some . Hence, for every , this lower bound is strictly larger than , a contradiction. Therefore, no algorithm has competitive ratio less than 1.6463. □
Disclosure of AI usage
The results presented in this paper and its preliminary version [7] were obtained without any AI assistance. In preparing the present paper, the authors used Claude Opus 5.5 for minor language edits.
References
- [1]Mikkel Abrahamsen, Ioana O. Bercea, Lorenzo Beretta, Jonas Klausen, and László Kozma. Online sorting and online TSP: randomized, stochastic, and high-dimensional. In Proceedings of the 32nd Annual European Symposium on Algorithms (ESA), pages 5:1–5:15, 2024. doi:10.4230/LIPIcs.ESA.2024.5.DOI
- [2]Norbert Ascheuer, Sven Oliver Krumke, and Jörg Rambau. Online dial-a-ride problems: Minimizing the completion time. In Proceedings of the 17th Annual Symposium on Theoretical Aspects of Computer Science (STACS), pages 639–650, 2000. doi: 10.1007/3-540-46541-3_53.DOI
- [3]Giorgio Ausiello, Vincenzo Bonifaci, and Luigi Laura. The on-line asymmetric traveling salesman problem. Journal of Discrete Algorithms, 6(2):290–298, 2008. doi:10.1016/J.JDA.2007.03.002.
- [4]Giorgio Ausiello, Marc Demange, Luigi Laura, and Vangelis Th. Paschos. Algorithms for the on-line quota traveling salesman problem. Information Processing Letters, 92(2):89–94, 2004. doi:10.1016/J.IPL.2004.06.013.
- [5]Giorgio Ausiello, Esteban Feuerstein, Stefano Leonardi, Leen Stougie, and Maurizio Talamo. Algorithms for the on-line travelling salesman. Algorithmica, 29(4):560–581, 2001. doi: 10.1007/S004530010071.
- [6]Júlia Baligács, Yann Disser, Irene Heinrich, and Pascal Schweitzer. Exploration of graphs with excluded minors. Journal of Computer and System Sciences, 156:103725, 2026. doi: 10.1016/J.JCSS.2025.103725.DOI
- [7]Júlia Baligács, Yann Disser, and Linda Thelen. Improved bounds for online TSP on the half-line. In Proceedings of the 20th Scandinavian Symposium on Algorithm Theory (SWAT), pages 4:1–4:17, 2026. doi:10.4230/LIPIcs.SWAT.2026.4.DOI
- [8]Júlia Baligács, Yann Disser, Farehe Soheil, and David Weckbecker. Tight analysis of the lazy algorithm for open online dial-a-ride. In Proceedings of the 18th International Algorithms and Data Structures Symposium (WADS), pages 43–64, 2023. doi:10.1007/978-3-031-38906-1_4.DOI
- [9]Alexander Birx. Competitive analysis of the online dial-a-ride problem. PhD thesis, TU Darmstadt, 2020.DOI
- [10]Alexander Birx and Yann Disser. Tight analysis of the smartstart algorithm for online dial-a-ride on the line. SIAM Journal on Discrete Mathematics, 34(2):1409–1443, 2020. doi:10.1137/19M1268513.DOI
- [11]Alexander Birx, Yann Disser, and Kevin Schwiecker. Improved bounds for open online dial-a-ride on the line. Algorithmica, 85(5):1372–1414, 2023. doi: 10.1007/S00453-022-01061-4.DOI
- [12]Antje Bjelde, Jan Hackfeld, Yann Disser, Christoph Hansknecht, Maarten Lipmann, Julie Meißner, Miriam Schlöter, Kevin Schwieor, and Leen Stougie. Tight bounds for online TSP on the line. ACM Transactions on Algorithms, 17(1):3:1–3:58, 2021. doi:10.1145/3422362.DOI
- [13]Michiel Blom, Sven O. Krumke, Willem E. de Paepe, and Leen Stougie. The online TSP against fair adversaries. INFORMS Journal on Computing, 13(2):138–148, 2001. doi: 10.1287/IJOC.13.2.138.10517.DOI
- [14]Vincenzo Bonifaci and Leen Stougie. Online k-server routing problems. Theory of Computing Systems, 45(3):470–485, 2008. doi:10.1007/S00224-008-9103-4.DOI
- [15]George Christodoulou and Alkmini Sgouritsa. An improved upper bound for the universal TSP on the grid. SIAM J. Comput., 53(5):1476–1523, 2024. doi:10.1137/17M1154849.
- [16]Romain Cosson. Breaking the k/log k barrier in collective tree exploration via tree-mining. In Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4264–4282, 2024. doi:10.1137/1.9781611977912.148.DOI
- [17]Yann Disser, Jan Hackfeld, and Max Klimm. Tight bounds for undirected graph exploration with pebbles and multiple agents. Journal of the ACM, 66(6):40:1–40:41, 2019. doi: 10.1145/3356883.DOI
- [18]Esteban Feuerstein and Leen Stougie. On-line single-server dial-a-ride problems. Theoretical Computer Science, 268(1):91–105, 2001. doi:10.1016/S0304-3975(00)00261–9.
- [19]Patrick Jaillet and Xin Lu. Online traveling salesman problems with service flexibility. Networks, 58(2):137–146, 2011. doi:10.1002/NET.20454.DOI
- [20]Patrick Jaillet and Xin Lu. Online traveling salesman problems with rejection options. Networks, 64(2):84–95, 2014. doi:10.1002/NET.21559.DOI
- [21]Vinay A. Jawgal, V. N. Muralidhara, and P. S. Srinivasan. Online travelling salesman problem on a circle. In Proceedings of the 15th International Conference on Theory and Applications of Models of Computation (TAMC), pages 325–336, 2019. doi: 10.1007/978–3–030–14812–6_20.DOI
- [22]Lujun Jia, Guolong Lin, Guevara Noubir, Rajmohan Rajaraman, and Ravi Sundaram. Universal approximations for TSP, Steiner tree, and set cover. In Proceedings of the 37th Annual ACM Symposium on Theory of Computing (STOC), pages 386–395, 2005. doi: 10.1145/1060590.1060649.DOI
- [23]Bala Kalyanasundaram and Kirk R. Pruhs. Constructing competitive tours from local information. Theoretical Computer Science, 130(1):125–138, 1994. doi: 10.1016/0304–3975(94)90155–4.
- [24]Sven O. Krumke. Online optimization: competitive analysis and beyond. Habilitation thesis, Zuse Institute Berlin, 2001.
- [25]Sven O. Krumke, Willem E. de Paepe, Diana Poensgen, Maarten Lipmann, Alberto Marchetti-Spaccamela, and Leen Stougie. On minimizing the maximum flow time in the online dial-a-ride problem. In Proceedings of the 3rd International Conference on Approximation and Online Algorithms (WAOA), pages 258–269, 2006. doi:10.1007/11671411_20.DOI
- [26]Sven Oliver Krumke, Luigi Laura, Maarten Lipmann, Alberto Marchetti-Spaccamela, Willem de Paepe, Diana Poensgen, and Leen Stougie. Non-abusiveness helps: An O(1)-competitive algorithm for minimizing the maximum flow time in the online traveling salesman problem. In Proceedings of the 5th International Workshop on Approximation Algorithms for Combinatorial Optimization (APPROX), pages 200–214, 2002. doi:10.1007/3–540–45753–4_18.DOI
- [27]Maarten Lipmann. On-line routing. PhD thesis, Technische Universiteit Eindhoven, 2003.