Which of the following best explains why trees are used to model hierarchical relationships?
Think about how a family tree shows generations from one ancestor.
Trees start from one root node and branch out to child nodes, showing clear parent-child links. This structure naturally represents hierarchical relationships.
In a tree modeling a hierarchy, what is the term for a node that has no children?
It is the end point in a branch with no further branches.
A leaf node is a node without children, representing the bottom level in a hierarchy.
Which real-life example is best modeled by a tree structure to show hierarchy?
Think about how managers have subordinates reporting to them.
An organizational chart has a clear hierarchy with one top manager and multiple levels below, which fits a tree structure perfectly.
Why can't a tree structure have cycles when modeling hierarchical relationships?
Consider what happens if a child points back to an ancestor.
Cycles cause confusion in hierarchy because they create loops where a node could be its own ancestor, which is not allowed in hierarchical models.
If a tree representing a company's hierarchy has a depth of 4, what does this depth represent?
Depth measures how many steps down the hierarchy you go from the top.
Depth is the longest path from the root node to any leaf node, showing how many levels the hierarchy has.