演算法›Ch4 圖論演算法
第 10 題/共 111 題
◀ AL 10/111
10. DAG、排程、Critical Path
#AL-04-010中DAG排程Critical Path

Consider a directed acyclic graph G=(V,E)G=(V,E) of nn tasks where every node is a task and every edge is a dependency. If there is an edge from a task vv to another task ww, that means we need to finish vv before starting ww. We have pp processors of the same capability and every processor can finish any task in one unit of time.

We define a schedule function ss to map a task vv to a positive integer time step s(v)s(v). Since we have only pp processors, so the system can only process at most pp tasks in one time step. Also, a schedule needs to respect the dependency of edges.

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