October 2014
Intermediate to advanced
218 pages
4h 38m
English
So far in this book, we have covered some sequential data structures. The first non sequential data structure we covered in this book was the Hash Table. In this chapter, we will learn another non sequential data structure called a tree, which is very useful for storing information that needs to be found easily.
A tree is an abstract model of a hierarchical structure. The most common example of a tree in real life would be a family tree, or a company organizational chart as we can see in the following figure:

A tree consists of nodes with a parent-child relationship. Each node has a parent (except for the first node ...
Read now
Unlock full access