Metric dimension (graph theory)

From testwiki
Jump to navigation Jump to search

In graph theory, the metric dimension of a graph G is the minimum cardinality of a subset S of vertices such that all other vertices are uniquely determined by their distances to the vertices in S. Finding the metric dimension of a graph is an NP-hard problem; the decision version, determining whether the metric dimension is less than a given value, is NP-complete.

Detailed definition

For an ordered subset W={w1,w2,,wk} of vertices and a vertex v in a connected graph G, the representation of v with respect to W is the ordered k-tuple r(v|W)=(d(v,w1),d(v,w2),,d(v,wk)), where d(x,y) represents the distance between the vertices x and y. The set W is a resolving set (or locating set) for G if every two vertices of G have distinct representations. The metric dimension of G is the minimum cardinality of a resolving set for G. A resolving set containing a minimum number of vertices is called a basis (or reference set) for G. Resolving sets for graphs were introduced independently by Template:Harvtxt and Template:Harvtxt, while the concept of a resolving set and that of metric dimension were defined much earlier in the more general context of metric spaces by Blumenthal in his monograph Theory and Applications of Distance Geometry. Graphs are special examples of metric spaces with their intrinsic path metric.

Trees

If a tree is a path, its metric dimension is one. Otherwise, let L denote the set of leaves, degree-one vertices in the tree. Let K be the set of vertices that have degree greater than two, and that are connected by paths of degree-two vertices to one or more leaves. Then the metric dimension is |L| − |K|. A basis of this cardinality may be formed by removing from L one of the leaves associated with each vertex in K.[1] The same algorithm is valid for the line graph of the tree, and thus any tree and its line graph have the same metric dimension.Template:Sfn

Properties

In Template:Harvtxt, it is proved that:

Relations between the order, the metric dimension and the diameter

Template:Harvtxt prove the inequality nDβ+β for any Template:Mvar-vertex graph with diameter D and metric dimension β. This bounds follows from the fact that each vertex that is not in the resolving set is uniquely determined by a distance vector of length β with each entry being an integer between 1 and D (there are precisely Dβ such vectors). However, the bound is only achieved for D3 or β=1; the more precise bound n(2D/3+1)β+βi=1D/3(2i1)β1 is proved by Template:Harvtxt.

For specific graph classes, smaller bounds can hold. For example, Template:Harvtxt proved that n(βD+4)(D+2)/8 for trees (the bound being tight for even values of Template:Mvar), and a bound of the form n=O(D2β) for outerplanar graphs. The same authors proved that n(Dβ+1)t1 for graphs with no complete graph of order Template:Mvar as a minor and also gave bounds for chordal graphs and graphs of bounded treewidth. The authors Template:Harvtxt proved bounds of the form n=O(Dβ2) for interval graphs and permutation graphs, and bounds of the form n=O(Dβ) for unit interval graphs, bipartite permutation graphs and cographs.

Computational complexity

Decision complexity

Deciding whether the metric dimension of a graph is at most a given integer is NP-complete.Template:Sfn It remains NP-complete for bounded-degree planar graphs,Template:Sfn split graphs, bipartite graphs and their complements, line graphs of bipartite graphs,Template:Sfn unit disk graphs,Template:Sfn interval graphs of diameter 2 and permutation graphs of diameter 2,Template:Sfn and graphs of bounded treewidth.Template:Sfn

For any fixed constant k, the graphs of metric dimension at most k can be recognized in polynomial time, by testing all possible k-tuples of vertices, but this algorithm is not fixed-parameter tractable (for the natural parameter k, the solution size). Answering a question posed by Template:Harvtxt, Template:Harvtxt show that the metric dimension decision problem is complete for the parameterized complexity class W[2], implying that a time bound of the form nO(k) as achieved by this naive algorithm is likely optimal and that a fixed-parameter tractable algorithm (for the parameterization by k) is unlikely to exist. Nevertheless, the problem becomes fixed-parameter tractable when restricted to interval graphs,Template:Sfn and more generally to graphs of bounded tree-length,Template:Sfn such as chordal graphs, permutation graphs or asteroidal-triple-free graphs.

Deciding whether the metric dimension of a tree is at most a given integer can be done in linear time[2] Other linear-time algorithms exist for cographs,Template:Sfn chain graphs,Template:Sfn and cactus block graphsTemplate:Sfn (a class including both cactus graphs and block graphs). The problem may be solved in polynomial time on outerplanar graphs.Template:Sfn It may also be solved in polynomial time for graphs of bounded cyclomatic number,Template:Sfn but this algorithm is again not fixed-parameter tractable (for the parameter "cyclomatic number") because the exponent in the polynomial depends on the cyclomatic number. There exist fixed-parameter tractable algorithms to solve the metric dimension problem for the parameters "vertex cover",Template:Sfn "max leaf number",Template:Sfn and "modular width".Template:Sfn Graphs with bounded cyclomatic number, vertex cover number or max leaf number all have bounded treewidth, however it is an open problem to determine the complexity of the metric dimension problem even on graphs of treewidth 2, that is, series–parallel graphs.Template:Sfn

Approximation complexity

The metric dimension of an arbitrary n-vertex graph may be approximated in polynomial time to within an approximation ratio of 2logn by expressing it as a set cover problem, a problem of covering all of a given collection of elements by as few sets as possible in a given family of sets. Template:Sfn In the set cover problem formed from a metric dimension problem, the elements to be covered are the (n2) pairs of vertices to be distinguished, and the sets that can cover them are the sets of pairs that can be distinguished by a single chosen vertex. The approximation bound then follows by applying standard approximation algorithms for set cover. An alternative greedy algorithm that chooses vertices according to the difference in entropy between the equivalence classes of distance vectors before and after the choice achieves an even better approximation ratio, logn+loglog2n+1.Template:Sfn This approximation ratio is close to best possible, as under standard complexity-theoretic assumptions a ratio of (1ϵ)logn cannot be achieved in polynomial time for any ϵ>0.Template:Sfn The latter hardness of approximation still holds for instances restricted to subcubic graphs,Template:Sfn and even to bipartite subcubic graphs.Template:Sfn

References

Notes

Template:Reflist

Bibliography

  1. Template:Harvnb; Template:Harvnb; Template:Harvnb. Note Slater's nonstandard definition of the leaves of a tree.
  2. Template:Harvnb; Template:Harvnb.