Skip to main content

Section 1.14 Homework 14 -- Binary Trees

Exercises Exercises

1.

2.

3.

Which of the following statements is true about this tree?
  • This is a binary tree of depth 4.
  • This is a binary tree of depth 5.
  • This is NOT a binary tree.

4.

Which answer gives correct preorder traversal for the subtree rooted at "ontario"?
  • ontario, winnipeg, vostok, ladoga, taymyr
  • winnipeg, ontario, ladoga, vostok, taymyr
  • winnipeg, ladoga, taymyr, vostok, ontario
  • ontario, vostok, ladoga, taymyr, winnipeg

5.

Which answer gives correct inorder traversal for the subtree rooted at "ontario"?
  • ontario, winnipeg, vostok, ladoga, taymyr
  • winnipeg, ontario, ladoga, vostok, taymyr
  • winnipeg, ladoga, taymyr, vostok, ontario
  • ladoga, ontario, taymyr, vostok,Β winnipeg

6.

Which answer gives correct postorder traversal for the subtree rooted at "ontario"?
  • ontario, winnipeg, vostok, ladoga, taymyr
  • winnipeg, ontario, ladoga, vostok, taymyr
  • winnipeg, ladoga, taymyr, vostok, ontario
  • winnipeg, vostok, taymyr, ontario, ladoga

7.

Assume that the tree below represents a binary search tree (BST), but that the type of data stored in the BST is unknown. Which node in the tree will contain the minimum value?
Note: A, B, ... are not data values stored in the nodes, they are simply labels for the nodes.
  • A
  • D
  • G
  • H

8.

Assume that the tree below represents a binary search tree (BST), but that the type of data stored in the BST is unknown. Which node in the tree will contain the maximum value?
  • A
  • D
  • G
  • H
You have attempted of activities on this page.