Showing posts with label Trees. Show all posts
Showing posts with label Trees. Show all posts

What is Tree in Data Structure? Explain different types of trees.

Tree: 

Data frequently contain a hierarchical relationship between various elements. The data structure which reflects this relationship is called a rooted tree graph or simply a tree. Among different types of data structures in practice, tree is very important to store and manipulate data with complex relationship. This is sometimes like the properties of an object. For example, properties to store of an employee in the office directory can be name, age, sex, salary etc. Again the properties “name” can have sub-properties like first name, middle name, last name etc. This can be showed as follows.

What is Tree in Data Structure? Explain different types of trees.

Explain different types of data structures.

Data structure means how the data is organized in memory. There different kind of data structures. Some are used to store the data of same type and some for different types of data. Different types of data structures help different types of operations of data structures too. Data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.