Algorithms and Complexity for Metric Dimension and Location-domination on Interval and Permutation Graphs

  • Florent Foucaud
  • George B. Mertzios
  • Reza Naserasr
  • Aline ParreauEmail author
  • Petru Valicov
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9224)


We study the problems Locating-Dominating Set and Metric Dimension, which consist of determining a minimum-size set of vertices that distinguishes the vertices of a graph using either neighbourhoods or distances. We consider these problems when restricted to interval graphs and permutation graphs. We prove that both decision problems are NP-complete, even for graphs that are at the same time interval graphs and permutation graphs and have diameter 2. While Locating-Dominating Set parameterized by solution size is trivially fixed-parameter-tractable, it is known that Metric Dimension is W[2]-hard. We show that for interval graphs, this parameterization of Metric Dimension is fixed-parameter-tractable.



We thank Adrian Kosowski for helpful discussions.


  1. 1.
    Babai, L.: On the complexity of canonical labelling of strongly regular graphs. SIAM J. Comput. 9(1), 212–216 (1980)MathSciNetCrossRefzbMATHGoogle Scholar
  2. 2.
    Beerliova, Z., Eberhard, F., Erlebach, T., Hall, A., Hoffmann, M., Mihalák, M., Ram, L.S.: Network discovery and verification. IEEE J. Sel. Area Comm. 24(12), 2168–2181 (2006)CrossRefzbMATHGoogle Scholar
  3. 3.
    Booth, K.S., Lueker, G.S.: Testing for the consecutive ones property, interval graphs, and graph planarity using PQ-tree algorithms. J. Comput. Syst. Sci. 13(3), 335–379 (1976)MathSciNetCrossRefzbMATHGoogle Scholar
  4. 4.
    Bousquet, N., Lagoutte, A., Li, Z., Parreau, A., Thomassé, S.: Identifying codes in hereditary classes of graphs and VC-dimension. SIAM J. Discrete Math. 29(4), 2047–2064 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  5. 5.
    Charon, I., Hudry, O., Lobstein, A.: Minimizing the size of an identifying or locating-dominating code in a graph is NP-hard. Theor. Comput. Sci. 290(3), 2109–2120 (2003)MathSciNetCrossRefzbMATHGoogle Scholar
  6. 6.
    Chartrand, G., Eroh, L., Johnson, M., Oellermann, O.: Resolvability in graphs and the metric dimension of a graph. Disc. Appl. Math. 105(1–3), 99–113 (2000)MathSciNetCrossRefzbMATHGoogle Scholar
  7. 7.
    Colbourn, C., Slater, P.J., Stewart, L.K.: Locating-dominating sets in series-parallel networks. Congr. Numer. 56, 135–162 (1987)MathSciNetzbMATHGoogle Scholar
  8. 8.
    Courcelle, B.: The monadic second-order logic of graphs. I. Recognizable sets of finite graphs. Inf. Comput. 85(1), 12–75 (1990)MathSciNetCrossRefzbMATHGoogle Scholar
  9. 9.
    Díaz, J., Pottonen, O., Serna, M., van Leeuwen, E.J.: On the complexity of metric dimension. In: Epstein, L., Ferragina, P. (eds.) ESA 2012. LNCS, vol. 7501, pp. 419–430. Springer, Heidelberg (2012)CrossRefGoogle Scholar
  10. 10.
    Downey, R.G., Fellows, M.R.: Fundamentals of Parameterized Complexity. Texts in Computer Science. Springer, Heidelberg (2013)CrossRefzbMATHGoogle Scholar
  11. 11.
    Epstein, L., Levin, A., Woeginger, G.J.: The (weighted) metric dimension of graphs: hard and easy cases. Algorithmica 72(4), 1130–1171 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  12. 12.
    Fernau, H., Heggernes, P., van’t Hof, P., Meister, D., Saei, R.: Computing the metric dimension for chain graphs. Inform. Process. Lett. 115, 671–676 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  13. 13.
    Flotow, C.: On powers of m-trapezoid graphs. Disc. Appl. Math. 63(2), 187–192 (1995)MathSciNetCrossRefzbMATHGoogle Scholar
  14. 14.
    Foucaud, F.: Decision and approximation complexity for identifying codes and locating-dominating sets in restricted graph classes. J. Discrete Alg. 31, 48–68 (2015)MathSciNetCrossRefzbMATHGoogle Scholar
  15. 15.
    Foucaud, F., Gravier, S., Naserasr, R., Parreau, A., Valicov, P.: Identifying codes in line graphs. J. Graph Theor. 73(4), 425–448 (2013)MathSciNetCrossRefzbMATHGoogle Scholar
  16. 16.
    Foucaud, F., Mertzios, G., Naserasr, R., Parreau, A., Valico, P.: Identification, location-domination and metric dimension on interval and permutation graphs. II. Algorithms and complexity. Algorithmica, to appear (2016). arXiv:1405.2424
  17. 17.
    Foucaud, F., Naserasr, R., Parreau, A., Valicov, P.: On powers of interval graphs and their orders. arXiv:1505.03459
  18. 18.
    Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, San Francisco (1979)zbMATHGoogle Scholar
  19. 19.
    Golumbic, M.C.: Algorithmic Graph Theory and Perfect Graphs. Elsevier, Amsterdam (2004)zbMATHGoogle Scholar
  20. 20.
    Gravier, S., Klasing, R., Moncel, J.: Hardness results and approximation algorithms for identifying codes and locating-dominating codes in graphs. Algorithmic Oper. Res. 3(1), 43–50 (2008)MathSciNetzbMATHGoogle Scholar
  21. 21.
    Harary, F., Melter, R.A.: On the metric dimension of a graph. Ars Comb. 2, 191–195 (1976)MathSciNetzbMATHGoogle Scholar
  22. 22.
    Hartung, S.: Exploring parameter spaces in coping with computational intractability. Ph.D. Thesis, TU Berlin, Germany (2014)Google Scholar
  23. 23.
    Hartung, S., Nichterlein, A.: On the parameterized and approximation hardness of metric dimension. In: Proceedings of the CCC 2013, pp. 266–276 (2013)Google Scholar
  24. 24.
    Hoffmann, S., Wanke, E.: Metric Dimension for gabriel unit disk graphs Is NP-complete. In: Bar-Noy, A., Halldórsson, M.M. (eds.) ALGOSENSORS 2012. LNCS, vol. 7718, pp. 90–92. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  25. 25.
    Karp, R.M.: Reducibility among combinatorial problems. In: Complexity of Computer Computations, pp. 85–103. Plenum Press, New York (1972)Google Scholar
  26. 26.
    Kim, J.H., Pikhurko, O., Spencer, J., Verbitsky, O.: How complex are random graphs in first order logic? Random Struct. Alg. 26(1–2), 119–145 (2005)MathSciNetCrossRefzbMATHGoogle Scholar
  27. 27.
    Kloks, T.: Treewidth: Computations and Approximations. LNCS, vol. 842. Springer, Heidelberg (1994)CrossRefzbMATHGoogle Scholar
  28. 28.
    Manuel, P., Rajan, B., Rajasingh, I., Chris-Monica, M.: On minimum metric dimension of honeycomb networks. J. Discrete Alg. 6(1), 20–27 (2008)MathSciNetCrossRefzbMATHGoogle Scholar
  29. 29.
    Müller, T., Sereni, J.-S.: Identifying and locating-dominating codes in (random) geometric networks. Comb. Probab. Comput. 18(6), 925–952 (2009)MathSciNetCrossRefzbMATHGoogle Scholar
  30. 30.
    Niedermeier, R.: Invitation to Fixed-Parameter Algorithms. Oxford University Press, Oxford (2006)CrossRefzbMATHGoogle Scholar
  31. 31.
    Raychaudhuri, A.: On powers of interval graphs and unit interval graphs. Congr. Numer. 59, 235–242 (1987)MathSciNetzbMATHGoogle Scholar
  32. 32.
    Slater, P.J.: Leaves of trees. Congr. Numer. 14, 549–559 (1975)MathSciNetzbMATHGoogle Scholar
  33. 33.
    Slater, P.J.: Domination and location in acyclic graphs. Networks 17(1), 55–64 (1987)MathSciNetCrossRefzbMATHGoogle Scholar
  34. 34.
    Slater, P.J.: Dominating and reference sets in a graph. J. Math. Phys. Sci. 22(4), 445–455 (1988)MathSciNetzbMATHGoogle Scholar
  35. 35.
    Suomela, J.: Approximability of identifying codes and locating-dominating codes. Inform. Process. Lett. 103(1), 28–33 (2007)MathSciNetCrossRefzbMATHGoogle Scholar
  36. 36.
    Ungrangsi, R., Trachtenberg, A., Starobinski, D.: An implementation of indoor location detection systems based on identifying codes. In: Aagesen, F.A., Anutariya, C., Wuwongse, V. (eds.) INTELLCOMM 2004. LNCS, vol. 3283, pp. 175–189. Springer, Heidelberg (2004)CrossRefGoogle Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2016

Authors and Affiliations

  • Florent Foucaud
    • 1
  • George B. Mertzios
    • 2
  • Reza Naserasr
    • 3
  • Aline Parreau
    • 4
    Email author
  • Petru Valicov
    • 5
  1. 1.Université Blaise Pascal, LIMOS - CNRS UMR 6158Clermont-FerrandFrance
  2. 2.School of Engineering and Computing SciencesDurham UniversityDurhamUK
  3. 3.CNRS - IRIF, Université Paris DiderotParisFrance
  4. 4.CNRS, LIRIS, UMR 5205, Université de LyonVilleurbanneFrance
  5. 5.CNRS, LIF, UMR 7279, Université d’Aix-MarseilleMarseilleFrance

Personalised recommendations