COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
To represent hierarchical relationship between elements, Which data structure is suitable?
|
Dequeue
|
|
Priority
|
|
Tree
|
|
Graph
|
Explanation:
Detailed explanation-1: -Both tree and priority has hierarchical relationship because there is parent child relationship in tree and in priority based higher priority element goes to high level.
Detailed explanation-2: -A tree is a non-linear data structure that represents a hierarchical relationship between various elements.
Detailed explanation-3: -Detailed Solution. In a hierarchical database model, data is organized into a tree-like structure. The data is stored in the form of records which are connected to one another through links. Tree is an example of hierarchical data structure.
There is 1 question to complete.