Exam 11: Binary Trees and B-Trees
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
The performance of a binary search tree depends on the width of the tree.
(True/False)
4.9/5
(40)
When deleting from a B-tree, if the leaf contains only the minimum number of keys, look at the sibling nodes that are adjacent to the leaf.
(True/False)
4.7/5
(40)
A sequential search is good only for very small lists because the average search length of a sequential search is half the size of the list.
(True/False)
4.8/5
(29)
In an array, item insertion (especially if the array is sorted) and item deletion can be very time consuming, especially if the list size is very large.
(True/False)
4.9/5
(34)
The balance factor of x, written bf(x), is defined by ____.
(Multiple Choice)
4.9/5
(38)
In C++, a function name without any parentheses is considered a ____.
(Multiple Choice)
5.0/5
(31)
In the worst case, the height of an AVL tree with n nodes is approximately ____.
(Multiple Choice)
4.8/5
(36)
The reconstruction procedure for an AVL tree is called ____.
(Multiple Choice)
4.7/5
(38)
In a preorder traversal of a binary tree, after visiting a node and before moving to the right subtree, we must save a pointer to the node so that after visiting the right subtree, we can visit the left subtree.
(True/False)
4.7/5
(28)
In a ____ traversal of a binary tree, for each node, first the left subtree is visited, then the right subtree is visited, and then the node is visited.
(Multiple Choice)
4.8/5
(42)
The ____ is one in which the resulting binary search is nearly balanced.
(Multiple Choice)
4.8/5
(33)
To insert an item in an AVL tree, first we search the tree and find the place where the new item is to be inserted.
(True/False)
4.7/5
(44)
After inserting the node, the reconstruction can occur at any node on the path back to the root node.
(True/False)
4.8/5
(33)
If the item to be inserted in an AVL tree is already in the tree, the search ends at a ____.
(Multiple Choice)
4.9/5
(32)
The function ____ searches the binary search tree for a given item.
(Multiple Choice)
4.8/5
(34)
A B-tree can be ____ in three ways: inorder, preorder, and postorder.
(Multiple Choice)
4.8/5
(41)
To specify a function as a formal parameter to another function, we specify the function type, followed by the function name as a pointer, followed by the parameter types of the function.
(True/False)
4.7/5
(31)
Let x be a node in a binary tree, then we say that the node x violates the ____ if |xh - x1| > 1, that is, the heights of the left and right subtrees of x differ by more than 1.
(Multiple Choice)
4.9/5
(37)
Showing 21 - 40 of 47
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)