|Table of contents|
|Applications of tree data structure|
|1 Crore+ students have signed up on EduRev. Have you?|
Unlike Array and Linked List, which are linear data structures, tree is hierarchical (or non-linear) data structure.
One reason to use trees might be because you want to store information that naturally forms a hierarchy. For example, the file system on a computer:
/ <-- root
/ / | \
... cs101 cs112 cs113