卷別
資料結構及演算法
選擇國立政治大學 2025 · 考試 · 第 11 題
考科演算法
(4%) Which of the following statements concerning topological ordering is true?
- (A)It is impossible to give the topological ordering for a direct cyclic graph.
- (B)The shortest paths from a single source in a weighted DAG can be found using an -time greedy algorithm based on topological ordering, where is the number of vertices and is the number of edges.
- (C)In a DAG, if there is a path from vertex to vertex , then appears after in topological ordering.
- (D)The longest paths from a single source in a weighted DAG can be found using an -time greedy algorithm based on topological ordering, where is the number of vertices and is the number of edges.
- (E)All of the above.