Trees

Definition

A tree is a connected graph without cycles.

freetree.gif

More Definitions

Node
(a.k.a. vertex) a data element in the tree
Edge
(a.k.a. branch, or link) a connection between two nodes
Empty tree
has zero nodes
Size
the size of a tree is the number of nodes
Path
a sequence n0e1n1e2n2...eknk where k ≥ 0 and ei connectes ni-1 and ni.
Start(p)
n0
End(p)
nk
Length(p)
k
Simple Path
a path in which all nodes are distinct