Exam 11: Binary Search Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What is the time complexity of the addElement operation?

(Essay)
4.8/5
(37)

The __________ method consists of adding each of the elements of the list to a heap and then removing them one at a time.

(Multiple Choice)
4.9/5
(36)

Heap sort is O(n log n).

(True/False)
4.8/5
(31)

The addElement operation for both the linked and array implementations is O(n log n).

(True/False)
4.7/5
(35)

Since a heap is a ______ tree, there is only one correct 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.

(Short Answer)
4.8/5
(39)

The heapSort method consists of adding each of the elements of the list to a heap and then removing them one at a time.

(True/False)
4.8/5
(24)

What is the time complexity of heap sort?

(Essay)
4.9/5
(42)

The addElement operation for both the linked and array implementations is O(______).

(Short Answer)
4.9/5
(31)

Because of the requirement that we be able to traverse up the tree after an insertion, it is necessary for the nodes in a heap to store a pointer to their ________.

(Multiple Choice)
4.8/5
(31)

In an array implementation of a binary tree, the root of the tree is in 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).

(True/False)
5.0/5
(28)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)