Question: 1 . What is the difference between a heap ( a minheap ) and a binary search tree? 2 . What is the difference between

1. What is the difference between a heap (a minheap) and a binary search tree?
2. What is the difference between a minheap and a maxheap?
3. What does it mean for a binary tree to be complete?
4. Does a heap ever have to be rebalanced?
5. a) The operation of addElement for the linked implementation must determine the parent of the next node to be inserted. Why?
b) The operation of addElement for the array implementation must determine the parent of the next node to be inserted. Why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!