PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: No information on entry rating
[parent] ordered tree (Definition)

A tree is, by definition, a partially ordered set. An ordered tree is a tree equipped with a linear extension. In other words, its a linear order on the nodes of the tree that obeys the parent-child relationship of the tree. By Zorn's lemma, every tree can be ordered. When a tree $ T$ is finite, the linear extension of the tree can be constructed inductively:

  1. First, label the nodes of $ T$: each label is an $ n$-tuple of positive integers, for some $ n$,
    1. the root of $ T$ is labeled $ (1)$,
    2. if a node $ V$ of $ T$ has been labeled $ (m_1,\ldots,m_k)$, and if the children of $ T$ are $ V_1,\ldots, V_{\ell}$, then label each $ V_i$ by $ (m_1,\ldots, m_k, i)$.
    From this labeling process, we see that the (direct) children of the root have labels $ (1,1),(1,2),\ldots $. In general, if a node is of level $ k$, its label is a $ k$-tuple starting with $ 1$. It is easy to see that each label corresponds to a unique node of $ T$: for if two distinct nodes are of different level, their labels are clearly different. However, if they are of the same level, then the last components of their labels are distinct.
  2. Next, order the labels of the nodes lexicographically. In other words, given an $ m$-tuple $ p=(p_1,\ldots, p_m)$ and an $ n$-tuple $ q=(q_1,\ldots, q_n)$, compare them componentwise, starting from the first. There are two cases:
    1. either all $ k$ components match, where $ k=\min(m,n)$, or
    2. $ p_j\ne q_j$, but $ p_i=q_i$ for all $ i<j$, where $ j\le \min(m,n)$.
    Then $ p<q$ iff $ m< n$ in the first case, or $ p_j< q_j$ in the second. This ordering on the labels induces an ordering on the nodes: for nodes $ V$ and $ V'$ with labels $ p$ and $ p'$,

    $\displaystyle V\le V'$   iff$\displaystyle \qquad p\le p'.$
    This ordering on the nodes is linear, and extends the partial ordering on $ T$.

For example, below are two diagrams of the same tree. The one on the right is labeled by the method above:

\includegraphics{tree1.eps}
\includegraphics[scale=0.75]{tree2.eps}

By ordering the labels, we get the corresponding ordering of the nodes:

$\displaystyle a < b < e < f < c < g < h < i < j < k < d.$




"ordered tree" is owned by CWoo.
(view preamble | get metadata)

View style:


This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: right, diagrams, induces, ordering, iff, order, components, easy to see, level, labeling, children, root, integers, positive, label, finite, Zorn's lemma, nodes, linear order, linear extension, partially ordered set, tree
There are 2 references to this entry.

This is version 2 of ordered tree, born on 2009-08-22, modified 2009-08-22.
Object id is 11871, canonical name is OrderedTree.
Accessed 306 times total.

Classification:
AMS MSC03E05 (Mathematical logic and foundations :: Set theory :: Other combinatorial set theory)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)