Graph Theory37 sections · 1633 units
Open in CourseQuiz: Path Types
Knowledge check
Check Your Understanding
For SHORTEST path in a DAG with arbitrary edge weights, you can use DP in topological order. What about shortest path in a general graph with negative edges?
- A.Use Bellman-Ford. DAG-DP only works because no cycles exist
- B.Same DP works for general graphs
- C.Negative edges make shortest paths undefined everywhere
- D.Convert to DAG first by removing edges