The tree data structure
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:
![](https://static.packt-cdn.com/products/9781788623872/graphics/00c26f7e-b457-4e37-9969-9b0063f8e3fb.png)
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: