Computer Science, asked by bubai2939, 1 year ago

How to calculate the minimum number of nodes in complete binary tree?

Answers

Answered by MzAbstruse
1

Explanation:

If binary search tree has height h, minimum number of nodes is h+1 (in case of left skewed and right skewed binary search tree). If binary search tree has height h, maximum number of nodes will be when all levels are completely full. Total number of nodes will be 2^0 + 2^1 + …. 2^h = 2^(h+1)-1

Similar questions