Skip to main content

Swapping Colored Tokens on Graphs

  • Conference paper
  • First Online:
Algorithms and Data Structures (WADS 2015)

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

Included in the following conference series:

Abstract

We investigate the computational complexity of the following problem. We are given a graph in which each vertex has the current and target colors. Each pair of adjacent vertices can swap their current colors. Our goal is to perform the minimum number of swaps so that the current and target colors agree at each vertex. When the colors are chosen from \(\{1,2,\dots ,c\}\), we call this problem \(c\) -Colored Token Swapping since the current color of a vertex can be seen as a colored token placed on the vertex. We show that \(c\) -Colored Token Swapping is NP-complete for every constant \(c \ge 3\) even if input graphs are restricted to connected planar bipartite graphs of maximum degree 3. We then show that \(2\) -Colored Token Swapping can be solved in polynomial time for general graphs and in linear time for trees.

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

Access this chapter

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 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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Cayley, A.: Note on the theory of permutations. Philosophical Magazine 34, 527–529 (1849)

    Google Scholar 

  2. Dyer, M.E., Frieze, A.M.: Planar 3DM is NP-complete. Journal of Algorithms 7, 174–184 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  3. Feng, X., Meng, Z., Sudborough, I.H.: Improved upper bound for sorting by short swaps. In: Proc. IEEE Symposium on Parallel Architectures, Algorithms and Networks, pp. 98–103 (2004)

    Google Scholar 

  4. Feng, X., Sudborough, I.H., Lu, E.: A fast algorithm for sorting by short swap. In: Proc. IASTED International Conference Computational and Systems Biology, pp. 62–67 (2006)

    Google Scholar 

  5. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. Freeman (1979)

    Google Scholar 

  6. Heath, L.S., Vergara, J.P.C.: Sorting by short swaps. Journal of Computational Biology 10(5), 775–789 (2003)

    Article  Google Scholar 

  7. Jerrum, M.R.: The complexity of finding minimum-length generator sequence. Theoretical Computer Science 36, 265–289 (1985)

    Article  MathSciNet  MATH  Google Scholar 

  8. Knuth, D.E.: The art of computer programming, 2nd edn., vol. 3. Addison-Wesley (1998)

    Google Scholar 

  9. Korte, B., Vygen, J.: Combinatorial Optimization: Theory and Algorithms, 2nd edn. Springer (2005)

    Google Scholar 

  10. Pak, I.: Reduced decompositions of permutations in terms of star transpositions, generalized catalan numbers and \(k\)-ary trees. Discrete Mathematics 204, 329–335 (1999)

    Article  MathSciNet  MATH  Google Scholar 

  11. 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. Theoretical Computer Science (2015) (accepted)

    Google Scholar 

Download references

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

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Yamanaka, K. et al. (2015). Swapping Colored Tokens on Graphs. In: Dehne, F., Sack, JR., Stege, U. (eds) Algorithms and Data Structures. WADS 2015. Lecture Notes in Computer Science(), vol 9214. Springer, Cham. https://doi.org/10.1007/978-3-319-21840-3_51

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-21840-3_51

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-21839-7

  • Online ISBN: 978-3-319-21840-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics