Tree-depth

From HandWiki
Revision as of 04:29, 27 June 2023 by Steve2012 (talk | contribs) (link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Numerical invariant of graphs

In graph theory, the tree-depth of a connected undirected graph [math]\displaystyle{ G }[/math] is a numerical invariant of [math]\displaystyle{ G }[/math], the minimum height of a Trémaux tree for a supergraph of [math]\displaystyle{ G }[/math]. 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 of regular languages.[1] Intuitively, where the treewidth of a graph measures how far it is from being a tree, this parameter measures how far a graph is from being a star.

Definitions

The tree-depth of a graph [math]\displaystyle{ G }[/math] may be defined as the minimum height of a forest [math]\displaystyle{ F }[/math] with the property that every edge of [math]\displaystyle{ G }[/math] connects a pair of nodes that have an ancestor-descendant relationship to each other in [math]\displaystyle{ F }[/math].[2] If [math]\displaystyle{ G }[/math] is connected, this forest must be a single tree; it need not be a subgraph of [math]\displaystyle{ G }[/math], but if it is, it is a Trémaux tree for [math]\displaystyle{ G }[/math].

The set of ancestor-descendant pairs in [math]\displaystyle{ F }[/math] forms a trivially perfect graph, and the height of [math]\displaystyle{ F }[/math] is the size of the largest clique in this graph. Thus, the tree-depth may alternatively be defined as the size of the largest clique in a trivially perfect supergraph of [math]\displaystyle{ G }[/math], mirroring the definition of treewidth as one less than the size of the largest clique in a chordal supergraph of [math]\displaystyle{ G }[/math].[3]

Another definition is the following:

[math]\displaystyle{ \operatorname{td}(G)=\begin{cases} 1, & \text{if }|G|=1;\\ 1 + \min_{v\in V} \operatorname{td}(G-v), & \text{if } G \text{ is connected and } |G| \gt 1;\\ \max_{i} {\rm td}(G_i), & \text{otherwise}; \end{cases} }[/math]

where [math]\displaystyle{ V }[/math] is the set of vertices of [math]\displaystyle{ G }[/math] and the [math]\displaystyle{ G_i }[/math] are the connected components of [math]\displaystyle{ G }[/math].[4] 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. A centered coloring of a graph is a coloring of its vertices with the property that every connected induced subgraph 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 [math]\displaystyle{ F }[/math] is a forest of height [math]\displaystyle{ d }[/math] with the property that every edge of [math]\displaystyle{ G }[/math] connects an ancestor and a descendant in [math]\displaystyle{ F }[/math], then a centered coloring of [math]\displaystyle{ G }[/math] using [math]\displaystyle{ d }[/math] colors may be obtained by coloring each vertex by its distance from the root of its tree in [math]\displaystyle{ F }[/math].[5]

Finally, one can define this in terms of a pebble game, 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.[6] For a star graph, 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 with [math]\displaystyle{ n }[/math] vertices, the cop uses a binary search strategy, which guarantees that at most [math]\displaystyle{ \lceil\log_2(n+1)\rceil }[/math] pebbles are needed.

Examples

The tree-depths of the complete graph [math]\displaystyle{ K_4 }[/math] and the complete bipartite graph [math]\displaystyle{ K_{3,3} }[/math] are both four, while the tree-depth of the path graph [math]\displaystyle{ P_7 }[/math] is three.

The tree-depth of a complete graph equals its number of vertices. For, in this case, the only possible forest [math]\displaystyle{ F }[/math] 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 [math]\displaystyle{ K_{x,y} }[/math] is [math]\displaystyle{ \min(x,y)+1 }[/math]. For, the nodes that are placed at the leaves of the forest [math]\displaystyle{ F }[/math] must have at least [math]\displaystyle{ \min(x,y) }[/math] ancestors in [math]\displaystyle{ F }[/math]. A forest achieving this [math]\displaystyle{ \min(x,y)+1 }[/math] 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 [math]\displaystyle{ F }[/math] connected to the bottom vertex of this path.

The tree-depth of a path with [math]\displaystyle{ n }[/math] vertices is exactly [math]\displaystyle{ \lceil\log_2(n+1)\rceil }[/math]. A forest [math]\displaystyle{ F }[/math] representing this path with this depth may be formed by placing the midpoint of the path as the root of [math]\displaystyle{ F }[/math] and recursing within the two smaller paths on either side of it.[7]

Depth of trees and relation to treewidth

Any [math]\displaystyle{ n }[/math]-vertex forest has tree-depth [math]\displaystyle{ O(\log n) }[/math]. 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 [math]\displaystyle{ 2n/3 }[/math] 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 of a graph, shows that, if the treewidth of an [math]\displaystyle{ n }[/math]-vertex graph [math]\displaystyle{ G }[/math] is [math]\displaystyle{ t }[/math], then the tree-depth of [math]\displaystyle{ G }[/math] is [math]\displaystyle{ O(t\log n) }[/math].[8] Since outerplanar graphs, series–parallel graphs, and Halin graphs 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 trees and the paths. Precisely, there is a constant [math]\displaystyle{ C }[/math] with the following property: if a graph has treedepth at least [math]\displaystyle{ C k^5\log^2k }[/math] and treewidth less than [math]\displaystyle{ k }[/math] then it contains a perfect binary tree with height [math]\displaystyle{ k }[/math] or a path of length [math]\displaystyle{ 2^k }[/math] as a minor.[9]

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, which is at most one less than the tree-depth.[10]

Graph minors

A minor of a graph [math]\displaystyle{ G }[/math] is another graph formed from a subgraph of [math]\displaystyle{ G }[/math] by contracting some of its edges. Tree-depth is monotonic under minors: every minor of a graph [math]\displaystyle{ G }[/math] has tree-depth at most equal to the tree-depth of [math]\displaystyle{ G }[/math] itself.[11] Thus, by the Robertson–Seymour theorem, for every fixed [math]\displaystyle{ d }[/math] the set of graphs with tree-depth at most [math]\displaystyle{ d }[/math] has a finite set of forbidden minors.

If [math]\displaystyle{ \mathcal{F} }[/math] is a class of graphs closed under taking graph minors, then the graphs in [math]\displaystyle{ \mathcal{F} }[/math] have tree-depth [math]\displaystyle{ O(1) }[/math] if and only if [math]\displaystyle{ \mathcal{F} }[/math] does not include all the path graphs.[12] More precisely, there is a constant [math]\displaystyle{ c }[/math] such that every graph of treedepth at least [math]\displaystyle{ k^c }[/math] contains one of the following minors (each of treedepth at least [math]\displaystyle{ k }[/math]):[9]

  • the [math]\displaystyle{ k\times k }[/math] grid,
  • the complete binary tree of height [math]\displaystyle{ k }[/math],
  • the path of order [math]\displaystyle{ 2^k }[/math].

Induced subgraphs

As well as behaving well under graph minors, tree-depth has close connections to the theory of induced subgraphs of a graph. Within the class of graphs that have tree-depth at most [math]\displaystyle{ d }[/math] (for any fixed integer [math]\displaystyle{ d }[/math]), the relation of being an induced subgraph forms a well-quasi-ordering.[13] The basic idea of the proof that this relation is a well-quasi-ordering is to use induction on [math]\displaystyle{ d }[/math]; the forests of height [math]\displaystyle{ d }[/math] may be interpreted as sequences of forests of height [math]\displaystyle{ d-1 }[/math] (formed by deleting the roots of the trees in the height-[math]\displaystyle{ d }[/math] forest) and Higman's lemma 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 [math]\displaystyle{ d }[/math] themselves also have a finite set of forbidden induced subgraphs.[14]

If [math]\displaystyle{ \mathcal{F} }[/math] is a class of graphs with bounded degeneracy, the graphs in [math]\displaystyle{ \mathcal{F} }[/math] have bounded tree-depth if and only if there is a path graph that cannot occur as an induced subgraph of a graph in [math]\displaystyle{ \mathcal{F} }[/math].[12]

Complexity

Computing tree-depth is computationally hard: the corresponding decision problem is NP-complete.[15] The problem remains NP-complete for bipartite graphs (Bodlaender Deogun), as well as for chordal graphs.[16]

On the positive side, tree-depth can be computed in polynomial time on interval graphs,[17] as well as on permutation, trapezoid, circular-arc, circular permutation graphs, and cocomparability graphs of bounded dimension.[18] For undirected trees, tree-depth can be computed in linear time.[19]

(Bodlaender Gilbert) give an approximation algorithm for tree-depth with an approximation ratio of [math]\displaystyle{ O((\log n)^2) }[/math], 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: there is an algorithm for computing tree-depth running in time [math]\displaystyle{ f(d) n^{O(1)} }[/math], where [math]\displaystyle{ d }[/math] is the depth of the given graph and [math]\displaystyle{ n }[/math] is its number of vertices. Thus, for every fixed value of [math]\displaystyle{ d }[/math], the problem of testing whether the tree-depth is at most [math]\displaystyle{ d }[/math] can be solved in polynomial time. More specifically, the dependence on [math]\displaystyle{ n }[/math] 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 [math]\displaystyle{ 2^d }[/math]. If so, the tree-depth of the graph is greater than [math]\displaystyle{ d }[/math] and the problem is solved. If not, the shallow depth first search tree can be used to construct a tree decomposition with bounded width, and standard dynamic programming techniques for graphs of bounded treewidth can be used to compute the depth in linear time.[20]

It is also possible to compute the tree-depth exactly, for graphs whose tree-depth may be large, in time [math]\displaystyle{ O(c^n) }[/math] for a constant [math]\displaystyle{ c }[/math] slightly smaller than 2.[21]

Notes

  1. (Bodlaender Deogun); (Rossman 2008); (Nešetřil Ossona de Mendez), p. 116.
  2. (Nešetřil Ossona de Mendez), Definition 6.1, p. 115.
  3. Eppstein, David (November 15, 2012), Graph parameters and cliques in supergraphs, https://11011110.github.io/blog/2012/11/15/graph-parameters-and.html .
  4. (Nešetřil Ossona de Mendez), Lemma 6.1, p. 117.
  5. (Nešetřil Ossona de Mendez), Section 6.5, "Centered Colorings", pp. 125–128.
  6. (Gruber Holzer), Theorem 5, (Hunter 2011), Main Theorem.
  7. (Nešetřil Ossona de Mendez), Formula 6.2, p. 117.
  8. (Bodlaender Gilbert); (Nešetřil Ossona de Mendez), Corollary 6.1, p. 124.
  9. 9.0 9.1 (Kawarabayashi Rossman)
  10. (Bodlaender Gilbert); (Nešetřil Ossona de Mendez), p. 123.
  11. (Nešetřil Ossona de Mendez), Lemma 6.2, p. 117.
  12. 12.0 12.1 (Nešetřil Ossona de Mendez), Proposition 6.4, p. 122.
  13. (Nešetřil Ossona de Mendez), Lemma 6.13, p. 137.
  14. (Nešetřil Ossona de Mendez), p. 138. Figure 6.6 on p. 139 shows the 14 forbidden subgraphs for graphs of tree-depth at most three, credited to the 2007 Ph.D. thesis of Zdeněk Dvořák.
  15. (Pothen 1988).
  16. (Dereniowski Nadolski).
  17. (Aspvall Heggernes).
  18. (Deogun Kloks).
  19. (Iyer Ratliff); (Schäffer 1989).
  20. (Nešetřil Ossona de Mendez), p. 138. A more complicated linear time algorithm based on the planarity of the excluded minors for tree-depth was given earlier by (Bodlaender Deogun). For improved parameterized algorithms see (Reidl Rossmanith).
  21. Fomin, Giannopoulou & Pilipczuk (2013).

References