Properties of Binary Tree
- The maximum number of nodes at level ‘l’ of a binary tree is 2l .
The Maximum number of nodes in a binary tree of height ‘h’ is 2h – 1.
In a Binary Tree with N nodes, the minimum possible height or the minimum number of levels is Log2(N+1).
A Binary Tree with L leaves has at least | Log2L |+ 1 levels.
In a Binary tree where every node has 0 or 2 children, the number of leaf nodes is always one more than nodes with two children.
In a non-empty binary tree, if n is the total number of nodes and e is the total number of edges, then e = n-1.
Max Heap is considered the best data structure to find the maximum value in a given set of data
source: gfg