Exam 11: Binary Search Trees
Exam 1: Introduction36 Questions
Exam 2: Analysis of Algorithms31 Questions
Exam 3: Introduction to Collections - Stacks49 Questions
Exam 4: Linked Structures - Stacks51 Questions
Exam 5: Queues28 Questions
Exam 6: Lists42 Questions
Exam 7: Iterators32 Questions
Exam 8: Recursion57 Questions
Exam 9: Searching and Sorting54 Questions
Exam 10: Trees47 Questions
Exam 11: Binary Search Trees50 Questions
Exam 12: Heaps and Priority Queues29 Questions
Exam 13: Sets and Maps47 Questions
Exam 14: Multi-Way Search Trees47 Questions
Exam 15: Graphs29 Questions
Exam 16: UML16 Questions
Exam 17: Object-Oriented Design54 Questions
Select questions type
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)