阿摩線上測驗 登入

申論題資訊

試卷:110年 - 110 國立清華大學_碩士班招生考試_資訊工程學系:基礎計算機科學#105771
科目:清大◆資工◆基礎計算機科學
年份:110年
排序:0

申論題內容

9. (7 points) Given a set S of n numbers, the k-partition problem is to determine whether or not S can be partitioned into k subsets of the same sum. For example, let S ={1,2,9,12,18}. Then for the two-partition problem, we indeed can partition S into two subsets S1 = {1,2,18} and S2 = {9,12} such that the sum of all elements in S1 equals to the sum of all elements in S2. In fact, it can be proved that the two-partition problem is NP-complete. In the situation where the two-partition problem is already NP-complete, please prove that the three-partition problem is also NP-complete.