TY - JOUR

T1 - Fine-grained Complexity Analysis of Two Classic TSP Variants

AU - de Berg, Mark T.

AU - Buchin, Kevin

AU - Jansen, Bart M.P.

AU - Woeginger, Gerhard

PY - 2021/1

Y1 - 2021/1

N2 - We analyze two classic variants of the TRAVELING SALESMAN PROBLEM (TSP) using the toolkit of fine-grained complexity. Our first set of results is motivated by the BITONIC TSP problem: given a set of n points in the plane, compute a shortest tour consisting of two monotone chains. It is a classic dynamic-programming exercise to solve this problem in O(n) time. While the near-quadratic dependency of similar dynamic programs for LONGEST COMMON SUBSEQUENCE and DISCRETE Fréchet Distance has recently been proven to be essentially optimal under the Strong Exponential Time Hypothesis, we show that bitonic tours can be found in subquadratic time. More precisely, we present an algorithm that solves bitonic TSP in O(nlog n) time and its bottleneck version in O(nlog 3 n) time. In the more general pyramidal TSP problem, the points to be visited are labeled 1,... ,n and the sequence of labels in the solution is required to have at most one local maximum. Our algorithms for the bitonic (bottleneck) TSP problem also work for the pyramidal TSP problem in the plane. Our second set of results concerns the popular k-OPT heuristic for TSP in the graph setting. More precisely, we study the k-OPT decision problem, which asks whether a given tour can be improved by a k-OPT move that replaces k edges in the tour by k new edges. A simple algorithm solves k-OPT in O(nk) time for fixed k. For 2-OPT, this is easily seen to be optimal. For k=3, we prove that an algorithm with a runtime of the form Õ(n3-I) exists if and only if ALL-PAIRS SHORTEST PATHS in weighted digraphs has such an algorithm. For general k-OPT, it is known that a runtime of f(k) · no(k/ log k) would contradict the Exponential Time Hypothesis. The results for k=2,3 may suggest that the actual time complexity of k-OPT is i (nk). We show that this is not the case, by presenting an algorithm that finds the best k-move in O(n s 2k/3 +1) time for fixed k ≥ 3. This implies that 4-OPT can be solved in O(n3) time, matching the best-known algorithm for 3-OPT. Finally, we show how to beat the quadratic barrier for k=2 in two important settings, namely, for points in the plane and when we want to solve 2-OPT repeatedly.

AB - We analyze two classic variants of the TRAVELING SALESMAN PROBLEM (TSP) using the toolkit of fine-grained complexity. Our first set of results is motivated by the BITONIC TSP problem: given a set of n points in the plane, compute a shortest tour consisting of two monotone chains. It is a classic dynamic-programming exercise to solve this problem in O(n) time. While the near-quadratic dependency of similar dynamic programs for LONGEST COMMON SUBSEQUENCE and DISCRETE Fréchet Distance has recently been proven to be essentially optimal under the Strong Exponential Time Hypothesis, we show that bitonic tours can be found in subquadratic time. More precisely, we present an algorithm that solves bitonic TSP in O(nlog n) time and its bottleneck version in O(nlog 3 n) time. In the more general pyramidal TSP problem, the points to be visited are labeled 1,... ,n and the sequence of labels in the solution is required to have at most one local maximum. Our algorithms for the bitonic (bottleneck) TSP problem also work for the pyramidal TSP problem in the plane. Our second set of results concerns the popular k-OPT heuristic for TSP in the graph setting. More precisely, we study the k-OPT decision problem, which asks whether a given tour can be improved by a k-OPT move that replaces k edges in the tour by k new edges. A simple algorithm solves k-OPT in O(nk) time for fixed k. For 2-OPT, this is easily seen to be optimal. For k=3, we prove that an algorithm with a runtime of the form Õ(n3-I) exists if and only if ALL-PAIRS SHORTEST PATHS in weighted digraphs has such an algorithm. For general k-OPT, it is known that a runtime of f(k) · no(k/ log k) would contradict the Exponential Time Hypothesis. The results for k=2,3 may suggest that the actual time complexity of k-OPT is i (nk). We show that this is not the case, by presenting an algorithm that finds the best k-move in O(n s 2k/3 +1) time for fixed k ≥ 3. This implies that 4-OPT can be solved in O(n3) time, matching the best-known algorithm for 3-OPT. Finally, we show how to beat the quadratic barrier for k=2 in two important settings, namely, for points in the plane and when we want to solve 2-OPT repeatedly.

KW - bitonic TSP

KW - fine-grained complexity

KW - k-OPT

KW - Traveling salesman problem

UR - http://www.scopus.com/inward/record.url?scp=85100299108&partnerID=8YFLogxK

U2 - 10.1145/3414845

DO - 10.1145/3414845

M3 - Article

AN - SCOPUS:85100299108

VL - 17

JO - ACM Transactions on Algorithms

JF - ACM Transactions on Algorithms

SN - 1549-6325

IS - 1

M1 - 5

ER -