Exam 22: Binary Trees, Avl Trees, and Priority Queues
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
The heap sort method has a worst case complexity function that is in
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
D
The length of the longest path from the root of a binary tree to a leaf is called
(Multiple Choice)
4.9/5
(36)
Consider the operation of deleting the root of a binary search tree.If the root has one child,then
(Multiple Choice)
4.8/5
(34)
Assuming a Node class
class Node
{
int element;
Node left,right;
Node(int el,Node left,Node right){
element = el;
this.left = left;
this.right = right;
}
}
Write a method int size(Node tree)that returns the number of nodes in the binary tree whose root is tree.
(Essay)
4.9/5
(34)
A complete binary tree with N nodes may be stored in an array A of length N by storing the root at A[0],and then storing in successive array locations the nodes of the tree in increasing order of the level of nodes.If nodes in the same level are stored in left to right order,then the left child of the node stored at A[k] will be stored at
(Multiple Choice)
4.8/5
(43)
Consider the operation of deleting the root of a binary search tree.If the root is a leaf,then
(Multiple Choice)
4.9/5
(38)
A binary tree traversal method that recursively traverses the left subtree,then visits the root,then traverses the right subtree is called
(Multiple Choice)
4.8/5
(34)
Let X be a node in a binary tree.Any node on the path from X to the root is called
(Multiple Choice)
4.7/5
(45)
A complete binary tree with N nodes may be stored in an array A of length N by storing the root at A[0],and then storing in successive array locations the nodes of the tree in increasing order of the level of nodes.If nodes in the same level are stored in left to right order,then the parent of the node stored at A[k] will be stored at
(Multiple Choice)
4.8/5
(42)
A complete binary tree with N nodes may be stored in an array A of length N by storing the root at A[0],and then storing in successive array locations the nodes of the tree in increasing order of the level of nodes.If nodes in the same level are stored in left to right order,then the right child of the node stored at A[k] will be stored at
(Multiple Choice)
4.9/5
(34)
Showing 1 - 20 of 45
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)