English

Token Swapping on Trees

Computational Complexity 2023-06-22 v5 Data Structures and Algorithms

Abstract

The input to the token swapping problem is a graph with vertices v1,v2,,vnv_1, v_2, \ldots, v_n, and nn tokens with labels 1,2,,n1, 2, \ldots, n, one on each vertex. The goal is to get token ii to vertex viv_i for all i=1,,ni= 1, \ldots, n using a minimum number of swaps, where a swap exchanges the tokens on the endpoints of an edge. We present some results about token swapping on a tree, also known as "sorting with a transposition tree": 1. An optimum swap sequence may need to perform a swap on a leaf vertex that has the correct token (a "happy leaf"), disproving a conjecture of Vaughan. 2. Any algorithm that fixes happy leaves -- as all known approximation algorithms for the problem do -- has approximation factor at least 4/34/3. Furthermore, the two best-known 2-approximation algorithms have approximation factor exactly 2. 3. A generalized problem -- weighted coloured token swapping -- is NP-complete on trees, even when they are restricted to be subdivided stars, but solvable in polynomial time on paths and stars. In this version, tokens and vertices have colours, and colours have weights. The goal is to get every token to a vertex of the same colour, and the cost of a swap is the sum of the weights of the two tokens involved.

Keywords

Cite

@article{arxiv.1903.06981,
  title  = {Token Swapping on Trees},
  author = {Ahmad Biniaz and Kshitij Jain and Anna Lubiw and Zuzana Masárová and Tillmann Miltzow and Debajyoti Mondal and Anurag Murty Naredla and Josef Tkadlec and Alexi Turcotte},
  journal= {arXiv preprint arXiv:1903.06981},
  year   = {2023}
}

Comments

37 pages, Discrete Mathematics and Theoretical Computer Science, DMTCS vol. 24:2, 2022, #9