The (Weighted) Metric Dimension of Graphs: Hard and Easy Cases
Given an input undirected graph \(G=(V,E)\), we say that a vertex \(\ell \) separates \(u\) from \(v\) (where \(u,v\in V\)) if the distance between \(u\) and \(\ell \) differs from the distance from \(v\) to \(\ell \). A set of vertices \(L\subseteq V\) is a feasible solution if for every pair of vertices, \(u,v\in V\) (\(u\ne v\)), there is a vertex \(\ell \in L\) that separates \(u\) from \(v\). Such a feasible solution is called a landmark set, and the metric dimension of a graph is the minimum cardinality of a landmark set. Here, we extend this well-studied problem to the case where each vertex \(v\) has a non-negative cost, and the goal is to find a feasible solution with a minimum total cost. This weighted version is NP-hard since the unweighted variant is known to be NP-hard. We show polynomial time algorithms for the cases where \(G\) is a path, a tree, a cycle, a cograph, a \(k\)-edge-augmented tree (that is, a tree with additional \(k\) edges) for a constant value of \(k\), and a (not necessarily complete) wheel. The results for paths, trees, cycles, and complete wheels extend known polynomial time algorithms for the unweighted version, whereas the other results are the first known polynomial time algorithms for these classes of graphs even for the unweighted version. Next, we extend the set of graph classes for which computing the unweighted metric dimension of a graph is known to be NP-hard. We show that for split graphs, bipartite graphs, co-bipartite graphs, and line graphs of bipartite graphs, the problem of computing the unweighted metric dimension of the graph is NP-hard.
KeywordsGraph algorithms Metric dimension Graph classes
- 8.Díaz, J., Pottonen, O., Serna, M.J., van Leeuwen, E.J.: On the complexity of metric dimension. In: Epstein, L., Ferragina, P. (eds.) ESA, Lecture Notes in Computer Science, vol. 7501, pp. 419–430. Springer, Berlin (2012)Google Scholar
- 10.Hartung, S., Nichterlein, A.: On the parameterized and approximation hardness of metric dimension. In: Umans, C. (ed.) Proceedings of IEEE Conference on Computational Complexity (CCC), pp. 266–276 (2013)Google Scholar
- 12.Hoffmann, S., Wanke, E.: Metric dimension for Gabriel unit disk graphs is NP-complete. In: Bar-Noy, A., Halldórsson, Magnús, M. (eds.) ALGOSENSORS: Lecture Notes in Computer Science, vol. 7718, pp. 90–92. Springer, Berlin (2013). Also in CoRR, abs/1306.2187 (2013)Google Scholar