An output-sensitive Algorithm to partition a Sequence of Integers into
Subsets with equal SumsArticle
Authors: Alexander Büchel ; Ulrich Gilleßen ; Kurt-Ulrich Witt
NULL##NULL##NULL
Alexander Büchel;Ulrich Gilleßen;Kurt-Ulrich Witt
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+12), the algorithm
partitions the elements of the set In={1,…,n} into k mutually
disjoint subsets Tj such that ∪kj=1Tj=In and ∑x∈Tjx=t for each j∈{1,2,…,k}. The algorithm needs
O(n⋅(n2k+logn(n+1)2k)) steps to
insert the n elements of In into the k sets Tj.