Graph Theory37 sections · 1633 units
Open in CourseQuiz: Path Problems
Knowledge check
Check Your Understanding
Max Path Sum in tree: Find the maximum sum path (any start/end). For node , you compute best path going DOWN. How do you handle paths that go through (down one subtree, up, down another)?
- A.Process leaves only
- B.Ignore such paths, only consider root-to-leaf
- C.Use BFS instead of DFS
- D.Combine top down-paths from children at each node