阿摩線上測驗 登入

申論題資訊

試卷:102年 - 102 國立交通大學_碩士班考試入學試題_資訊聯招:資料結構與演算法#113274
科目:交大◆資工◆資料結構與演算法
年份:102年
排序:0

申論題內容

18. Consider a set of 6 nodes 1, 2, 3, 4, 5, 6 and their corresponding weights: 2, 3, 4, 4, 5, 6.
(a) (5%) Build a binary tree with these nodes appearing in the leaves such that the maximum of w[il x (1/2)^d[i] is minimized, where w[i] is the weight and d[i] is the depth of node i in the tree. Note that the root has depth 0. What is the optimal value?