[EMAIL PROTECTED] wrote: > Can someone please give me a algorithm/pseudo code for the following > problem? > > Given an arrangement S of non-negative numbers {s1,s2,s3....sn} and an > integer k. > Partition S into k ranges, so as to minimize the maximum sum over all > the ranges. > > e.g Optimally S={1,2,3,4,5,6,7,8,9} partitioned into k=3 ranges will be > {1,2,3,4,5}, {6,7}, {8,9}
How do you figure this is NP complete? Maybe I'm missing something. Aren't there are only O(k|S|) possible partitions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups-beta.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---