Metric dimension (graph theory)
   HOME

TheInfoList



OR:

In
graph theory In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, 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 In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by trying ...
.


Detailed definition

For an ordered subset W = \ 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,w_1), d(v,w_2),\dots,d(v,w_k)), 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 and , 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''. 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.


Properties

In , it is proved that: * The metric dimension of a graph is 1 if and only if is a path. * The metric dimension of an -vertex graph is if and only if it is a
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
. * The metric dimension of an -vertex graph is if and only if the graph is a
complete bipartite graph In the mathematical field of graph theory, a complete bipartite graph or biclique is a special kind of bipartite graph where every vertex of the first set is connected to every vertex of the second set..Electronic edition page 17. Graph theory i ...
, a
split graph In graph theory, a branch of mathematics, a split graph is a graph in which the vertices can be partitioned into a clique and an independent set. Split graphs were first studied by , and independently introduced by . A split graph may have m ...
K_s+\overline (s\geq 1, t\geq 2), or K_s+(K_1\cup K_t) (s,t\geq 1) .


Relations between the order, the metric dimension and the diameter

prove the inequality n\leq D^+\beta for any -vertex graph with
diameter In geometry, a diameter of a circle is any straight line segment that passes through the center of the circle and whose endpoints lie on the circle. It can also be defined as the longest chord of the circle. Both definitions are also valid fo ...
D and metric dimension \beta. 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 \beta with each entry being an integer between 1 and D (there are precisely D^ such vectors). However, the bound is only achieved for D\leq 3 or \beta=1; the more precise bound n\leq \left(\lfloor 2D/3\rfloor+1\right)^\beta+\beta\sum_^(2i-1)^ is proved by . For specific graph classes, smaller bounds can hold. For example, proved that n\leq(\beta D+4)(D+2)/8 for trees (the bound being tight for even values of ), and a bound of the form n= O(D^2\beta) for
outerplanar graph In graph theory, an outerplanar graph is a graph that has a planar drawing for which all vertices belong to the outer face of the drawing. Outerplanar graphs may be characterized (analogously to Wagner's theorem for planar graphs) by the two fo ...
s. The same authors proved that n\leq (D\beta+1)^ for graphs with no
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
of order as a minor and also gave bounds for
chordal graph In the mathematical area of graph theory, a chordal graph is one in which all cycles of four or more vertices have a ''chord'', which is an edge that is not part of the cycle but connects two vertices of the cycle. Equivalently, every induced c ...
s and graphs of bounded
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
. The authors proved bounds of the form n= O(D\beta^2) for
interval graph In graph theory, an interval graph is an undirected graph formed from a set of intervals on the real line, with a vertex for each interval and an edge between vertices whose intervals intersect. It is the intersection graph of the intervals. In ...
s and
permutation graph In the mathematical field of graph theory, a permutation graph is a graph whose vertices represent the elements of a permutation, and whose edges represent pairs of elements that are reversed by the permutation. Permutation graphs may also be ...
s, and bounds of the form n=O(D\beta) for
unit interval graph In graph theory, a branch of mathematics, an indifference graph is an undirected graph constructed by assigning a real number to each vertex and connecting two vertices by an edge when their numbers are within one unit of each other.. Indifference ...
s, bipartite permutation graphs and
cograph In graph theory, a cograph, or complement-reducible graph, or ''P''4-free graph, is a graph that can be generated from the single-vertex graph ''K''1 by complementation and disjoint union. That is, the family of cographs is the smallest class of ...
s.


Computational complexity


Decision complexity

Deciding whether the metric dimension of a graph is at most a given integer is NP-complete. It remains NP-complete for bounded-degree planar graphs,
split graph In graph theory, a branch of mathematics, a split graph is a graph in which the vertices can be partitioned into a clique and an independent set. Split graphs were first studied by , and independently introduced by . A split graph may have m ...
s, bipartite graphs and their complements,
line graph In the mathematical discipline of graph theory, the line graph of an undirected graph is another graph that represents the adjacencies between edges of . is constructed in the following way: for each edge in , make a vertex in ; for every ...
s of bipartite graphs,
unit disk graph In geometric graph theory, a unit disk graph is the intersection graph of a family of unit disks in the Euclidean plane. That is, it is a graph with one vertex for each disk in the family, and with an edge between two vertices whenever the corr ...
s,
interval graph In graph theory, an interval graph is an undirected graph formed from a set of intervals on the real line, with a vertex for each interval and an edge between vertices whose intervals intersect. It is the intersection graph of the intervals. In ...
s of diameter 2 and
permutation graph In the mathematical field of graph theory, a permutation graph is a graph whose vertices represent the elements of a permutation, and whose edges represent pairs of elements that are reversed by the permutation. Permutation graphs may also be ...
s of diameter 2, and graphs of bounded
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
. 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 In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. T ...
(for the natural parameter ''k'', the solution size). Answering a question posed by , show that the metric dimension decision problem is complete for the parameterized complexity class W implying that a time bound of the form ''n''O(''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 In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. T ...
when restricted to
interval graph In graph theory, an interval graph is an undirected graph formed from a set of intervals on the real line, with a vertex for each interval and an edge between vertices whose intervals intersect. It is the intersection graph of the intervals. In ...
s, and more generally to graphs of bounded tree-length, such as
chordal graph In the mathematical area of graph theory, a chordal graph is one in which all cycles of four or more vertices have a ''chord'', which is an edge that is not part of the cycle but connects two vertices of the cycle. Equivalently, every induced c ...
s,
permutation graph In the mathematical field of graph theory, a permutation graph is a graph whose vertices represent the elements of a permutation, and whose edges represent pairs of elements that are reversed by the permutation. Permutation graphs may also be ...
s 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; . Other linear-time algorithms exist for
cograph In graph theory, a cograph, or complement-reducible graph, or ''P''4-free graph, is a graph that can be generated from the single-vertex graph ''K''1 by complementation and disjoint union. That is, the family of cographs is the smallest class of ...
s,
chain graph In graph theory, a mixed graph is a graph consisting of a set of vertices , a set of (undirected) edges , and a set of directed edges (or arcs) . Definitions and notation Consider adjacent vertices u,v \in V. A directed edge, called an arc, ...
s, and cactus block graphs (a class including both
cactus graph In graph theory, a cactus (sometimes called a cactus tree) is a connected graph in which any two simple cycles have at most one vertex in common. Equivalently, it is a connected graph in which every edge belongs to at most one simple cycle, or ...
s and
block graph In graph theory, a branch of combinatorial mathematics, a block graph or clique tree. is a type of undirected graph in which every biconnected component (block) is a clique. Block graphs are sometimes erroneously called Husimi trees (after KĂ ...
s). The problem may be solved in polynomial time on
outerplanar graph In graph theory, an outerplanar graph is a graph that has a planar drawing for which all vertices belong to the outer face of the drawing. Outerplanar graphs may be characterized (analogously to Wagner's theorem for planar graphs) by the two fo ...
s. It may also be solved in polynomial time for graphs of bounded
cyclomatic number In graph theory, a branch of mathematics, the circuit rank, cyclomatic number, cycle rank, or nullity of an undirected graph is the minimum number of edges that must be removed from the graph to break all its cycles, making it into a tree or fo ...
, 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 In graph theory, a vertex cover (sometimes node cover) of a graph is a set of vertices that includes at least one endpoint of every edge of the graph. In computer science, the problem of finding a minimum vertex cover is a classical optimiza ...
", "max leaf number", and "modular width". Graphs with bounded cyclomatic number, vertex cover number or max leaf number all have bounded
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
, 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 graph In graph theory, series–parallel graphs are graphs with two distinguished vertices called ''terminals'', formed recursively by two simple composition operations. They can be used to model series and parallel electric circuits. Definition and t ...
s.


Approximation complexity

The metric dimension of an arbitrary ''n''-vertex graph may be approximated in polynomial time to within an
approximation ratio An approximation is anything that is intentionally similar but not exactly equal to something else. Etymology and usage The word ''approximation'' is derived from Latin ''approximatus'', from ''proximus'' meaning ''very near'' and the prefix ' ...
of 2\log n by expressing it as a
set cover problem The set cover problem is a classical question in combinatorics, computer science, operations research, and complexity theory. It is one of Karp's 21 NP-complete problems shown to be NP-complete in 1972. Given a set of elements (called the un ...
, a problem of covering all of a given collection of elements by as few sets as possible in a given
family of sets In set theory and related branches of mathematics, a collection F of subsets of a given set S is called a family of subsets of S, or a family of sets over S. More generally, a collection of any sets whatsoever is called a family of sets, set fami ...
. In the set cover problem formed from a metric dimension problem, the elements to be covered are the \tbinom 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 A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally ...
that chooses vertices according to the difference in
entropy Entropy is a scientific concept, as well as a measurable physical property, that is most commonly associated with a state of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynam ...
between the equivalence classes of distance vectors before and after the choice achieves an even better approximation ratio, \log n+\log\log_2 n+1. This approximation ratio is close to best possible, as under standard complexity-theoretic assumptions a ratio of (1-\epsilon)\log n cannot be achieved in polynomial time for any \epsilon>0. The latter hardness of approximation still holds for instances restricted to subcubic graphs, and even to bipartite subcubic graphs.


References


Notes


Bibliography

* *. *. *. *. *. *. *. *. *. *. * *. * A1.5: GT61, p. 204. *. *. *. *. *. * *. *. * *. *. *{{citation, first=P. J., last=Slater, title=Dominating and reference sets in a graph, journal=Journal of Mathematical and Physical Sciences, volume=22, issue=4, pages=445–455, year=1988, mr=0966610. Graph invariants