English

Approximation and Hardness for Token Swapping

Computational Complexity 2017-07-28 v3

Abstract

Given a graph G=(V,E)G=(V,E) with V={1,,n}V=\{1,\ldots,n\}, we place on every vertex a token T1,,TnT_1,\ldots,T_n. A swap is an exchange of tokens on adjacent vertices. We consider the algorithmic question of finding a shortest sequence of swaps such that token TiT_i is on vertex ii. We are able to achieve essentially matching upper and lower bounds, for exact algorithms and approximation algorithms. For exact algorithms, we rule out any 2o(n)2^{o(n)} algorithm under the ETH. This is matched with a simple 2O(nlogn)2^{O(n\log n)} algorithm based on a breadth-first search in an auxiliary graph. We show one general 44-approximation and show APX-hardness. Thus, there is a small constant δ>1\delta>1 such that every polynomial time approximation algorithm has approximation factor at least δ\delta. Our results also hold for a generalized version, where tokens and vertices are colored. In this generalized version each token must go to a vertex with the same color.

Keywords

Cite

@article{arxiv.1602.05150,
  title  = {Approximation and Hardness for Token Swapping},
  author = {Tillmann Miltzow and Lothar Narins and Yoshio Okamoto and Günter Rote and Antonis Thomas and Takeaki Uno},
  journal= {arXiv preprint arXiv:1602.05150},
  year   = {2017}
}

Comments

19 pages, 10 figures

R2 v1 2026-06-22T12:51:37.461Z