Module 3 - Trees
Module 3 - Trees
Module 3
Introduction
Finite set of one or more nodes such that:
There is a specially designated node called root
The remaining nodes are partitioned into n>=0 disjoints sets
T1, T2, … Tn, where each set is a tree called subtrees of the
root.
Array
Module size
3. Treesneeded will be 2k-1, k is the height of a given tree
Saturday, February 15, 2020
12
Binary Tree cont…
Using linked lists