answersLogoWhite

0

AllQ&AStudy Guides
Best answer

Use the following formula: (2^n)-1. E.g., if the depth is 3, the number of nodes is (2^3)-1 = 8-1 = 7. Note that 7 is the maximum number of nodes, not the actual number of nodes. To count the actual nodes you must traverse the tree, updating an accumulator as you go.

This answer is:
Related answers

Use the following formula: (2^n)-1. E.g., if the depth is 3, the number of nodes is (2^3)-1 = 8-1 = 7. Note that 7 is the maximum number of nodes, not the actual number of nodes. To count the actual nodes you must traverse the tree, updating an accumulator as you go.

View page

If N>1, there are (2N-1) - (2N-1-1), otherwise, 1 nodes in the Nth level of a balanced binary tree.

View page

1

View page

A full binary tree of depth 3 has at least 4 nodes. That is; 1 root, 2 children and at least 1 grandchild. The maximum is 7 nodes (4 grandchildren).

View page

A binary tree with n nodes has exactly n+1 null nodes or Null Branches.

so answer is 21.

MOHAMMAD SAJID

View page
Featured study guide

Are the kidneys part of the circulatory system

What kind of blood cells fight pathogens

What type of joints are located in the cranium of the skull

Which human body system is a communication and control system

➡️
See all cards
1.0
1 Review
More study guides
No Reviews

3.0
2 Reviews
Search results