Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Early Objects
Exam 17: Tree Structures
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Which of the following statements about inserting a node into a red-black tree is correct?
Question 22
Multiple Choice
Consider the following tree diagrams:
Which tree represents the arithmetic expression (2 + 5) * 4?
Question 23
Multiple Choice
Consider the following tree diagram:
Which arithmetic expression is represented by this tree?
Question 24
Multiple Choice
Which of the following is NOT a property of a red-black tree?
Question 25
Multiple Choice
Given the BinarySearchTree and Node classes (partially shown below) , select an expression to complete the recursive method smallest in the Node class.The method returns the smallest data value in the binary search tree rooted at a node.
Question 26
Multiple Choice
In a binary search tree, where the root node data value = 45, what do we know about the values of all the descendants in the right subtree of the root?
Question 27
Multiple Choice
Assuming that the variable t is instantiated to an empty BinarySearchTree, select a statement to complete the following code segment, so that the resulting binary search tree has a height of 4.
Question 28
Multiple Choice
Consider the following binary search tree:
Which of the following sequences correctly represents a depth-first traversal of this tree?
Question 29
Multiple Choice
Which of the following statements about the three tree traversal schemes studied is correct?
Question 30
Multiple Choice
What is the efficiency of adding an element to a red-black tree?
Question 31
Multiple Choice
Which of the following statements about the heapsort algorithm is correct?
Question 32
Multiple Choice
If the child references of a binary tree node are both null, the node is ____.
Question 33
Multiple Choice
You wish to traverse a binary search tree using preorder traversal.Arrange the following actions in the correct order to accomplish this. i.Print the right subtree recursively II.Print the root III.Print the left subtree recursively