阿摩線上測驗 登入

申論題資訊

試卷:106年 - 106 國立中山大學_碩士班招生考試_電機系(丙組):離散數學#109065
科目:中山◆電機◆離散數學
年份:106年
排序:7

申論題內容

8. (10%) In an undirected graph G(V, E) with n vertices, these is an integer data di in each vertex v. Given a starting vertex S in the vertex set V, write an algorithm that computes the sum of associated data di's of all reachable vertices in V from S. (i.e. A reachable vertex T from the vertex S is a vertex that has a path from S to T.)