☰
WH
·
CSBank
首頁
題庫專區
模擬考專區
Pro 方案
聯絡我們
首頁
題庫
模擬考
Pro
聯絡
總覽
資料結構
388
演算法
212
作業系統
290
計算機組織與結構
266
離散數學
161
線性代數
182
演算法
›
Ch4 圖論演算法
第 46 題/共 111 題
◀
AL 46/111
錯題回報
00:00
46. Transitive Closure、Topological Order、BFS
#AL-04-046
中
Transitive Closure
Topological Order
BFS
📝
☆
[10%] For the given directed graph (the numbers inside the vertices are the vertex indices), answer the following questions:
A
(a) [2%] Give the count of "1" elements in the transitive closure of this graph.
B
(b) [2%] Give a topological order of the vertices in the graph. (The answer is not unique; you only need to give a valid one.)
C
(c) [2%] Assume now that the direction of edge
2
→
5
2\to5
2
→
5
is flipped to
5
→
2
5\to2
5
→
2
. What happens to the topological order? If there still exists a topological order, give one. If no topological order exists now, explain why.
D
(d) [2%] Starting from the original graph, if one more edge
1
→
3
1\to3
1
→
3
is added, what happens to the topological order? If there still exists a topological order, give one. If no topological order exists now, explain why.
E
(e) [2%] Consider the following statement: "If a suitable starting vertex is selected, one can obtain the topological order of a directed graph using breadth-first search (BFS) if one exists." Indicate whether the statement is TRUE of FALSE. If your answer is TRUE, indicate how you will select the suitable starting vertex. If you answer if FALSE, describe one condition that makes BFS fail this task.
📝 寫筆記
📄 交大115
重做
跳轉到第
題
← 上一題
下一題 →
答案/解析
▤
完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法
‹
本章題號 · 41–60 / 111
›
全部 111
易 42
中 62
難 7
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60