trees_combinatories
trees_combinatories
Perfect Binary Tree is tree in which every level has maximum number
2 children.
A Full Binary Tree has n non-leaf(internal) nodes then it has n+1 leaf
nodes.
maximum number of nodes except possibly the last level and the
AVL Trees
H(0) = 1.
H(1) = 2
of AVL tree is 3.
And so on.
A red-black tree is a binary search tree with one extra attribute for each node: the colour,
A red-black tree is a binary search tree which has the following red-black
properties:
1. Every node is either red or black.
2. Every leaf (NULL) is black. .
3. If a node is red, then both its children
are black.
4. Every simple path from a node to a
descendant leaf contains the same
number of black nodes.