\(\DeclarePairedDelimiterX{\Set}[2]{\{}{\}}{#1 \nonscript\;\delimsize\vert\nonscript\; #2}\) \( \DeclarePairedDelimiter{\set}{\{}{\}}\) \( \DeclarePairedDelimiter{\parens}{\left(}{\right)}\) \(\DeclarePairedDelimiterX{\innerproduct}[1]{\langle}{\rangle}{#1}\) \(\newcommand{\ip}[1]{\innerproduct{#1}}\) \(\newcommand{\bmat}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\barray}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\mat}[1]{\begin{matrix}#1\end{matrix}}\) \(\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}\) \(\newcommand{\mathword}[1]{\mathop{\textup{#1}}}\)
Needs:
Rooted Trees
Needed by:
None.
Links:
Sheet PDF
Graph PDF

Rooted Tree Orderings

Why

We want to simplify common questions using orderings of a rooted tree.1

Definition

A topological ordering of a rooted tree is an ordering $\sigma $ for which $v \prec_{\sigma } \pa(v)$. If there are $n$ vertices, the root has index $n$ and every other vertex has an index less than its parent.

A postordering is a topological ordering in which descendents of a vertex are given consecutive numbers. For the postordering $\sigma $, if $\inv{\sigma }(v) = j$ and $v$ has $k$ proper descendents then the proper descendents of $v$ have are numbered consecutively from $j - k$ through $j -1$. The figure below shows an example.

One can generate a postordering by numbering vertices in decreasing sequence (starting at $n$) in the order they are visited.2

Given an ordering, the first descendent of $v$ (which we denote $\fdesc(v)$) is the descendent with the lowest index. Given a postordering $\sigma $, one can check whether a vertex $w$ is a proper descendent of $v$, by $\fdesc(v) \preceq_{\sigma } w \prec_{\sigma } v$.


  1. This sheet is incomplete and will be updated in future editions. ↩︎
  2. Future editions will clarify. ↩︎
Copyright © 2023 The Bourbaki Authors — All rights reserved — Version 13a6779cc About Show the old page view