A heap is a binary tree. What operations does a heap add to the BinaryTree interface?

What will be an ideal response?

A BinaryTree interface contains operations that are appropriate for a general binary tree. The BinaryTree
inrterface does not define operations for adding or removing elements from a binary tree, as these may be related to a property
of the tree such as the order of the nodes. The Heap interface adds operations to add an element, to locate the smallest
(minheap) or largest (maxheap) element, and to remove the smallest (minheap) or largest (maxheap) element.

Computer Science & Information Technology

You might also like to view...

Two or more tables which contain duplicate data is an example of:

A) many-to-many relationships. B) data redundancy. C) data backup. D) one-to-many relationships.

Computer Science & Information Technology

Excel's ________ tool can be used to compare several possible solutions to a problem

Fill in the blank(s) with correct word

Computer Science & Information Technology