Multiple Choice
Given the BinarySearchTree class discussed in section 17.3 (partially shown below) , select a sequence of statements to complete the recursive postorder method. The method performs a postorder traversal of the binary search tree rooted at node n. public class BinarySearchTree
{
Private Node root;
Public BinarySearchTree() {...}
Public void postorderTraversal()
{
Postorder(root) ;
}
Private static void postorder(Node n)
{
If (n != null)
{
____________________
____________________
____________________
}
}
) . .
}
A) postorder(n.right) ;
Postorder(n.left) ;
System.out.print(n.data + " ") ;
B) postorder(n.left) ;
Postorder(n.right) ;
System.out.print(n.data + " ") ;
C) postorder(n.left) ;
System.out.print(n.data + " ") ;
Postorder(n.right) ;
D) postorder(n.right) ;
System.out.print(n.data + " ") ;
Postorder(n.left) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q13: The height of a tree can be
Q14: Consider the following Huffman encoding tree: <img
Q15: If the child references of a binary
Q16: Consider the following tree diagram: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7390/.jpg"
Q17: A binary tree with 260 nodes has
Q19: Consider the following tree diagram: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7390/.jpg"
Q20: Given the BinaryTree class discussed in section
Q21: Removing an element from an unbalanced binary
Q22: What is the efficiency of adding an
Q23: Consider the following tree diagrams: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB7390/.jpg"