Skip to main content

On the Hardness of Optimal Vertex Relabeling and Restricted Vertex Relabeling

  • Conference paper
  • First Online:
Combinatorial Pattern Matching (CPM 2015)

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

Included in the following conference series:

  • 842 Accesses

Abstract

Vertex Relabeling is a variant of the graph relabeling problem. In this problem, the input is a graph and two vertex labelings, and the question is to determine how close are the labelings. The distance measure is the minimum number of label swaps necessary to transform the graph from one labeling to the other, where a swap is the interchange of the labels of two adjacent nodes. We are interested in the complexity of determining the swap distance. The problem has been recently explored for various restricted classes of graphs, but its complexity in general graphs has not been established.

We show that the problem is \(\mathcal {NP}\)-hard. In addition we consider restricted versions of the problem where a node can only participate in a bounded number of swaps. We show that the problem is \(\mathcal {NP}\)-hard under these restrictions as well.

A. Amir—Partly supported by ISF grant 571/14.

B. Porat—Partly supported by a Bar Ilan University President Fellowship. This work is part of Benny Porat’s Ph.D. thesis.

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

Institutional subscriptions

References

  1. Agnarsson, G., Greenlaw, R., Kantabutra, S.: On the graph relabeling problem. Thai J. Math. 8(1), 21–42 (2010)

    MATH  MathSciNet  Google Scholar 

  2. Akutsu, T.: A linear time pattern matching algorithm between a string and a tree. In: Proceedings of 4th Symposium on Combinatorial Pattern Matching (CPM), pp. 1–10, Padova (1993)

    Google Scholar 

  3. Amir, A., Aumann, Y., Indyk, P., Levy, A., Porat, E.: Efficient computations of \(\ell _{1}\) and \(\ell _{\infty }\) rearrangement distances. In: Ziviani, N., Baeza-Yates, R. (eds.) SPIRE 2007. LNCS, vol. 4726, pp. 39–49. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  4. Amir, A., Aumann, A., Lewenstein, M., Porat, E.: Function matching. SIAM J. Comput. 35(5), 1007–1022 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  5. Amir, A., Aumann, Y., Benson, G., Levy, A., Lipsky, O., Porat, E., Skiena, S., Vishne, U.: Pattern matching with address errors: rearrangement distances. In: Proceedings of 17th ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 1221–1229 (2006)

    Google Scholar 

  6. Amir, A., Aumann, Y., Kapah, O., Levy, A., Porat, E.: Approximate string matching with address bit errors. In: Ferragina, P., Landau, G.M. (eds.) CPM 2008. LNCS, vol. 5029, pp. 118–129. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  7. Amir, A., Aumann, Y., Landau, G., Lewenstein, M., Lewenstein, N.: Pattern matching with swaps. In: Proceedings of 38th IEEE FOCS, pp. 144–153 (1997)

    Google Scholar 

  8. Amir, A., Aumann, Y., Landau, G., Lewenstein, M., Lewenstein, N.: Pattern matching with swaps. J. Algorithms 37(2), 247–266 (2000). (Preliminary version appeared at FOCS 1997)

    Article  MATH  MathSciNet  Google Scholar 

  9. Amir, A., Cole, R., Hariharan, R., Lewenstein, M., Porat, E.: Overlap matching. Inf. Comput. 181(1), 57–74 (2003)

    Article  MATH  MathSciNet  Google Scholar 

  10. Amir, A., Eisenberg, E., Porat, E.: Swap and mismatch edit distance. Algorithmica 45(1), 109–120 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  11. Amir, A., Hartman, T., Kapah, O., Levy, A., Porat, E.: On the cost of interchange rearrangement in strings. SIAM J. Comp. 39(4), 1444–1461 (2009)

    Article  MATH  MathSciNet  Google Scholar 

  12. Amir, A., Landau, G.M., Lewenstein, M., Lewenstein, N.: Efficient special cases of pattern matching with swaps. Inf. Process. Lett. 68(3), 125–132 (1998)

    Article  MathSciNet  Google Scholar 

  13. Amir, A., Lewenstein, M., Porat, E.: Approximate swapped matching. Inf. Process. Lett. 83(1), 33–39 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  14. Amir, A., Lewenstein, N., Lewenstein, M.: Pattern matching in hypertext. J. Algorithms 35, 82–99 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  15. Amir, A., Navarro, G.: Parameterized matching of non-linear structures. Inf. Process. Lett. 109(15), 864–867 (2009)

    Article  MATH  MathSciNet  Google Scholar 

  16. Clifford, R., Efremenko, K., Porat, E., Rothschild, A.: From coding theory to efficient pattern matching. In: Proceedings of 20th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 778–784 (2009)

    Google Scholar 

  17. Clifford, R., Efremenko, K., Porat, E., Rothschild, A.: k-Mismatch with don’t cares. In: Arge, L., Hoffmann, M., Welzl, E. (eds.) ESA 2007. LNCS, vol. 4698, pp. 151–162. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  18. Clifford, R., Porat, E.: A Filtering algorithm for k-mismatch with don’t cares. In: Ziviani, N., Baeza-Yates, R. (eds.) SPIRE 2007. LNCS, vol. 4726, pp. 130–136. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  19. Cole, R., Hariharan, R.: Randomized swap matching in \(o(m \log m \log |\sigma |)\) time. Technical report TR1999-789, New York University, Courant Institute, September 1999

    Google Scholar 

  20. Cole, R., Hariharan, R., Lewenstein, M., Porat, E.: A faster implementation of the goemans-williamson clustering algorithm. In: Proceedings of 12th ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 17–25 (2001)

    Google Scholar 

  21. Dombb, Y., Lipsky, O., Porat, B., Porat, E., Tsur, A.: Approximate swap and mismatch edit distance. In: Ziviani, N., Baeza-Yates, R. (eds.) SPIRE 2007. LNCS, vol. 4726, pp. 149–163. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  22. Duato, J.: A theory of fault-tolerant routing in wormhole networks. IEEE Trans. Parallel Distrib. Syst. 8(8), 790–802 (1997)

    Article  Google Scholar 

  23. Dweighter, H.: Problem e2569. Am. Math. Mon. 82, 1010 (1975)

    Article  MathSciNet  Google Scholar 

  24. Gallian, J.A.: A dynamic survey of graph labeling. Electronic Journal of Combinatorics 18, 1–219 (2011)

    Google Scholar 

  25. Gates, W.H., Papadimittiou, C.H.: Bounds for sorting by prefix reversal. Discrete Math. 27, 47–57 (1979)

    Article  MathSciNet  Google Scholar 

  26. Heydari, M.H., Sudborough, I.H.: On the diameter of the pancake network. J. Algorithms 25(1), 67–94 (1997)

    Article  MATH  MathSciNet  Google Scholar 

  27. Johnson, W.W., Woolsay, W.E.: Notes on the ‘15 puzzle’. Am. J. Math. 2(4), 397–404 (1879)

    Article  MATH  Google Scholar 

  28. Kantabutra, S.: The complexity of label relocation problems on graphs. In: Proceedings of 8th Asian Symposium of Computer Mathematics, National University of Singapore (2007)

    Google Scholar 

  29. Kapah, O., Landau, G.M., Levy, A., Oz, N.: Interchange rearrangement: the element-cost model. In: Amir, A., Turpin, A., Moffat, A. (eds.) SPIRE 2008. LNCS, vol. 5280, pp. 224–235. Springer, Heidelberg (2008)

    Chapter  Google Scholar 

  30. Kim, D.K., Park, K.: String matching in hypertext. In: Proceedings of 6th Symposium on Combinatorial Pattern Matching (CPM 1995) (1995)

    Google Scholar 

  31. Lipsky, O., Porat, B., Porat, E., Shalom, B.R., Tzur, A.: Approximate string matching with swap and mismatch. In: Tokuyama, T. (ed.) ISAAC 2007. LNCS, vol. 4835, pp. 869–880. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  32. Manber, U., Wu, S.: Approximate string matching with arbitrary cost for text and hypertext. In: Proceedings International Workshop on Structural and Syntactic Pattern Recognition, pp. 22–33 (1992)

    Google Scholar 

  33. Muir, T.: A treatise of the thoery of determinants with graduated sets of exercises. Macmillan and Co., London (1882)

    Google Scholar 

  34. Muthukrishnan, S.: New results and open problems related to non-standard stringology. In: Galil, Zvi, Ukkonen, Esko (eds.) CPM 1995. LNCS, vol. 937, pp. 298–317. Springer, Heidelberg (1995)

    Chapter  Google Scholar 

  35. Navarro, G.: Improved approximate pattern matching on hypertext. Theoret. Comput. Sci. 237, 455–463 (2000)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Amihood Amir .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Amir, A., Porat, B. (2015). On the Hardness of Optimal Vertex Relabeling and Restricted Vertex Relabeling. In: Cicalese, F., Porat, E., Vaccaro, U. (eds) Combinatorial Pattern Matching. CPM 2015. Lecture Notes in Computer Science(), vol 9133. Springer, Cham. https://doi.org/10.1007/978-3-319-19929-0_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-19929-0_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-19928-3

  • Online ISBN: 978-3-319-19929-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics