Data Structures Lab- Viva
Data Structures Lab- Viva
Root: The top node of the tree, where the hierarchy starts.
Node: Each element in the tree that contains data and pointers to other nodes (children).
Edge: A connection between two nodes in the tree.
Parent: A node that has one or more child nodes.
Child: A node that is a descendant of a parent node.
Leaf: A node that does not have any children.
Subtree: A tree formed by a node and all its descendants.
Height of a Tree: The length of the longest path from the root to a leaf node.
Depth of a Node: The length of the path from the root to the node.