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 Late Objects
Exam 17: Tree Structures
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Consider the following tree diagram:
Which of the following nodes are root nodes?
Question 22
Multiple Choice
Consider the following tree diagrams:
Which tree represents the arithmetic expression (2 + 5)
×
\times
×
4?
Question 23
Multiple Choice
Which of the following is NOT a property of a red-black tree?
Question 24
Multiple Choice
Consider the following tree diagrams:
Which of the above are binary search trees?
Question 25
Multiple Choice
Removing an element from a balanced binary search tree takes ____ time.
Question 26
Multiple Choice
Consider the following tree diagrams:
Which tree represents the arithmetic expression 2 + 5
×
\times
×
4?
Question 27
Multiple Choice
If the postorder traversal of an expression tree is 8, 2, +, 5, /, what is the numeric result of that Reverse Polish Notation expression?
Question 28
Multiple Choice
Consider the following binary search tree:
Which of the following sequences correctly represents breadth-first traversal of this tree?
Question 29
Multiple Choice
Locating an element in a balanced binary search tree takes ____ time.
Question 30
Multiple Choice
Consider the following tree diagram:
Which of the following statements is NOT correct?
Question 31
Multiple Choice
Which of the following sequences of insertions will result in a balanced tree? I 12 , 7, 25, 6, 9, 13, 44 II 12 , 7, 25, 44, 13, 6, 9 III 12, 25, 44, 13, 6, 9, 7
Question 32
Multiple Choice
Which of the following statements about binary trees is correct?
Question 33
Multiple Choice
Adding an element to an unbalanced binary search tree takes ____ time.
Question 34
Multiple Choice
If the child references of a binary tree node are both null, the node is ____.
Question 35
Multiple Choice
Which of the following statements about inserting a node into a red-black tree is NOT correct?
Question 36
Multiple Choice
As implemented in the textbook, a tree class contains which of the following? I Node class II Root node III List of child nodes
Question 37
Multiple Choice
Consider the following tree diagrams:
Which are binary search trees?
Question 38
Multiple Choice
Consider the following tree diagrams:
Which tree represents the arithmetic expression 2
×
\times
×
5 + 4?
Question 39
Multiple Choice
You wish to traverse a binary search tree using postorder 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