Computer Science and Engineering Heap Question #5766
Single Choice Easy

QWhich of the following is not a property of a binary heap?

ID: #5766 Heap 183 views
Question Info
#5766Q ID
EasyDifficulty
HeapTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Complete binary tree
  • B Heap property
  • C Parent nodes are greater than child nodes
  • D All leaf nodes are at the same level
Correct Answer

Explanation

Answer: c) Parent nodes are greater than child nodes

Explanation: A binary heap can either satisfy the min-heap property or the max-heap property. For a min-heap, the parent nodes are smaller than or equal to the child nodes, while for a max-heap, the parent nodes are greater than or equal to the child nodes.

Share This Question

Challenge a friend or share with your study group.