Graph Theory37 sections · 1633 units
Open in CourseQuiz: Finding the Centroid
Knowledge check
Check Your Understanding
To find the centroid of a tree, you compute subtree sizes and walk toward the heaviest subtree. When do you stop?
- A.When you reach a leaf node
- B.When the current node has the smallest subtree size
- C.When you have visited all nodes
- D.When no adjacent subtree has more than nodes