Hierarchical Relationship Between Elements

To represent hierarchical relationship between elements, which data structure is not suitable?
a. Deque
b. Priority
c. Tree
d. All of above

Questions by senthilkumar3355

Showing Answers 1 - 2 of 2 Answers

saqibja

  • Feb 28th, 2010
 

Only tree has the notion of parent child relationship, other data structures listed here do not have that.

  Was this answer useful?  Yes

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.

Dequeue has no hierarchy because traversal is possible in both direction. 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions