Question DSA-DP-0076
HardWhat is the key difference between DP on a DAG and on a graph with cycles?
- A.
There is no difference
- B.
A DAG has a topological order, so subproblems can be solved before they are needed; cycles break this
- C.
Sign up free to see the answer and a step-by-step explanation.