True/False. A minheap is a complete binary tree in which each node is less than
or equal to both the left child and the right child.
and both children of the root of a minheap are also minheaps.
appropriate location in the heap, maintaining both the completeness property and
the ordering property of the heap.
location for the insertion of a new node, and that is either the next open position
from the left at level h or the first position on the left at level h+1 if level h is full.
the last node or, more precisely, the last leaf in the tree.
element to replace the root, and that is the element stored in the first leaf in the
tree.
True/False. Though not a queue at all, a minheap provides an efficient
implementation of a priority queue.
after an insertion, it is necessary for the nodes in a heap to store a pointer to their
parent.
position 0, and for each node n, n’s left child is in position 2(n+1) and n’s right
child is in position 2(n+2).
implementations is O(n log n).
implementations is O(log n).