An output-sensitive Algorithm to partition a Sequence of Integers into Subsets with equal Sums

Abstract

We present a polynomial time algorithm, which solves a nonstandard Variation of the well-known PARTITION-problem: Given positive integers n, k and t such that t ≥ n and k · t = n+1 2, the algorithm partitions the elements of the set In = \1, …, n\ into k mutually disjoint subsets Tj such that j=1k Tj = In and Σx ∈ Tj x = t for each j ∈ \1,2, …, k\. The algorithm needs O(n · ( n2k + n(n+1)2k )) steps to insert the n elements of In into the k sets Tj.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…