1/17
Looks like no tags are added yet.
What is a root node?
The only node with no parent.
What is a leaf node?
A node with no children.
What is a parent node?
A node directly above another node.
What is a child node?
A node directly below another node.
What are siblings?
Nodes with the same parent.
What is an ancestor?
Any node above another node.
What is a descendant?
Any node below another node.
What is tree size?
The total number of nodes.
What is tree depth?
The distance from the root to a node.
What is tree height?
The length of the longest path from root to leaf.
What is a subtree?
A node and all of its descendants.
What is a binary tree?
A tree where each node has at most two children.
BST property?
Left subtree < Parent < Right subtree.
What is a balanced tree?
A tree whose leaf node depths differ by at most 1.
Why are balanced trees useful?
Searching is O(log n).
What is a perfect tree?
All leaves are on the same level and every internal node has the maximum number of children.
What is a degenerate tree?
A tree where each parent has only one child.
Why is a degenerate BST inefficient?
Searching becomes O(n).