A tree is a predetermined non-empty set of items in which one element is called the root and the
remaining items are divided into n>=0 disjoint subsets, each of which can be a tree itself. Every item in
the tree is called a node. Every node in a tree can act as a root and can have zero or more branches
(subtrees). Fig. 15.1 shows the tree.
Fig. 15.1Sample trees
15.2 BINARY TREES
A linked list is an efficient data s
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.