Graph Theory37 sections · 1633 units
Open in CourseQuiz: Max White Subtree
Knowledge check
Check Your Understanding
Each node is black () or white (). For each node, find the maximum sum of any connected subtree containing it. What technique do you use?
- A.BFS level-order traversal
- B.Find centroids first
- C.Single DFS from any root
- D.Rerooting DP