ArticleslgStudy

science

Tree-depth

Tree-depth is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Tree-depth rather than just read about it. In short: In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree 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…

Tree-depth — main illustration
Tree-depth — illustration

Key takeaways

  • Tree-depth belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Tree-depth to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tree-depth from memory before moving on to harder problems.

Reference excerpt

In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree 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 of regular languages. 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 G may be defined as the minimum height of a forest 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 for G. The set of ancestor-descendant pairs in F forms a trivially perfect graph, and the height of F 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 G, mirroring the definition of treewidth as one less than the size of the largest clique in a chordal supergraph of G. Another definition is the following: td⁡(G)={1,if |G|=1;1+minv∈Vtd⁡(G−v),if G is connected and |G|>1;maxitd(Gi),otherwise; where V is the set of vertices of G and the Gi 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. 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 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, 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, 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 n vertices, the cop uses a binary search strategy, which guarantees that at most ⌈log2(n+1)⌉ pebbles are needed.

Examples

The tree-depth of a complete graph 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 Kx,y 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 ⌈log2(n+1)⌉. 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 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 of a graph, shows that, if the treewidth of an n-vertex graph G is t, then the tree-depth of G is O(tlog⁡n). 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 C with the following property: if a graph has treedepth at least Ck5log2k and treewidth less than k then it contains a perfect binary tree with height k or a path of length 2k 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, which is at most one less than the tree-depth.

Graph minors A minor 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, for every fixed d the set of graphs with tree-depth at most d has a finite set of forbidden minors. If ℱ is a class of graphs closed under taking graph minors, then the graphs in ℱ have tree-depth O(1) if and only if ℱ does not include all the path graphs. More precisely, there is a constant c such that every graph of treedepth at least kc contains one of the following minors (each of treedepth at least k):

the k×k grid, the complete binary tree of height k, the path of order 2k.

… excerpt ends here. Continue reading the full article.

Illustrations

Tree-depth: The tree-depths of the complete graph K4 and the complete bipartite graph K3,3 are both four, while the tree-depth of the path graph P7 is three.
The tree-depths of the complete graph K4 and the complete bipartite graph K3,3 are both four, while the tree-depth of the path graph P7 is three.

Worked examples

Example 1 — a first encounter with Tree-depth

Start with the simplest possible case. Write down what Tree-depth claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Tree-depth before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Tree-depth ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Tree-depth

In research
Tree-depth appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Tree-depth in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Tree-depth is common in secondary-school and first-year university syllabi. It links to neighbouring topics Graph coloring, Graph invariants, Graph minor theory, so understanding it makes those chapters shorter.
In everyday life
Look for Tree-depth outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Tree-depth” →

How to study Tree-depth in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tree-depth means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Tree-depth out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tree-depth in simple terms?

In graph theory, the tree-depth of a connected undirected graph G is a numerical invariant of G, the minimum height of a Trémaux tree 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 chroma…

Why does Tree-depth matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Tree-depth?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Tree-depth.

Tags

  • Graph coloring
  • Graph invariants
  • Graph minor theory
  • NP-complete problems

Keep exploring