Skip to main content

Sequentially Swapping Colored Tokens on Graphs

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 10167))

Abstract

We consider a puzzle consisting of colored tokens on an n-vertex graph, where each token has a distinct starting vertex and a set of allowable target vertices for it to reach, and the only allowed transformation is to “sequentially” move the chosen token along a path of the graph by swapping it with other tokens on the path. This puzzle is a variation of the Fifteen Puzzle and is solvable in \(\text{ O }(n^3)\) token-swappings. We thus focus on the problem of minimizing the number of token-swappings to reach the target token-placement. We first give an inapproximability result of this problem, and then show polynomial-time algorithms on trees, complete graphs, and cycles.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    In this paper, we denote a walk of a graph by a sequence of vertices.

References

  1. Berlekamp, E.R., Conway, J.H., Guy, R.K.: Winning Ways for Your Mathematical Plays, 2nd edn. AK Peters, Natick (2004)

    MATH  Google Scholar 

  2. Demaine, E.D., Hearn, R.A.: Playing games with algorithms: algorithmic combinatorial game theory. In: Games of No Chance 3, vol. 56, pp. 3–56. Cambridge University Press, Cambridge (2009)

    Google Scholar 

  3. Goldreich, O.: Finding the shortest move-sequence in the graph-generalized 15-puzzle is NP-hard. In: Goldreich, O. (ed.) Studies in Complexity and Cryptography. Miscellanea on the Interplay between Randomness and Computation. LNCS, vol. 6650, pp. 1–5. Springer, Heidelberg (2011). doi:10.1007/978-3-642-22670-0_1

    Chapter  Google Scholar 

  4. Kornhauser, D.M., Miller, G., Spirakis, P.: Coordinating pebble motion on graphs, the diameter of permutation groups, and applications. In: Proceedings of the 25th Annual Symposium on Foundations of Computer Science (FOCS), pp. 241–250 (1984)

    Google Scholar 

  5. Ratner, D., Warmuth, M.: The \((n^2 -1)\)-puzzle and related relocation problems. J. Symb. Comput. 10, 111–137 (1990)

    Article  MathSciNet  MATH  Google Scholar 

  6. Wilson, R.M.: Graph puzzles, homotopy, and the alternating group. J. Comb. Theory (B) 16, 86–96 (1974)

    Article  MathSciNet  MATH  Google Scholar 

  7. Yamanaka, K., Demaine, E.D., Ito, T., Kawahara, J., Kiyomi, M., Okamoto, Y., Saitoh, T., Suzuki, A., Uchizawa, K., Uno, T.: Swapping labeled tokens on graphs. Theoret. Comput. Sci. 586, 81–94 (2015)

    Article  MathSciNet  MATH  Google Scholar 

  8. Yamanaka, K., Horiyama, T., Kirkpatrick, D., Otachi, Y., Saitoh, T., Uehara, R., Uno, Y.: Swapping colored tokens on graphs. In: Dehne, F., Sack, J.-R., Stege, U. (eds.) WADS 2015. LNCS, vol. 9214, pp. 619–628. Springer, Heidelberg (2015). doi:10.1007/978-3-319-21840-3_51

    Chapter  Google Scholar 

Download references

Acknowledgment

This work is partially supported by MEXT/JSPS KAKENHI Grant Numbers JP24106002, JP24106004, JP24106005, JP24106007, JP24220003, JP24700008, JP26330004, JP26330009, JP26730001, JP15K00008, JP15K00009, JP16K00002, and JP16K16006, the Asahi Glass Foundation, JST, CREST, Foundations of Innovative Algorithms for Big Data, and JST, CREST, Foundations of Data Particlization for Next Generation Data Mining.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Katsuhisa Yamanaka .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this paper

Cite this paper

Yamanaka, K. et al. (2017). Sequentially Swapping Colored Tokens on Graphs. In: Poon, SH., Rahman, M., Yen, HC. (eds) WALCOM: Algorithms and Computation. WALCOM 2017. Lecture Notes in Computer Science(), vol 10167. Springer, Cham. https://doi.org/10.1007/978-3-319-53925-6_34

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-53925-6_34

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-53924-9

  • Online ISBN: 978-3-319-53925-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics