Examveda

Choose the correct properties of weak-heap.

A. Every node has value greater than the value of child node

B. Every right child of node has greater value than parent node

C. Every left child of node has greater value than parent node

D. Every left and right child of node has same value as parent node

Answer: Option B


This Question Belongs to Data Structure >> Heaps

Join The Discussion

Related Questions on Heaps

Which of the following is true for a min-heap?

A. The root node is the smallest element, and every parent node is smaller than its children.

B. The root node is the largest element, and every parent node is larger than its children.

C. All nodes are arranged in a complete binary tree.

D. The tree is always balanced.