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: High Entry average rating: No information on entry rating
root (of a tree) (Definition)

The root of a tree is a place-holder node. It is typically drawn at the top of the page, with the other nodes below (with all nodes having the same path distance from the root at the same height.)

$\displaystyle \xymatrix{ & {\color{red}\bullet} \ar@{-}[dl] \ar@{-}[dr] & & & \... ...r]\ar@{-}[dl] & & \ & \bullet \ar@{-}[dl] & & \bullet & \ \bullet & & & & }$
Figure: A tree with root highlighted in red.

Any tree can be redrawn this way, selecting any node as the root. This is important to note: taken as a graph in general, the notion of ``root'' is meaningless. We introduce a root explicitly when we begin speaking of a graph as a tree- there is nothing in general that selects a root for us.

However, there are some special cases of trees where the root can be distinguished from the other nodes implicitly due to the properties of the tree. For instance, a root is uniquely identifiable in a complete binary tree, where it is the only node with degree two.

Further, in a directed tree, there can be only one root. This is because all nodes must be reachable from that node by following the arrows between them in the proper direction.




"root (of a tree)" is owned by akrowne.
(view preamble | get metadata)

View style:

Other names:  root
Log in to rate this entry.
(view current ratings)

Cross-references: degree, complete binary tree, properties, graph, height, distance, path, node, tree
There are 16 references to this entry.

This is version 5 of root (of a tree), born on 2002-02-28, modified 2006-01-31.
Object id is 2735, canonical name is RootOfATree.
Accessed 6246 times total.

Classification:
AMS MSC05C05 (Combinatorics :: Graph theory :: Trees)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

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