What is heap tree explain with example?



What is heap tree explain with example?..

Answer / Raju Kumar Rai

A heap tree is a complete binary tree with the property that the parent nodes are always greater than (max-heap) or less than (min-heap) their children. An example of a max-heap would be: [1, 2, 7, 4, 5, 3, 6, 8, 9, 10]. Each node's value is greater than its children's values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Can a binary tree be empty?

1 Answers  


What are the tasks performed during preorder traversal?

1 Answers  


What is ds heap sort?

1 Answers  


Is file a data structure?

1 Answers  


What are the operations that can be performed on a stack?

1 Answers  


How memory is reserved using a declaration statement ?

1 Answers  


Is array faster than arraylist?

1 Answers  


How can a binary tree be represented using the rotation?

1 Answers  


What is meant by a dynamic array?

1 Answers  


Define ancestor and descendant ?

1 Answers  


What is array simple?

1 Answers  


Why quicksort is better than merge sort?

1 Answers  


Categories