









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










BINARY TREE DATA STRUCTURE
Node: It represents a
termination point in a tree.
Root: A tree’s topmost node.
Parent: Each node (apart
from the root) in a tree that
has at least one sub-node of its
own is called a parent node.
Binary Tree
Components
COMPLETE BINARY TREE
PERFECT BINARY TREE
all the internal nodes have 2
children, and all the leaf nodes
are at the same level.
tree in which both the left and
right trees differ by atmost
COMMON OPERATIONS
nodes or added after a leaf node. In binary trees, a node that is inserted is
specified as to which child it is.
Only certain nodes in a binary tree can be removed unambiguously
tree by recursively visiting each node in the left and right subtrees of the root.