Each row names a part or measurement of a binary tree. Match every term with the description that defines it, paying close attention to which measurements are counted downward from the top of the tree and which are counted toward the bottom.

Match each term
A.

The single node that has no parent

B.

Number of edges on the path from the top node down to this node

C.

A node with at least one child

D.

Number of edges on the longest downward path from this node to a leaf

E.

A node that shares the same parent as another node

F.

A node with no children

G.

A chosen node together with all of its descendants

Subtree

Leaf

Root

Height of a node

Depth of a node

Sibling

Internal node

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A program stores 20 keys in a linked binary tree, one key per node, where each node has a left and a right child pointer that is either a link to another node or null. Measure height as the number of edges on the longest path from the root down to a leaf, so a single-node tree has height 0.


Find, as whole numbers:

  • the minimum possible height of a binary tree with 20 nodes,
  • the maximum possible height of a binary tree with 20 nodes,
  • the number of null child pointers in the tree, whatever its shape.
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Measure the height of a binary tree as the number of edges on the longest root-to-leaf path. A full binary tree is one in which every node has either zero or two children. Which of the following statements about binary trees are true? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors