Effective Traveling for Metric Instances of the Traveling Thief Problem

Jan Eube, Kelin Luo, Aneta Neumann, Frank Neumann, Heiko Röglin

TL;DR

This paper tackles the tour-optimization component of the Traveling Thief Problem (TTP) under a fixed packing plan, formulating it as a Weighted Traveling Salesman Problem (W-TSP). The authors establish its NP-hardness even on simple star metrics, provide constant-factor approximation algorithms, and introduce an exact polynomial-time dynamic programming approach for path metrics that outperforms state-of-the-art heuristics by up to 69%.

What Problem Does This Paper Address?

The Traveling Thief Problem (TTP) is a complex, multi-component optimization problem that merges two classic challenges: the Traveling Salesperson Problem (TSP) and the Knapsack Problem (KP). In TTP, a thief visits cities to collect items; however, the heavier the knapsack gets, the slower the thief moves, which increases the total travel cost.

While previous research has focused heavily on finding good packing plans for fixed tours, optimizing the tour itself for a given packing plan remains notoriously difficult. This paper isolates this exact subproblem—the Weighted TSP (W-TSP)—where travel costs increase monotonically with the weight of collected items. The authors investigate how different distance metrics (like star and path graphs) and cost functions affect the problem's computational complexity.

Methods

The authors approach the W-TSP from both theoretical and algorithmic angles:

  • Complexity Analysis: They prove that W-TSP is NP-hard even on a highly restricted star metric (a tree of height 1) via a reduction from the classic partition problem.
  • Approximation Algorithms: For the star metric, they design an $(8 + \epsilon)$-approximation algorithm by framing the problem similarly to robust machine scheduling. During each round trip on a star metric, the vehicle carries an accumulated weight; the authors bound these segment lengths based on weight thresholds to prove their approximation guarantees, as illustrated in Figure 1. For general metrics with a linear speed decrease (the standard TTP cost function), they develop an $O(\log n)$-approximation algorithm by finding a strategic starting city on a standard TSP tour.
  • Dynamic Programming (DP): For a path metric (where all cities lie on a single line), they exploit a structural property: an optimal tour will never visit a node prematurely if it is surrounded by unvisited nodes. This allows them to build an exact $O(n^2)$ DP algorithm for a fixed starting point and an $O(n^3)$ version for an arbitrary starting point.
  • Clustering Heuristic: To scale the DP algorithm to larger instances, they introduce a $k$-means clustering strategy that aggregates nearby items into $\sqrt{n}$ clusters, reducing the problem size and accelerating the DP step to near-linear empirical runtime.
Round-trip segment length with bounded weight.

Datasets

The authors evaluated their algorithms using two main sets of data:

  • Standard TTP Benchmarks: Derived from the classic TSPLIB dataset. They selected 25 instances with 51, 101, and 575 cities, with item counts ranging from 50 to 1,000 (1 to 20 items per city). To adapt these to a path metric, they set all $y$-coordinates of the cities to 0.
  • Synthetic Dataset: Used specifically to evaluate time complexity and scalability, featuring 5 different node sizes (up to 2,001 nodes) and up to 10,000 items.

Key Insights and Ideas

  • The Deferral Strategy: The DP algorithm reveals that on a path metric, it is often optimal to defer collecting heavy items until the return journey. By passing by items on the way out and picking them up on the way back, the thief minimizes the time spent traveling with a heavy load.
  • Hardness in Simplicity: Proving that the problem remains NP-hard even on a star metric highlights that the core difficulty of TTP stems fundamentally from the non-linear interaction between weight and distance, not just complex routing geometry.
  • TSP Tours as a Strong Baseline: The $O(\log n)$-approximation shows that a good standard TSP tour (ignoring weights) can serve as a solid foundation for W-TSP, provided you pick the correct starting city to balance the weight accumulation.

Key Results

  • Route Cost Improvements: Compared against a state-of-the-art iterative search heuristic (Algorithm S5), the exact DP algorithm achieved an average improvement of 13.58% in route cost across the benchmark instances, with a maximum improvement of 69.71%.
  • Clustering Efficiency: For large synthetic instances, the clustering heuristic reduced the preprocessing time by an average of 82.67% and the DP execution time by a massive 99.28%. Crucially, this speedup came with a negligible average cost increase of just 1.18%, proving its practical viability for large-scale problems.

Limitations and Future Work

  • Metric Restrictions: The exact DP algorithm is strictly restricted to path metrics (1D lines). Extending exact or highly accurate methods to 2D Euclidean spaces remains an open challenge due to the breakdown of the simple "left-or-right" unvisited node property.
  • Fixed Packing Assumption: This study assumes the packing plan is already fixed. In a full TTP scenario, routing and packing must be optimized simultaneously. Integrating this exact tour solver into a co-evolutionary framework that dynamically updates the packing plan is a promising next step suggested by the authors.

Summary updated

Abstract

The Traveling Thief Problem (TTP) is a multi-component optimization problem that captures the interplay between routing and packing decisions by combining the classical Traveling Salesperson Problem (TSP) and the Knapsack Problem (KP). The TTP has gained significant attention in the evolutionary computation literature and a wide range of approaches have been developed over the last 10 years. Judging the performance of these algorithms in particular in terms of how close the get to optimal solutions is a very challenging task as effective exact methods are not available due to the highly challenging traveling component. In this paper, we study the tour-optimization component of TTP under a fixed packing plan. We formulate this task as a weighted variant of the TSP, where travel costs depend on the cumulative weight of collected items, and investigate how different distance metrics and cost functions affect computational complexity. We present an $(O(n^2))$-time dynamic programming algorithm for the path metric with general cost functions, prove that the problem is NP-hard even on a star metric, and develop constant-factor approximation algorithms for star metrics. Finally, we also develop an approximation algorithm for the problem under a general metric with a linear cost function. We complement our theoretical results with experimental evaluations on standard TTP instances adjusted to a path metric. Our experimental results demonstrate the practical effectiveness of our approaches by comparing it to solutions produced by popular iterative search algorithms. The results show that our methods are able to significantly improve the quality of solutions for some benchmark instances by optimizing the traveling part while pointing out the optimality of the travel component for other solutions obtained by iterative search methods.
BibTeX
@inproceedings{eube2026effective,
  author = {Jan Eube and Kelin Luo and Aneta Neumann and Frank Neumann and Heiko Röglin},
  title = {{Effective Traveling for Metric Instances of the Traveling Thief Problem}},
  booktitle = {PPSN},
  year = {2026},
  doi = {10.1007/978-3-032-36214-8\_18},
}

Loading related content...

Figure