Question 86
A perfect binary tree has height 8 (root at height 0). How many total nodes does it contain?
$2^{8+1}-1 = 511.$
A perfect binary tree has height 8 (root at height 0). How many total nodes does it contain?
$2^{8+1}-1 = 511.$
A full binary tree has 23 internal nodes. How many leaf nodes does it have?
A full binary tree has leaves = internal nodes + 1.
How many edges are there in a tree with 75 vertices?
Every tree with n vertices has n-1 edges.
A complete binary tree has 255 nodes. What is its height when the root has height 0?
255=$2^8-1$, so height is 7.
How many NULL child pointers are there in a binary tree with 40 nodes?
A binary tree with n nodes has n+1 NULL child pointers.