演算法›Ch4 圖論演算法
第 35 題/共 111 題
◀ AL 35/111
35. Dynamic Programming、DAG、Longest Path
#AL-04-035中Dynamic ProgrammingDAGLongest Path

Part II: Non Multiple Choice questions (非選擇題)

  1. (10%). You are given a directed acyclic graph G=(V,E)G = (V,E) with real-valued edge weights and two distinguished vertices s,t∈Vs, t \in V. The weight of a path is the sum of the weights of the edges in the path.

(a) Describe a dynamic-programming approach for finding a simple path from ss to tt with the maximum weight. Write down the recurrence formula you use and the definition of the subproblem(s) explicitly.

(b) What is the running time of your algorithm?

📄 交大114
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法
本章題號 · 21–40 / 111