Question DSA-GRAPH-0079
HardIn a DAG with weighted edges, how can you find the longest path efficiently?
- A.
It is NP-hard even on DAGs
- B.
Process vertices in topological order, relaxing edges to maximise distance
- C.
Sign up free to see the answer and a step-by-step explanation.