Discrete Maths Trees
Discrete Maths Trees
Rooted Trees
A rooted tree is a tree that has a distinguished node called the root. Just as with all trees a rooted tree is acyclic (no cycles) and connected. Rooted trees have many applications in computer science, for example the binary search tree.
The root is typically drawn at the top. Children of the root. Grandchildren of the root and leaf nodes.
8/1/2013
8/1/2013
8/1/2013
35
8
8/1/2013
32
45
4
8/1/2013
a c f g h
8/1/2013
a c e f g h
c
f g h
8/1/2013
b
e f
c g h
8/1/2013
8/1/2013
10
g h i j
11
30 22 17 24 45 32 70 84 75 98
12