Given a graph where every vertex has exactly one labeled token, how can we most quickly execute a given permutation on the tokens? In (sequential) token swapping, the goal is to use the shortest possible sequence of swaps, each of which exchanges the tokens at the two endpoints of an edge of the graph. In parallel token swapping, the goal is to use the fewest rounds, each of which consists of one or more swaps on the edges of a matching. We prove that both of these problems remain NP-hard when the graph is restricted to be a tree. These token swapping problems have been studied by disparate groups of researchers in discrete mathematics, theoretical computer science, robot motion planning, game theory, and engineering. Previous work establishes NP-completeness on general graphs (for both problems); polynomial-time algorithms for simple graph classes such as cliques, stars, paths, and cycles; and constant-factor approximation algorithms in some cases. The two natural cases of sequential and parallel token swapping in trees were first studied over thirty years ago (as "sorting with a transposition tree") and over twenty-five years ago (as "routing permutations via matchings"), yet their complexities were previously unknown. We also show limitations on approximation of sequential token swapping on trees: we identify a broad class of algorithms that encompass all three known polynomial-time algorithms that achieve the best known approximation factor (which is $2$) and show that no such algorithm can achieve an approximation factor less than $2$.
翻译:在图形中,每个顶点都有一个贴标签的牌子, 我们如何能最迅速地在牌子上执行给定的变换? 在( 顺序 ) 代币互换中, 目标是使用最短的交换顺序, 每个交换在图形边缘两个端点的代币。 在代币互换中, 目标是使用最小的回合, 每个由匹配边缘的一个或多个互换组成。 我们证明, 当图形被限制为一棵树时, 这两种问题都仍然很难被NP- 。 这些代币互换问题已经由离散数学、 理论计算机科学、 机器人运动规划、 游戏理论和工程等不同研究组的研究人员来研究。 以往的工作在一般图表( 两个问题) 中都确定了NP- 的全局性。 代币互换周期的目标是使用最简单的图形类( 比如, 星、 星、 路径和周期 ) 和 常态的近效算算法。 连续和平行的树类互换的两种自然案例在三十年前就进行了首次研究( 如“ 平时, 我们所知道的递定的 ” 25年前,,, 直值也显示了 直系的 直系的 直系 直系 直系 直系 直系 直系 直系( 直系 直系 ) ) 直系 直系 直系 直系 直系 直系 直系 直系, 直系 直系 直系 直系 直系 直系 直系 直系, 直系 直系 直系, 直系 直系 直系 直系 直系 直系 直系 直系 直系 。