English

Linear-Time Algorithm for Sliding Tokens on Trees

Discrete Mathematics 2014-09-03 v2 Data Structures and Algorithms

Abstract

Suppose that we are given two independent sets IbI_b and IrI_r of a graph such that Ib=Ir|I_b|=|I_r|, and imagine that a token is placed on each vertex in IbI_b. Then, the sliding token problem is to determine whether there exists a sequence of independent sets which transforms IbI_b into IrI_r so that each independent set in the sequence results from the previous one by sliding exactly one token along an edge in the graph. This problem is known to be PSPACE-complete even for planar graphs, and also for bounded treewidth graphs. In this paper, we thus study the problem restricted to trees, and give the following three results: (1) the decision problem is solvable in linear time; (2) for a yes-instance, we can find in quadratic time an actual sequence of independent sets between IbI_b and IrI_r whose length (i.e., the number of token-slides) is quadratic; and (3) there exists an infinite family of instances on paths for which any sequence requires quadratic length.

Keywords

Cite

@article{arxiv.1406.6576,
  title  = {Linear-Time Algorithm for Sliding Tokens on Trees},
  author = {Erik D. Demaine and Martin L. Demaine and Eli Fox-Epstein and Duc A. Hoang and Takehiro Ito and Hirotaka Ono and Yota Otachi and Ryuhei Uehara and Takeshi Yamada},
  journal= {arXiv preprint arXiv:1406.6576},
  year   = {2014}
}
R2 v1 2026-06-22T04:46:56.483Z