Online Traveling Salesman Problem (OLTSP)
- OLTSP is an online routing problem where requests in a metric space are revealed over time and must be served no earlier than their release, aiming to minimize makespan.
- Key insights include competitive analysis bounds, specialized models like known locations, and the incorporation of learning-augmented predictions to improve routing decisions.
- Research also highlights strategic waiting, the design of domination oracles, and the impact of structured metrics (line, ring, star) on algorithmic performance.
The Online Traveling Salesman Problem (OLTSP) is an online routing problem in which requests are revealed over time in a metric space, a server starts at a distinguished origin, moves with unit speed, and must serve each request no earlier than its release time while minimizing completion time or makespan. Two canonical variants are standard: in the closed variant the server must return to the origin after serving all requests, whereas in the open variant it need not return. Across the literature, the term also touches adjacent dynamic models in which the geometry itself changes over time, including time-dependent TSPs with moving or reallocated sites; those models are not OLTSP in the algorithmic sense, but they bear directly on robustness and replanning under nonstationarity (Hu et al., 2022, Bampis et al., 2022, Bampis et al., 2023, Sánchez et al., 2017).
1. Formal models and objective functions
In the standard metric formulation, an input is a sequence of requests or , with each request written either as or , where is its arrival or release time and is its position in a metric space . The server starts at the origin or at time $0$, moves at speed at most 0, and may serve a request only after its release time. The objective is to minimize the completion time of the route, denoted 1, 2, or makespan, depending on the paper’s notation (Hu et al., 2022, Bampis et al., 2022).
Competitive analysis remains the dominant framework. In its basic form, an online algorithm is 3-competitive if 4 for all instances; in the randomized line setting, the expected-cost formulation is used, 5, for some constant 6 (Bampis et al., 2022, Chen et al., 2019).
A substantial refinement is OLTSP with known locations. In that model, the locations of all requests are known in advance at time 7, but their release times are unknown and revealed online. This changes the information pattern without changing the requirement that requests be served no earlier than release (Bampis et al., 2022).
A second refinement is the learning-augmented setting. Here the algorithm receives predictions, such as an entire predicted request sequence, per-request predicted times and positions, only the last arrival time, or predicted locations 8 for requests whose true locations 9 and release times 0 are revealed online. These models support the now-standard notions of consistency, robustness, and smoothness (Hu et al., 2022, Bampis et al., 2023).
2. Classical baselines, lower bounds, and the role of waiting
A central classical baseline for metric OLTSP is Plan-At-Home (PAH). When at the origin, PAH computes an optimal route for all currently released unserved requests and returns home; while on a route, if a new request arrives that is farther from the origin than the server currently is, it abandons the route and goes back home, otherwise it continues. With an offline-optimal TSP subroutine, PAH is 2-competitive, and with Christofides’ heuristic it is 3-competitive in polynomial time. The same literature recalls the lower bound that no 1-competitive algorithm exists for 2 in the metric closed model (Hu et al., 2022).
On the real line, the structure is sharper. The online traveling salesman problem on the line (OLTSPL) has been studied for more than two decades, and the best known deterministic competitive ratio is reported as 3. The randomized literature distinguishes zealous algorithms, which never intentionally wait while unserved requests exist, from non-zealous algorithms, which may wait strategically. This distinction is substantive rather than cosmetic: the line results show that waiting can improve competitiveness, and that randomization improves over the best deterministic algorithm (Chen et al., 2019).
For OLTSPL, the randomized zealous algorithm RZ achieves ratio 4 against both fair and general adversaries. The randomized non-zealous algorithm RNZ achieves 5 against the general adversary, matching the corresponding lower bound, and 6 against the fair adversary. The lower bounds proved in the same work are 7 for randomized zealous algorithms against a fair adversary, 8 for randomized non-zealous algorithms against a fair adversary, and 9 for both zealous and non-zealous randomized algorithms against a general adversary (Chen et al., 2019).
These results establish two recurrent themes in OLTSP research. First, the adversarial model matters: fair-adversary restrictions can change both upper and lower bounds. Second, deliberate waiting is often algorithmically valuable, even though earlier formulations sometimes privileged “always moving” policies. In that sense, the line serves as a controlled setting in which the informational value of waiting can be proved rather than merely intuited (Chen et al., 2019).
3. OLTSP with known locations
The known-locations model, sometimes denoted OLTSP-L, assumes that the points at which requests may appear are known from the start, but their release times are not. In this setting, the server starts at 0 at time 1, moves at unit speed in a metric space 2, and must serve every request 3 no earlier than its release time. Both open and closed variants are studied (Bampis et al., 2022).
The main general result is tight: there is a 4-competitive algorithm for both open and closed OLTSP-L in general metric spaces, and no algorithm can do better than 5 for the open variant as well, matching the known lower bound for the closed variant. The algorithm waits at the origin until the first time 6 such that there exists an order 7 with
8
where 9 is the length of the corresponding tour or path and 0 is the fraction of that order that is fully released by time 1. At time 2, it selects an order 3 minimizing
4
and then follows that order, waiting at request locations if necessary. The key inequalities in the proof are
5
and
6
The same paper notes that the algorithm also works for the online asymmetric TSP with known locations, again giving ratio 7 (Bampis et al., 2022).
The significance of this model is explicit in the literature: knowing all locations in advance collapses the competitive ratio for general metric spaces to the optimal value 8, and this holds for both open and closed variants. Equally important is the negative comparison: knowing only the number of requests does not confer the same benefit in several metric spaces. This sharply separates “where requests may appear” from weaker side information about instance size (Bampis et al., 2022).
4. Learning-augmented models based on predicted requests
A distinct line of work initiates OLTSP with predictions in the broader learning-augmented framework. Three prediction models are studied. In sequence prediction without identity, the predictor outputs a whole predicted sequence 9, possibly of a different size, with no one-to-one correspondence to actual requests. In sequence prediction with identity, the number of requests is known and each predicted request corresponds to an actual request; the error is quantified by
0
In prediction of the last arrival time, the algorithm receives only 1, with error 2 (Hu et al., 2022).
These models produce different algorithmic tradeoffs. For sequence prediction without identity, LAR-NID is 3-consistent and 4-robust, for 5, but it is not smooth. For sequence prediction with identity, the naive trust-based algorithm LAR-Trust satisfies
6
hence it is 7-consistent and smooth but not robust. The robust variant LAR-ID has competitive ratio
8
so it is 9-consistent, 0-robust, and 1-smooth. Using Christofides’ heuristic, the paper also gives the polynomial-time guarantee
2
For the weakest prediction model, LAR-Last achieves
3
so it is 4-consistent, 5-robust, and 6-smooth (Hu et al., 2022).
The lower bounds are as important as the algorithms. In sequence prediction without identity, any 7-consistent algorithm has robustness at least 8 for any 9. In sequence prediction with identity, any 0-consistent algorithm has robustness at least 1. And even with perfect prediction of the last arrival time, no 2-competitive algorithm with 3 exists. These results delimit the informational content of different prediction types: exact request matching is far more useful than knowing only a single scalar summary, but even exact matching does not remove adversarial lower bounds (Hu et al., 2022).
5. Location predictions, SWAG, and domination oracles
A more specialized learning-augmented framework studies OLTSP when the predictions correspond only to request locations. In this model, for each request 4 the algorithm is given a predicted location 5; the release times 6 and true locations 7 are revealed online; and the algorithm knows 8 in advance. Prediction error is measured by
9
where 0 is the length of an optimal offline TSP path or tour for the request locations alone, depending on whether the variant is open or closed (Bampis et al., 2023).
The central framework is Strategically Wait And Go (SWAG) and its learning-augmented version LA-SWAG. For an order 1, 2 denotes the total route length and 3 the fraction of the route that is fully released by time 4. A permutation 5 dominates 6 at time 7 if
8
An oracle is valid if it outputs a nested set 9 such that, for every time $0$0, some $0$1 dominates the optimal offline permutation. SWAG waits until some time $0$2, chooses from $0$3 the permutation minimizing
$0$4
and then follows that route, waiting at unreleased requests if necessary (Bampis et al., 2023).
The framework yields a structural guarantee: if the oracle is a domination oracle, then SWAG is $0$5-competitive when predictions are perfect. LA-SWAG extends this to imperfect predictions and proves
$0$6
for both closed and open LA-OLTSP. The same work gives robustness guarantees of $0$7 for the closed variant and $0$8 for the open variant in general metrics, with improved guarantees for some special metrics: $0$9-robust for the closed variant in trees and Euclidean spaces, and 00-robust for the open variant in trees. It also proves that linear dependence on prediction error is necessary in the open case, via the lower bound that no algorithm can beat
01
A further tradeoff lower bound states that if an algorithm is 02-consistent, then it cannot be 03-robust for any 04 in the open variant (Bampis et al., 2023).
The main conceptual contribution is the reduction from online routing to the design of compact domination oracles. This shifts the technical burden away from reasoning over all 05 permutations and toward identifying metric-specific structural dominators. The result is a framework in which improved consistency, graceful degradation, and nontrivial worst-case robustness are obtained simultaneously (Bampis et al., 2023).
6. Structured metrics and tractability
Several metric spaces admit stronger or more explicit results than the general metric case. In the known-locations model, the ring is a circle of circumference 06. For open OLTSP-L on the ring, there is no 07-competitive algorithm for any 08; the lower-bound instance uses two requests placed so that each is at distance 09 from the origin and from each other, with releases at 10 and 11. For the closed variant on the ring, there is a polynomial-time algorithm with competitive ratio 12 (Bampis et al., 2022).
For the star, the known-locations results are asymmetric. If only the number of requests is known but not their locations, there is no 13-competitive algorithm for both closed and open OLTSP on the star, even if the number of requests is known. For closed OLTSP-L on the star, the paper gives a 14-competitive algorithm, and by using a knapsack-FPTAS for the relevant ray-selection subproblem, obtains a polynomial-time 15-competitive algorithm for any constant 16 (Bampis et al., 2022).
For the semi-line, the contrast is even sharper. If locations are unknown, there is no 17-competitive algorithm for the closed variant and no 18-competitive algorithm for the open variant, even if the number of requests is known. With known locations, open OLTSP-L has lower bound 19 and admits a polynomial-time 20-competitive algorithm, while closed OLTSP-L has competitive ratio 21: the optimal strategy is to go to the furthest request, wait until it is released, serve it, and return to the origin while serving all remaining requests (Bampis et al., 2022).
The line remains the most intensively analyzed one-dimensional case for randomization and waiting. As noted earlier, RZ achieves 22, and RNZ achieves 23 against the general adversary, with stronger fair-adversary performance for RNZ. These results show that the one-dimensional geometry supports exact adversarial constructions and tight waiting-based analysis that are not yet available in comparable generality for arbitrary metrics (Chen et al., 2019).
In the learning-augmented location-prediction setting, tractability depends strongly on the metric. For arbitrary metrics, the domination-oracle construction yields a single-exponential 24 algorithm. For trees, the resulting algorithms run in 25 for the closed variant and 26 for the open variant, making the problem fixed-parameter tractable in the number of leaves 27. For rings, polynomial-time domination oracles give 28 time in the closed case and 29 time in the open case. For flowers, the algorithms are fixed-parameter tractable in the number of petals 30, with 31 time for the closed variant and 32 for the open variant (Bampis et al., 2023).
Taken together, these results show that geometry affects OLTSP at three levels: hardness thresholds, available structural decompositions, and the feasibility of efficient domination oracles or exact online policies.
7. Time-dependent TSP and trajectory stability
A separate but directly relevant direction studies TSP instances in which the sites themselves change over time. Two such generalizations are introduced. In bTSP, sites move continuously inside a unit square with constant velocity, bouncing elastically at the boundary; the salesman solves a static TSP at each observation time. In rTSP, one or more sites are reallocated discontinuously to random new positions at each time step. These models capture two different kinds of online change: smooth drift and abrupt reconfiguration (Sánchez et al., 2017).
For a static TSP with 33 sites, a trajectory is a closed Hamiltonian tour, and the number of distinct trajectories is
34
The time-dependent study ranks these trajectories by length at each time, with shortest rank 35 and longest rank
36
It then studies the rank distribution
37
and, more importantly, rank diversity 38, defined as the number of different elements that have rank 39 within a given period of time 40. The observation window satisfies 41 (Sánchez et al., 2017).
The empirical findings are consistent across both moving-site models. For static random configurations, the rank distribution is not Zipf-like and instead has a shape that “resembles a beta distribution.” In the time evolution of ranks, the shortest and longest trajectories are noticeably more persistent than intermediate ones. The paper also gives a bound on diversity,
42
and reports that increasing observation resolution in bTSP can lower diversity because sites do not move much between observations, whereas over sufficiently long horizons diversity becomes close to maximal for most ranks (Sánchez et al., 2017).
The geometric explanation is given through stability areas 43 for rTSP with 44: the set of positions to which the moved site can go without changing a given trajectory’s rank. The paper computes distributions 45 of these areas and their mean 46, finding that 47, that intermediate ranks have much smaller stability regions, and that the difference between extremal and intermediate ranks grows with 48. The core conclusion is that trajectory stability is highly non-uniform across ranks: the shortest and longest trajectories are more stable, more robust under perturbations, and more predictable than intermediate ones (Sánchez et al., 2017).
This does not solve OLTSP in the algorithmic sense. It does, however, provide a statistical and geometric understanding of how TSP solutions behave when the instance changes over time. A plausible implication is that in online or dynamic route-planning settings, optimal or near-optimal tours may remain structurally privileged under modest perturbations, whereas middling tours are substantially more volatile.