Trees Flashcards
A non-linear data structure that consists of nodes
and is connected by edges with a hierarchical
organization
Trees
The nodes in a tree are arranged in a ________________
parent-child
relationship
The topmost node in a tree is called the ______
root node
It contains some data and
may have references to its child nodes.
Node
Each element in tree
Node
the first node of the tree. And is the initial node of the tree in data structures.
Root
T or F
In the tree data structure, there must be only one root node.
T
Represents a connection between two nodes. It defines the relationship between a parent node and its child node. A line connecting the nodes.
Edge
A node that has one or more child nodes. It is located above its child nodes in the hierarchy.
Parent
A node that has a parent node. It is located below
its parent node in the hierarchy.
Child
Nodes that share the same parent. They are at
the same level in the tree.
Siblings
A node that does not have any child nodes.
It is
also known as a terminal node.
Leaf
Nodes that have one or more child
nodes. They are neither leaf nodes nor the root node.
Internal Nodes
the total number of children of a node.
DEGREE
The
highest degree of the node among all the nodes in a tree.
Degree of Tree