Tree-depth
   HOME

TheInfoList



OR:

In
graph theory In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
, the tree-depth of a
connected Connected may refer to: Film and television * ''Connected'' (2008 film), a Hong Kong remake of the American movie ''Cellular'' * '' Connected: An Autoblogography About Love, Death & Technology'', a 2011 documentary film * ''Connected'' (2015 TV ...
undirected graph In discrete mathematics, particularly in graph theory, a graph is a structure consisting of a set of objects where some pairs of the objects are in some sense "related". The objects are represented by abstractions called '' vertices'' (also call ...
G is a numerical invariant of G, the minimum height of a
Trémaux tree In graph theory, a Trémaux tree of an undirected graph G is a type of spanning tree, generalizing depth-first search trees. They are defined by the property that every edge of G connects an ancestor–descendant pair in the tree. Trémaux trees ar ...
for a supergraph of G. This invariant and its close relatives have gone under many different names in the literature, including vertex ranking number, ordered chromatic number, and minimum elimination tree height; it is also closely related to the cycle rank of directed graphs and the
star height In theoretical computer science, more precisely in the theory of formal languages, the star height is a measure for the structural complexity of regular expressions and regular languages. The star height of a regular ''expression'' equals the maxim ...
of
regular language In theoretical computer science and formal language theory, a regular language (also called a rational language) is a formal language that can be defined by a regular expression, in the strict sense in theoretical computer science (as opposed to ...
s. Intuitively, where the
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 ...
of a graph measures how far it is from being a
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, e.g., including only woody plants with secondary growth, only ...
, this parameter measures how far a graph is from being a
star A star is a luminous spheroid of plasma (physics), plasma held together by Self-gravitation, self-gravity. The List of nearest stars and brown dwarfs, nearest star to Earth is the Sun. Many other stars are visible to the naked eye at night sk ...
.


Definitions

The tree-depth of a graph G may be defined as the minimum height of a
forest A forest is an ecosystem characterized by a dense ecological community, community of trees. Hundreds of definitions of forest are used throughout the world, incorporating factors such as tree density, tree height, land use, legal standing, ...
F with the property that every edge of G connects a pair of nodes that have an ancestor-descendant relationship to each other in F. If G is connected, this forest must be a single tree; it need not be a subgraph of G, but if it is, it is a
Trémaux tree In graph theory, a Trémaux tree of an undirected graph G is a type of spanning tree, generalizing depth-first search trees. They are defined by the property that every edge of G connects an ancestor–descendant pair in the tree. Trémaux trees ar ...
for G. The set of ancestor-descendant pairs in F forms a
trivially perfect graph In graph theory, a trivially perfect graph is a graph with the property that in each of its induced subgraphs the size of the maximum independent set equals the number of maximal cliques. Trivially perfect graphs were first studied by but were na ...
, and the height of F is the size of the largest
clique A clique (AusE, CanE, or ; ), in the social sciences, is a small group of individuals who interact with one another and share similar interests rather than include others. Interacting with cliques is part of normative social development regardles ...
in this graph. Thus, the tree-depth may alternatively be defined as the size of the largest clique in a trivially perfect supergraph of G, mirroring the definition of
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 ...
as one less than the size of the largest clique in a chordal supergraph of G. Another definition is the following: \operatorname(G)=\begin 1, & \text, G, =1;\\ 1 + \min_ \operatorname(G-v), & \text G \text , G, > 1;\\ \max_ (G_i), & \text; \end where V is the set of vertices of G and the G_i are the connected components of G. This definition mirrors the definition of cycle rank of directed graphs, which uses strong connectivity and strongly connected components in place of undirected connectivity and connected components. Tree-depth may also be defined using a form of
graph coloring In graph theory, graph coloring is a methodic assignment of labels traditionally called "colors" to elements of a Graph (discrete mathematics), graph. The assignment is subject to certain constraints, such as that no two adjacent elements have th ...
. A centered coloring of a graph is a coloring of its vertices with the property that every connected
induced subgraph In graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges, from the original graph, connecting pairs of vertices in that subset. Definition Formally, let G=(V,E) ...
has a color that appears exactly once. Then, the tree-depth is the minimum number of colors in a centered coloring of the given graph. If F is a forest of height d with the property that every edge of G connects an ancestor and a descendant in F, then a centered coloring of G using d colors may be obtained by coloring each vertex by its distance from the root of its tree in F. Finally, one can define this in terms of a
pebble game In mathematics and computer science, a pebble game is a type of mathematical game played by placing "pebbles" or "markers" on a directed acyclic graph according to certain rules: * A given step of the game consists of either placing a pebble on an ...
, or more precisely as a cops and robber game. Consider the following game, played on an undirected graph. There are two players, a robber and a cop. The robber has one pebble he can move along the edges of the given graph. The cop has an unlimited number of pebbles, but she wants to minimize the amount of pebbles she uses. The cop cannot move a pebble after it has been placed on the graph. The game proceeds as follows. The robber places his pebble. The cop then announces where she wants to place a new cop pebble. The robber can then move his pebble along edges, but not through occupied vertices. The game is over when the cop player places a pebble on top of the robber pebble. The tree-depth of the given graph is the minimum number of pebbles needed by the cop to guarantee a win. For a
star graph A star is a luminous spheroid of plasma (physics), plasma held together by Self-gravitation, self-gravity. The List of nearest stars and brown dwarfs, nearest star to Earth is the Sun. Many other stars are visible to the naked eye at night sk ...
, two pebbles suffice: the strategy is to place a pebble at the center vertex, forcing the robber to one arm, and then to place the remaining pebble on the robber. For a
path A path is a route for physical travel – see Trail. Path or PATH may also refer to: Physical paths of different types * Bicycle path * Bridle path, used by people on horseback * Course (navigation), the intended path of a vehicle * Desir ...
with n vertices, the cop uses a
binary search In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the m ...
strategy, which guarantees that at most \lceil\log_2(n+1)\rceil pebbles are needed.


Examples

The tree-depth of 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 i ...
equals its number of vertices. For, in this case, the only possible forest F for which every pair of vertices are in an ancestor-descendant relationship is a single path. Similarly, the tree-depth of 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 ...
K_ is \min(x,y)+1. For, the nodes that are placed at the leaves of the forest F must have at least \min(x,y) ancestors in F. A forest achieving this \min(x,y)+1 bound may be constructed by forming a path for the smaller side of the bipartition, with each vertex on the larger side of the bipartition forming a leaf in F connected to the bottom vertex of this path. The tree-depth of a path with n vertices is exactly \lceil\log_2(n+1)\rceil. A forest F representing this path with this depth may be formed by placing the midpoint of the path as the root of F and recursing within the two smaller paths on either side of it.


Depth of trees and relation to treewidth

Any n-vertex
forest A forest is an ecosystem characterized by a dense ecological community, community of trees. Hundreds of definitions of forest are used throughout the world, incorporating factors such as tree density, tree height, land use, legal standing, ...
has tree-depth O(\log n). For, in a forest, one can always find a constant number of vertices the removal of which leaves a forest that can be partitioned into two smaller subforests with at most 2n/3 vertices each. By recursively partitioning each of these two subforests, one can easily derive a logarithmic upper bound on the tree-depth. The same technique, applied to a
tree decomposition In graph theory, a tree decomposition is a mapping of a Graph (discrete mathematics), graph into a tree (graph theory), tree that can be used to define the treewidth of the graph and speed up solving certain computational problems on the graph. ...
of a graph, shows that, if the
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 ...
of an n-vertex graph G is t, then the tree-depth of G is O(t\log n). Since outerplanar graphs,
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, and
Halin graph In graph theory, a Halin graph is a type of planar graph, constructed by connecting the leaves of a tree (graph theory), tree into a cycle. The tree must have at least four vertices, none of which has exactly two neighbors; it should be drawn in ...
s all have bounded treewidth, they all also have at most logarithmic tree-depth. The typical graphs with large treedepth and small treewidth are the
perfect binary tree In computer science, a binary tree is a tree data structure in which each node has at most two children, referred to as the ''left child'' and the ''right child''. That is, it is a ''k''-ary tree with . A recursive definition using set theory i ...
s and the paths. Precisely, there is a constant C with the following property: if a graph has treedepth at least C k^5\log^2k and treewidth less than k then it contains a perfect binary tree with height k or a path of length 2^k as a minor. In the other direction, the treewidth of a graph is at most equal to its tree-depth. More precisely, the treewidth is at most the
pathwidth In graph theory, a path decomposition of a graph is, informally, a representation of as a "thickened" path graph, and the pathwidth of is a number that measures how much the path was thickened to form . More formally, a path-decomposition ...
, which is at most one less than the tree-depth.


Graph minors

A
minor Minor may refer to: Common meanings * Minor (law), a person not under the age of certain legal activities. * Academic minor, a secondary field of study in undergraduate education Mathematics * Minor (graph theory), a relation of one graph to an ...
of a graph G is another graph formed from a subgraph of G by contracting some of its edges. Tree-depth is monotonic under minors: every minor of a graph G has tree-depth at most equal to the tree-depth of G itself. Thus, by the
Robertson–Seymour theorem In graph theory, the Robertson–Seymour theorem (also called the graph minors theorem) states that the undirected graphs, partially ordered by the graph minor relationship, form a well-quasi-ordering. Equivalently, every family of graphs that is ...
, for every fixed d the set of graphs with tree-depth at most d has a finite set of forbidden minors. If \mathcal is a class of graphs closed under taking graph minors, then the graphs in \mathcal have tree-depth O(1) if and only if \mathcal does not include all the
path graph In the mathematical field of graph theory, a path graph (or linear graph) is a graph whose vertices can be listed in the order such that the edges are where . Equivalently, a path with at least two vertices is connected and has two termina ...
s., Proposition 6.4, p. 122. More precisely, there is a constant c such that every graph of treedepth at least k^c contains one of the following minors (each of treedepth at least k): * the k\times k grid, * the complete binary tree of height k, * the path of order 2^k.


Induced subgraphs

As well as behaving well under graph minors, tree-depth has close connections to the theory of
induced subgraph In graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges, from the original graph, connecting pairs of vertices in that subset. Definition Formally, let G=(V,E) ...
s of a graph. Within the class of graphs that have tree-depth at most d (for any fixed integer d), the relation of being an induced subgraph forms a
well-quasi-ordering In mathematics, specifically order theory, a well-quasi-ordering or wqo on a set X is a quasi-ordering of X for which every infinite sequence of elements x_0, x_1, x_2, \ldots from X contains an increasing pair x_i \leq x_j with i x_2> \cdots) ...
. The basic idea of the proof that this relation is a well-quasi-ordering is to use induction on d; the forests of height d may be interpreted as sequences of forests of height d-1 (formed by deleting the roots of the trees in the height-d forest) and
Higman's lemma In mathematics, Higman's lemma states that the set \Sigma^* of finite sequences over a finite alphabet \Sigma, as partially ordered by the subsequence relation, is a well partial order. That is, if w_1, w_2, \ldots\in \Sigma^* is an infinite seq ...
can be used together with the induction hypothesis to show that these sequences are well-quasi-ordered. Well-quasi-ordering implies that any property of graphs that is monotonic with respect to induced subgraphs has finitely many forbidden induced subgraphs, and therefore may be tested in polynomial time on graphs of bounded tree-depth. The graphs with tree-depth at most d themselves also have a finite set of forbidden induced subgraphs. If \mathcal is a class of graphs with bounded degeneracy, the graphs in \mathcal have bounded tree-depth if and only if there is a path graph that cannot occur as an induced subgraph of a graph in \mathcal.


Complexity

Computing tree-depth is computationally hard: the corresponding decision problem is
NP-complete In computational complexity theory, NP-complete problems are the hardest of the problems to which ''solutions'' can be verified ''quickly''. Somewhat more precisely, a problem is NP-complete when: # It is a decision problem, meaning that for any ...
.. The problem remains NP-complete for
bipartite graph In the mathematics, mathematical field of graph theory, a bipartite graph (or bigraph) is a Graph (discrete mathematics), graph whose vertex (graph theory), vertices can be divided into two disjoint sets, disjoint and Independent set (graph theo ...
s , as well as for chordal graphs. On the positive side, tree-depth can be computed in
polynomial time In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
on interval graphs, as well as on permutation, trapezoid, circular-arc, circular permutation graphs, and cocomparability graphs of bounded dimension. For undirected trees, tree-depth can be computed in linear time. give an
approximation algorithm In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
for tree-depth with an approximation ratio of O((\log n)^2), based on the fact that tree-depth is always within a logarithmic factor of the treewidth of a graph. Because tree-depth is monotonic under graph minors, it is
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. ...
: there is an algorithm for computing tree-depth running in time where d is the depth of the given graph and n is its number of vertices. Thus, for every fixed value of d, the problem of testing whether the tree-depth is at most d can be solved in
polynomial time In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
. More specifically, the dependence on n in this algorithm can be made linear, by the following method: compute a depth first search tree, and test whether this tree's depth is greater than 2^d. If so, the tree-depth of the graph is greater than d and the problem is solved. If not, the shallow depth first search tree can be used to construct a
tree decomposition In graph theory, a tree decomposition is a mapping of a Graph (discrete mathematics), graph into a tree (graph theory), tree that can be used to define the treewidth of the graph and speed up solving certain computational problems on the graph. ...
with bounded width, and standard dynamic programming techniques for graphs of bounded treewidth can be used to compute the depth in linear time., p. 138. A more complicated linear time algorithm based on the planarity of the excluded minors for tree-depth was given earlier by . For improved parameterized algorithms see . It is also possible to compute the tree-depth exactly, for graphs whose tree-depth may be large, in time O(c^n) for a constant c slightly smaller than 2.


Notes


References

*. * *. *. *. *. *. * *. *. *. *. *. *. *{{citation , last1 = Schäffer , first1 = Alejandro A. , doi = 10.1016/0020-0190(89)90161-0 , title = Optimal node ranking of trees in linear time , journal =
Information Processing Letters ''Information Processing Letters'' is a peer review, peer-reviewed scientific journal in the field of computer science, published by Elsevier. The aim of the journal is to enable fast dissemination of results in the field of Data processing, inform ...
, volume = 33 , pages = 91–96 , year = 1989, issue = 2. Graph coloring Graph invariants Graph minor theory NP-complete problems