An array-based heap is best used to represent
2019
An array-based heap is best used to represent
- A.
A general tree
- B.
A full binary tree
- C.
A complete binary tree
- D.
A binary search tree
Attempted by 63 students.
Show answer & explanation
Correct answer: C
A heap stored in an array is best represented as a complete binary tree, because complete-tree positions map naturally to array indices.