- What are different tree terminologies?
- What is the difference and similarities of full binary tree and complete binary tree?
What are different tree terminologies?
Terminologies used in Trees. • Root – The top node in a tree. • Child – A node directly connected to another node when moving away from the Root. • Parent – The converse notion of a child. • Siblings – Nodes with the same parent.
What is the difference and similarities of full binary tree and complete binary tree?
Full v.s. Complete Binary Trees. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.