[閒聊] proof of NPC of the group-summation problem

看板ACMCLUB作者時間15年前 (2010/06/10 18:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Problem P: Let C be a natural integer set {c1, c2 .. cn} given a function e(x), try to partition C in to some groups G1, G2 .. Gm such that Σe(Gi) is minimal, where e(Gi) = e(Σ(c in Gi)), answer is the minimal value of Σe(Gi). P can be reduced to a partition problem: Let H =Σci/2, set e(H) = 0 and e(x) = 1 for all x != H then P's answer is 0 iff C can be divided into two parts and the sum of each part are equal. Since the partition problem is NPC, so is P -- It's the state of bliss you think you're dreaming It's the happiness inside that you're feeling It's so beautiful it makes you wanna cry It's so beautiful it makes you want to cry -- ※ 發信站: 批踢踢兔(ptt2.cc) ◆ From: 140.112.3.52
文章代碼(AID): #1C4Bdtzf (ACMCLUB)